]> git.sur5r.net Git - bacula/bacula/commit
Reset bsmtp to only send to IPv4 mailhosts.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 3 Jul 2012 14:11:12 +0000 (16:11 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Tue, 3 Jul 2012 14:11:12 +0000 (16:11 +0200)
commitbb4382123dc62aee5a82b7d06ebf3d1377ad7880
tree60b3cf42556c77d50f50db4cc2a328822a0d5a64
parenta63ac58147bd4bb748b79df25179bae60118180e
Reset bsmtp to only send to IPv4 mailhosts.

As part of the support for getaddrinfo which replaces the obsolete
gethostbyname interface in POSIX we can now connect to IPv6 mailhosts.
As it seems on a lot of hosts localhost is defined first as IPv6
address and then as IPv4 address. As a result of this bsmtp tries
to connect to a local mailhost using the ipv6 protocol but most
people forget to allow relay rights for IPv6 local SMTP traffic
and as such the mail is dropped. So for now we revert the behaviour
of bsmtp to only connect to IPv4 mailhosts unless the -a option
is given which will query the name service for any suitable protocol.
bacula/src/tools/bsmtp.c