История изменений
Исправление constin, (текущая версия) :
master.cf
...
customer1 unix - - n - - smtp
-o smtp_bind_address=1.1.1.1
-o smtp_helo_name=customer1-dom.tld
-o syslog_name=postfix-customer1
customer2 unix - - n - - smtp
-o smtp_bind_address=1.1.1.2
-o smtp_helo_name=customer2-dom.tld
-o syslog_name=postfix-customer2
...
main.cf
...
sender_dependent_default_transport_maps=regexp:/etc/postfix/sdd_transport_maps.regexp
...
/etc/postfix/sdd_transport_maps.regexp
/@customer1-dom\.tld$/ customer1:
/@customer2-dom\.tld$/ customer2:
Все,что не попадает под эти правила,будет отправляться стандартным smtp транспортом.
Исправление constin, :
master.cf
...
customer1 unix - - n - - smtp
-o smtp_bind_address=1.1.1.1
-o smtp_helo_name=customer1-dom.tld
-o syslog_name=postfix-customer1
customer2 unix - - n - - smtp
-o smtp_bind_address=1.1.1.2
-o smtp_helo_name=customer2-dom.tld
-o syslog_name=postfix-customer2
...
main.cf
...
sender_dependent_default_transport_maps=regexp:/etc/postfix/sdd_transport_maps.regexp
...
/etc/postfix/sdd_transport_maps.regexp
/@customer1-dom\.tld$/ customer1:
/@customer2-dom\.tld$/ customer2:
Исправление constin, :
master.cf
...
customer1 unix - - n - - smtp
-o smtp_bind_address=1.1.1.1
-o smtp_helo_name=customer1-dom.tld
-o syslog_name=postfix-customer1
customer2 unix - - n - - smtp
-o smtp_bind_address=1.1.1.2
-o smtp_helo_name=customer2-dom.tld
-o syslog_name=postfix-customer2
...
main.cf
...
sender_dependent_default_transport_maps=regexp:/etc/postfix/transport_maps.regexp
...
/etc/postfix/transport_maps.regexp
/@customer1-dom\.tld$/ customer1:
/@customer2-dom\.tld$/ customer2:
Исходная версия constin, :
master.cf
customer1 unix - - n - - smtp
-o smtp_bind_address=1.1.1.1
-o smtp_helo_name=customer1-dom.tld
-o syslog_name=postfix-customer1
customer2 unix - - n - - smtp
-o smtp_bind_address=1.1.1.2
-o smtp_helo_name=customer2-dom.tld
-o syslog_name=postfix-customer2
main.cf
...
sender_dependent_default_transport_maps=regexp:/etc/postfix/transport_maps.regexp
...
/etc/postfix/transport_maps.regexp
/@customer1-dom\.tld$/ customer1:
/@customer2-dom\.tld$/ customer2: