Thursday, December 10, 2009

Postfix & IPv6

I was trying to get the main MFC here to route its SMTP jobs via a Postfix install I have here, and I noticed the relayed jobs weren't using the v6 VPN, but rather v4 Internet. I've bastardized parts of my main.cf to show what commands you need to activate v6 support. Remember that the mail server needs to be v6-capable (or use portproxy or Stone Repeater as a forwarder), and that it has an AAAA record in your DNS for it.

relayhost = mail.example.com
inet_protocols = all
mynetworks = [2001:db8:abcd::]/48 [::ffff:127.0.0.0]/104 192.168.2.0/24 127.0.0.0/8
relaydomains = example.com
inet_interfaces = all
smtp_bind_address = 0.0.0.0
smtp_bind_address6 = ::

* Postfix main.cf documentation
* "IPv6 Addresses" on Wikipedia

No comments:

Post a Comment