Re: SMTPD for different IPs with IPv4 and IPv6

2017-02-21 Thread Dirk Stöcker
On Wed, 22 Feb 2017, Peter wrote: On 22/02/17 09:18, Dirk Stöcker wrote: main.cf: inet_interfaces = localhost, mail.stoecker.eu Just remove the above, so it defaults to, "all". That assumes that mail.stoecker.eu is the only external IPv6 address. The advantage of IPv6 is that each service c

Re: SMTPD for different IPs with IPv4 and IPv6

2017-02-21 Thread Peter
On 22/02/17 09:18, Dirk Stöcker wrote: >>> main.cf: >>> inet_interfaces = localhost, mail.stoecker.eu >> >> Just remove the above, so it defaults to, "all". > > That assumes that mail.stoecker.eu is the only external IPv6 address. > The advantage of IPv6 is that each service can have an own addres

Re: SMTPD for different IPs with IPv4 and IPv6

2017-02-21 Thread Dirk Stöcker
On Wed, 22 Feb 2017, Peter wrote: Yes, at least for a linux box and possibly other unix hosts. You will want to make sure that /etc/host.conf has the setting, "multi on", then you can list multiple IPv4 and IPv6 addresses for the same name in /etc/hosts and use those names in your master.cf fil

Re: SMTPD for different IPs with IPv4 and IPv6

2017-02-21 Thread Peter
On 22/02/17 07:19, Dirk Stöcker wrote: > 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? Yes, at least for a linux box and possibly other unix hosts. You

SMTPD for different IPs with IPv4 and IPv6

2017-02-21 Thread Dirk Stöcker
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 I