On 8 Apr 2019, at 3:19, Dominic Raferd wrote:

On Mon, 8 Apr 2019 at 01:37, Bill Cole <
postfixlists-070...@billmail.scconsult.com> wrote:

On 7 Apr 2019, at 14:45, Chris Green wrote:

On Sun, Apr 07, 2019 at 08:23:59PM +0200, Ralph Seichter wrote:
* Chris Green:

At the moment (and it's been that way for some years) I have
myhostname in main.cf set as follows:-

myhostname = esprimo.zbmc.eu

That's fine. Use http://www.postfix.org/postconf.5.html#myorigin in
addition to your existing setting. "myorigin = $mydomain" should work
for your purposes.

Thanks.  I have myorigin set:-

    ...
    ...
    myhostname = esprimo.zbmc.eu
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = zbmc.eu
    mydestination = zbmc.eu esprimo.zbmc.eu, esprimo, chris.zbmc.eu
    ...
    ...

However, as you can see in the headers here, there are still
references to esprimo.zbmc.eu in my outgoing E-Mail headers.

You should set smtp_helo_name, which defaults to myhostname.


I would be interested to know why this is better than just setting
myhostname = zbmc.eu (i.e. rDNS / PTR value).

But that's not the PTR for the externally visible address. That would be chrisisbd01.plus.com, which has an A pointing back to the IP and a pair of MX's pointing elsewhere. I have no idea what that's about...

Setting smtp_helo_name solves the immediate reported problem without any risk of side-effects. As a matter of principle I don't like the pattern of telling one service that its hostname is a bare domain name unless it is truly the only host in that domain and can be given that name at the system level. Given the lack of a holistic view of the OP's network and services, I prefer to recommend the minimal working fix.

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole

Reply via email to