send mail with postfix for certain domains using ipv4 or ipv6 only 4


To send outgoing mail with postfix for certain domains only over IPv6 or IPv4, only a few changes are required.

The domains are registered in accordance /etc/postfix/transport

examplev4.de smtp-ipv4-only:
examplev6.de smtp-ipv6-only:

/etc/postfix/master.cf:

smtp-ipv4-only unix  -       -       n        -       -       smtp
       -o inet_protocols=ipv4
smtp-ipv6-only unix  -       -       n        -       -       smtp
       -o inet_protocols=ipv6

/etc/postfix/main.cf:

transport_maps = hash:/etc/postfix/transport:

Execute postmap hash:/etc/postfix/transport and postfix reload after changing the transport map or master.cf.


Leave a Reply to Robert Schetterer Cancel reply

Your email address will not be published. Required fields are marked *

4 thoughts on “send mail with postfix for certain domains using ipv4 or ipv6 only