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 postmaster@hostname.yourdomain.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 postmaster@hostname.domain.com or, root@hostname.domain.com. it should be postmaster@domain.com or root@domain.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
pmgconfig sync
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 sales@excellent.co.id. Our sales will give the best price and best services for you!
2 Comments
Jian · September 9, 2019 at 2:33 pm
Hello,
Could I change the From field name of Proxmox mail report
e.g
origin: “Proxmox Mail Gateway” ;
change to: ” My custom text” ;
Thank you,
Prevent Spam Email Using LDAP Verification on Proxmox Mail Gateway - dhenandi.com · August 29, 2018 at 9:16 am
[…] Update: For the above problem. i have written it on my next article. Read: Change Postmaster Address to Domain on Proxmox Mail Gateway. […]