M
M
mind32014-07-30 14:23:32
postfix
mind3, 2014-07-30 14:23:32

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

2 answer(s)
I
Igor, 2014-07-30
@merryjane

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 .

M
mind3, 2014-07-30
@mind3

Not exactly what I'm talking about. That's how I send, this is already a passed stage :) It's just that I don't need to change the name of the poisoner, but the server from which I send. And then fawn - I highlight the domain of another project in Received:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question