Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We have try to configure Postfix for multiple domain with dedicated ips. when i am sending mail from different domain webmail then header show same local or main domain name. Received: from control.yourdomain.com (ns1.domain.com. [1xx.2xx.2xx.xx1]) on all domain.

i have test different main.cf & master.cf but not work. if any one know how to configure this main.cf & master.cf for multiple domain and dedicated ips then help me.

i want result like this

Example. 1.) i am sending mail from domain2.com webmail then header like this Received: from domain2.com (domain2.com. [1xx.2xx.2xx.xx2]) on all domain. 2.) i am sending mail from domain3.com webmail then header like this. Received: from domain3.com (domain3.com. [1xx.2xx.2xx.xx3]) on all domain.

Server OS Centos 6.3, configured all domain with dedicated ips.

share|improve this question
Is it a few domains? (less than 10) Which web server and web scripting language do you use? –  Andrzej A. Filip Dec 15 '13 at 21:16

1 Answer 1

I'm not 100% secure, but I saw an installation like this some months ago.

Set up the transports:

Example, /etc/postfix/transport:

client.com   :client1
client.pl    :client2

Then the master.cf:

client1  unix -       -       n       -       -       smtp
   -o smtp_bind_address=
   -o smtp_helo_name=client.com
   -o syslog_name=postfix-client1

client2  unix -       -       n       -       -       smtp
   -o smtp_bind_address=
   -o smtp_helo_name=client.pl
   -o syslog_name=postfix-client2

And, config all you need to listen this IP (firewalls, etc..) like says at postfix.org

Here you has other question like yours but is for use random transports at postfix

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.