smtp IPv4/IPv6 map

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

smtp IPv4/IPv6 map

Luigi Rosa-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a way to override smtp_address_preference for a single host (or
domain) to force an IPv4 or IPv6 connection?

I am asking because we are (hopefully even if slowly) approaching to a period
when IPv6 could be adopted not only by SMTP servers with (presumed) skilled
SysAdmin, but also by large organization whith sloppy IPv6 support.

A sort of tranport map for IPv4/IPv6/any could be useful for:
* force IPv4 connection with bogous IPv4/IPv6 MTAs
* force IPv6 connection for testing purposes



Ciao,
luigi

- --
/
+--[Luigi Rosa]--
\

Got Mole problems? Call Avogadro 6.02 x 10^23
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlIwW+0ACgkQ3kWu7Tfl6ZSpSACbBjW5Z6ErJOTDkhsOFilDiYjR
AUAAoLKXiCamZAcxpwQQ9Y4I7g6Redvh
=Ru0f
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: smtp IPv4/IPv6 map

Wietse Venema
Luigi Rosa:
> Is there a way to override smtp_address_preference for a single host (or
> domain) to force an IPv4 or IPv6 connection?

/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

        Wietse

> I am asking because we are (hopefully even if slowly) approaching to a period
> when IPv6 could be adopted not only by SMTP servers with (presumed) skilled
> SysAdmin, but also by large organization whith sloppy IPv6 support.
>
> A sort of tranport map for IPv4/IPv6/any could be useful for:
> * force IPv4 connection with bogous IPv4/IPv6 MTAs
> * force IPv6 connection for testing purposes
>
>
>
> Ciao,
> luigi
>
> --
> /
> +--[Luigi Rosa]--
> \
>
> Got Mole problems? Call Avogadro 6.02 x 10^23
-- End of PGP signed section, PGP failed!
Reply | Threaded
Open this post in threaded view
|

Re: smtp IPv4/IPv6 map

Luigi Rosa-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wietse Venema said the following on 11/09/2013 14:47:

> /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

Great, thank you Wietse!





Ciao,
luigi

- --
/
+--[Luigi Rosa]--
\

The primary function of the design engineer is to make things
difficult for the fabricator and impossible for the serviceman.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlIwaEkACgkQ3kWu7Tfl6ZR0GwCgnMx9yzlDi9rE2lteHmlnWRO+
JfgAn15/fG/XnTqYjrSvUf0IqAwJQlBx
=gXvx
-----END PGP SIGNATURE-----