On Mon, Mar 23, 2026 at 06:16:46AM -0400, Scott Hollenbeck wrote:

> [SAH] Thanks, I did read that before sending my original message. I
> provided the problem statement above. I'm trying to configure postfix
> so that the domain part of the sender email address is "dnsmon.net".
> What's being used is "juno", the host name.

Well, Postfix only gets to set the domin part of the sender address
when it is not already set by the MUA or command-line program
that submitted the message.

> 2026-03-22T18:29:00.796297-04:00 localhost postfix/pickup[32729]: 
> C241860603C3: uid=1000 from=<sah62@juno>

Almost certainly, the "@juno" was the sender address passed via
"sendmail -f", and was not added by Postfix, which would append
$myorigin.

> 2026-03-22T18:29:00.811585-04:00 localhost postfix/qmgr[32730]: C241860603C3: 
> from=<sah62@juno>, size=366, nrcpt=1 (queue active)

It seems you have the default "append_dot_mydomain = no", so "@juno"
survives unmodified.  My advice is set the system hostname to a
fully-qualified name and rewrite it if necessary, because some
software may default to appending the system hostname to unqualified
addresses.

> append_dot_mydomain = no

My choice may be outside the mainstream, but I generally set this to "yes".

> myorigin = /etc/mailname

That's a Debianism, but assuming that name is not "juno", we have clear
evidence that that problem sender address is already in place before
Postfix gets to handle the message.

> pickup     fifo  n       -       y       60      1       pickup
> cleanup    unix  n       -       y       -       0       cleanup

Nothing unexpected there.

-- 
    Viktor.  🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to