On Thu, Jan 24, 2019 at 05:15:58PM -0600, Noel Jones wrote:

> On 1/24/2019 4:54 PM, Matt Wong wrote:
> 
> > Well, I got a bit further: When listing mailq postfix complains
> > about "127.0.0.1 loop back to myself".
> 
> Change the postfix "myhostname" parameter to something other than
> what James uses.

While that's necessary, it is typically not sufficient.  One also
needs to make sure that that destination IP address is not listed
in "inet_interfaces".

In this case, an explicit setting of "inet_interfaces" to just the
public IP address of the machine would be required.

    main.cf:
        # Choose a non-loopback interface IP
        #
        inet_interfaces = 192.0.2.1

        # Choose a name that is different from the name used in
        # the SMTP 220 greeting banner or EHLO response of the
        # non-Postfix loopback SMTP service.
        #
        myhostname = mail.example.com

        ...

-- 
        Viktor.

Reply via email to