Re: From header local mail

2020-02-08 Thread Wietse Venema
xegr...@gmail.com: > 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. This server is listed in mx records for >

Re: From header local mail

2020-02-07 Thread xegroeg
And the second server listed as MX for this domain has an identical main.cf, but is running an older Postfix. > On Feb 7, 2020, at 5:03 PM, xegr...@gmail.com wrote: > > I guess my problem is that when I have that set, myhostname is added to all > mail. TO: aliases looked up in LDAP are

Re: From header local mail

2020-02-07 Thread xegroeg
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

Re: From header local mail

2020-02-07 Thread Bob Proulx
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. This server is listed in mx records for >

Re: From header local mail

2020-02-07 Thread Matus UHLAR - fantomas
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 ;

Re: From header local mail

2020-02-07 Thread xegroeg
 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 >> wrote: >> >> On 7 Feb 2020, at 13:01, xegr...@gmail.com wrote: >> >> Hi. In a new install of Postfix

Re: From header local mail

2020-02-07 Thread xegroeg
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 > wrote: > > On 7 Feb 2020, at 13:01, xegr...@gmail.com wrote: > >> Hi. In a new install of Postfix

Re: From header local mail

2020-02-07 Thread Bill Cole
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

From header local mail

2020-02-07 Thread xegroeg
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. This server is listed in mx records for example.com. In older Postfix