On social.eden.one:
> myhostname = social.eden.one
> myorigin = /etc/mailname
> root@social:~# cat /etc/mailname
> social.eden.one
> mydestination = $myhostname, localhost.localdomain, localhost

> 2026-01-16T09:01:45.329087+01:00 social postfix/local[1033781]: 4A28540108: to
=<[email protected]>, orig_to=<root>, relay=local, delay=0.04, delays=0.02/0.
01/0/0, dsn=2.0.0, status=sent (forwarded as 4F45940059)

Above, 'root' becomes '[email protected]', as expected based on the
myorigin setting. The result matches mydestination and the message is
handled by the Postfix local delivery agent as expected.

> myhostname = socialnew.eden.one
> myorigin = /etc/mailname
> root@socialnew:~# cat /etc/mailname
> socialnew.eden.one
> mydestination = $myhostname, localhost.localdomain, localhost

> 2026-01-16T09:50:48.801409+01:00 socialnew postfix/smtp[1914]: 204178035A: to=
<[email protected]>, relay=mail.eden.one[2a01:4f8:1c1f:876d:8000::10]:587, delay=0
.67, delays=0.01/0.02/0.28/0.37, dsn=2.0.0, status=sent (250 2.0.0 3b1bfbad Mess
age accepted for delivery)

Above, 'root' becomes '[email protected]', this does not match
mydestination, therefore it is handled by the Postfix SMTP client.

Postfix does not spontanerously replace 'root' or '[email protected]'
with '[email protected]'.

Maybe that address is a 'mail' command feature..

To diagnose:

    postfix stop
    echo test | mail -s test root
    postqueue -p
    [output is a queue ID]
    postcat -q <queue ID>
    postsuper -d  <queue ID>
    postfix start

The postcat command will show the envelope recipient as submitted
by the mail command.

If that address is 'root', then it is time to examine your
Postfix configration.

    grep -rl @eden.one /etc/postfix

(this might flag a rule if you use any canonical_maps)

and other desperate searches.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to