MailScanner changes from address to local hostname
Posted: 12 Apr 2021 15:07
Hey guys,
I did a migration from version 3 (CentOS 6) to version 4 (CentOS 8) yesterday and so far everything works fine (almost out of the box).
Thank you for the step by step migration guide!
However there is this strange behaviour where the from header of mails routed from another internal postfix through eFa are changed from "root@domain1.com" to "root@efa.domain1.com". So eFa overrides the domain part with its own hostname and domain. Which makes it difficult for recipients to identify where mails actually came from.
This happens only when sending from root@ and only if sender and eFa domain are the same.
e.g.
It seems kinda similar but not the same issue as mentioned here, as is no longer part of main.cf and thereof no masquerading should occur.
The only thing I realized: it stops when removing msmilter from smtpd_milters.
Thanks for any help
I did a migration from version 3 (CentOS 6) to version 4 (CentOS 8) yesterday and so far everything works fine (almost out of the box).
Thank you for the step by step migration guide!
However there is this strange behaviour where the from header of mails routed from another internal postfix through eFa are changed from "root@domain1.com" to "root@efa.domain1.com". So eFa overrides the domain part with its own hostname and domain. Which makes it difficult for recipients to identify where mails actually came from.
This happens only when sending from root@ and only if sender and eFa domain are the same.
e.g.
Code: Select all
from "root@domain1.com" will be changed to "root@efa.domain1.com"
from "root2@domain1.com" - works
from "root@domain2.com" - works
Code: Select all
masquerade_domains
The only thing I realized: it stops when removing msmilter from smtpd_milters.
Code: Select all
#smtpd_milters = inet:localhost:8891, inet:localhost:8893, inet:127.0.0.1:33333
smtpd_milters = inet:localhost:8891, inet:localhost:8893