Answer the question
In order to leave comments, you need to log in
How to configure postfix so that Received by matches the domain specified in the email?
The bottom line is that once postfix was configured on the server to send mail from one domain1.com domain The number of projects on the server has increased, several more domains have been added from which you need to send notifications domain2.com domina3.com . virtual_alias configured and mail goes normally, spf, dkim for domains configured. But how would you configure postfix in such a way that when sending from other domains, Received by specifies exactly the domain that is in the return-path. That is, [email protected] matched the Received by domain2.com header, not domain1.com. What should be specified or commented out in main.cf? Now mydomain=domain1.com myorigin=$mydomain
Answer the question
In order to leave comments, you need to log in
Have you considered the option to substitute the sender's name in the site's CGI process?
For example, for php in the php.ini file you need to write:
Naturally, this can be overridden in the apache virtual host config or in the php-fpm pool config .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question