1.Edit main.cf file
Open the main configuration file for Postfix /etc/postfix/main.cf and add the following:
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transport
2.Configuration sender_transport file
Create a sender_transport file in the /etc/postfix directory and add the following:
@domain1.com smtp1:
@domain2.com smtp2:
3.Edit master.cf file
In /etc/postfix/master.cf , specify a different for each transport label:
smtp1 unix - - n - - smtp
-o smtp_helo_name=domain1.com
-o syslog_name=postfix-smtp1
smtp2 unix - - n - - smtp
-o smtp_helo_name=domain2.com
-o syslog_name=postfix-smtp2
4.Generating and Applying sender_transport Maps
postmap /etc/postfix/sender_transport
postfix reload