I have already explained one of PMG tips to reduce your spam email. yesterday,
But, one of the weird things, i guess. The sender notification is from email@example.com. Look at this below picture:
Because of it, your notification email can be tagged as spam by Gmail or another email servers. Because you didn’t have an SPF, DKIM and DMARC record for domain asav.dhenandi.web.id. So, the first thing is, we need to change it.
There are two different things on PMG. Sender Notification for Quarantine Mail and Sender Notification for Mail Filter.
If you want to change Sender Notification for Quarantine Spam. Just
But, if you want to change notifications sender for Mail Filter or another report. It’s will check postfix configurations.
It’s will check sender configurations and your origin postfix configuration. If you check your origin configurations, the value is $myhostname.
# postconf | grep myorigin
append_at_myorigin = yes
myorigin = $myhostname
Because of it, your email notifications will be firstname.lastname@example.org or, email@example.com. it should be firstname.lastname@example.org or email@example.com.
How to change it? Proxmox Mail Gateway lock the configuration. You can’t edit directly your /etc/postfix/main.cf. It will be changed to default when you restart the services.
You need a template configuration for main.cf on /var/lib/pmg/templates/. Copy it to /etc/pmg/templates. But first, you need to create the directory.
mkdir -p /etc/pmg/templates cp /var/lib/pmg/templates/* /etc/pmg/templates/
And you can add this configuration to /etc/pmg/templates/main.cf.in. And restart the services
echo 'myorigin = $mydomain' >> /etc/pmg/templates/main.cf.in
Well done, after this step. You did it. Try to trigger a mail to make notifications.
Look at the sender email, you did it!
Interested to use Proxmox Mail Gateway Support & Subscriptions License?
Don’t hesitate to contact firstname.lastname@example.org. Our sales will give the best price and best services for you!