Manuel Bieling wrote the following on 07/10/13 12:45:
Wietse explained this a few weeks ago:
/etc/postfix/transport:
example.com smtp-ipv4-only:
example.net smtp-upv6-only:
/etc/postfix/master.cf:
smtp-ipv4-only unix - - n - - smtp
inet_protocols=ipv4
smtp-ipv6-only unix - - n - - smtp
inet_protocols=ipv6
/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
Execute "postmap hash:/etc/postfix/transport" and "postfix reload"
when the transport map is changed.
http://www.postfix.org/postconf.5.html#inet_protocols
For those who cut-and-pate note the minor typo:
"smtp-upv6-only" should read smtp-ipv6-only