Thanks. If I remove $myorigin than all mail ends up going to @mx.example.com 
and bounces. 

postconf -n output https://pastebin.com/WwVdT8CF

> On Feb 7, 2020, at 12:59 PM, Bill Cole 
> <postfixlists-070...@billmail.scconsult.com> wrote:
> 
> On 7 Feb 2020, at 13:01, xegr...@gmail.com wrote:
> 
>> Hi. In a new install of Postfix 3.4.7-0+deb10u1 on Debian buster, I would 
>> like Postfix to append $myhostname instead of $myorigin to local mail with a 
>> From header containing just a username, like cron or fail2ban emails.
> 
> Then just don't explicitly set $myorigin. Its only purpose is to qualify bare 
> local-parts and it defaults to $myhostname.
> 
> If for some reason that is unacceptable, see 
> http://www.postfix.org/DEBUG_README.html#mail for how best to document your 
> problem to get useful help here. A selection of the configuration directives 
> that you *think* are relevant is much less useful than your actual "postconf 
> -n output."
> 
> 
> -- 
> Bill Cole
> b...@scconsult.com or billc...@apache.org
> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
> Not Currently Available For Hire

Reply via email to