1

I have a complex postfix setup with dovecot authentication, amavis and spamassassin.

The inet_interfaces are set to my IPv4 address, IPv6 address and IPv4 and IPv6 loopback. But I want that the submission service only listen on the public IP addresses and not on localhost addresses. How can it set this?

Using -o inet_interfaces= public ipv4, public ipv6 in master.cf does not work.

  • Have you tried recreating the submission port, but instead of calling it submission, call it a.valid.ip.addr:587 ? Obviously, with an actual IP there :) – NickW Jan 5 '15 at 11:44
  • Did you restart the services? What are the logs telling? – sebix Jan 5 '15 at 12:04
  • 1
    Now I use "hostname:submission" and in /etc/hosts this name resolvs to my public ipv4 and ipv6 address. Now it works! Thanks! – user219962 Jan 5 '15 at 12:16
  • Cool, glad you got it going! :) – NickW Jan 5 '15 at 14:08
3

I found out the solution.

First you have to check that in /etc/hosts file, your hostname is mapped to your IPv4 and IPv6 address.

Then you can can use this in /etc/postfix/master.cf:

...
yourhostname:submission   inet  n       -       n       -       -       smtpd
...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy