I guess my problem is that when I have that set, myhostname is added to all 
mail. TO: aliases looked up in LDAP are returned as just usernames and end up 
as usern...@mx.example.com and bounce. 

To clarify, i would expect that the FROM: changes, and this is what I want for 
local mail, but the TO: address changes as well.

An example internal fail2ban alert: 
* pickup shows From:<fail2ban>, $mydomain is appended. To: is an alias in LDAP. 
LDAPnames@$mydomain

With /etc/mailname, 
* pickup shows From:<fail2ban>, $myhostname is appended. To: is an alias in 
LDAP. LDAPnames@$myhostname. Not local, bounces no mailbox for users. 

Cron is the same. On an older system greps for pickup and fail2ban, cron, etc 
show From:<fail2ban@fqdn>

Gmail is not being used in the domain in question. I’m just using this to 
submit my question. 


>> On Feb 7, 2020, at 2:45 PM, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:
>> 
>> On 07.02.20 12: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
> 
> That is the point of myorigin, why you want it else?
> 
> -- 
> Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> 10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!

Reply via email to