Hello,
I did clean up my mail server a bit to finally get rid of my known issues
(i.e. filtering outgoing mails with SpamAssasin).
Using the approach like in
http://www.postfix.org/FILTER_README.html#remote_only
I did setup separate entries for localhost and external IP. Now with IPv4
and IPv6 that results in 4 lines of SMTP in master.cf.
Is this the way to go or can it be reduced to 2 lines? I tried to use
dns-names resolving to both addresses instead of IP addresses, but then
only the IPv4 address was used.
master.cf:
172.31.1.100:smtp inet n - n - - smtpd
-o smtpd_milters=inet:localhost:10027,inet:localhost:10028
-o content_filter=scan:[127.0.0.1]:10025
[2a01:4f8:c17:15d5::1:40]:smtp inet n - n - - smtpd
-o smtpd_milters=inet:localhost:10027,inet:localhost:10028
-o content_filter=scan:[127.0.0.1]:10025
127.0.0.1:smtp inet n - n - - smtpd
[::1]:smtp inet n - n - - smtpd
main.cf:
inet_interfaces = localhost, mail.stoecker.eu
inet_protocols = ipv4, ipv6
In case you wonder - The local IPv4 is not equal to the external visible
one for mail.stoecker.eu.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)