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.

-- 
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