Mail server configuration, for outgoing mails

4 posts / 0 new
Last post
#1 Sun, 06/04/2017 - 09:58
jsmo

Mail server configuration, for outgoing mails

Hello! Dedicated box, Centos 7-64. php 5.4 and 5.6.5, webmin/virtualmin in their last releases.

I host a few domains, let's say domain1 on IP1 (that is the "main server IP") and domain2 on IP2 Currently all outgoing mails show the sender as "mail.domain1" and IP1 in their headers, and for the remote mail server of receipients.

How can I do so that outgoing mails from domain2 shows "mail.domain2" and IP2?

Dono if it is useful bu domain1 runs php 5.4 and domain2 runs php 5.6.5!

Thanks for your help!

Sun, 06/04/2017 - 15:44
Dibs

http://www.postfix.org/BASIC_CONFIGURATION_README.html#myorigin

It would appear the setting is global, i.e it can be changed to domain 2 but wen domain 3 comes along - it will say from domain 2.

Would like to hear otherwise.

Dibs

Sun, 06/04/2017 - 16:44
jsmo

Well but as I understand, ALL domains will use then mail.domain2! This isn't what I expected...

Is there a way to setup a second mail server and use this one on domain2, so?

Sun, 06/04/2017 - 20:09
Dibs

Google might be your best friend "postfix multiple instances" or maybe as the following post,

https://serverfault.com/questions/344038/virtual-domains-with-postfix-an... - probably aint for the faint hearted.

Topic locked