On 2026-01-16 14:13, Wietse Venema via Postfix-users wrote:

> 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.

This is what happens:

==================================================
root@social:~# echo test | mail -s test root
root@social:~# postqueue -p
postqueue: warning: Mail system is down -- accessing queue directly (Connect to 
the Postfix showq service: Connection refused)
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
BC1A080128      224 Fri Jan 16 21:21:38  [email protected]
                                         [email protected]

-- 0 Kbytes in 1 Request.
root@social:~# postcat -q BC1A080128
*** ENVELOPE RECORDS maildrop/BC1A080128 ***
message_arrival_time: Fri Jan 16 21:21:38 2026
named_attribute: rewrite_context=local
sender_fullname: root
sender: [email protected]
*** MESSAGE CONTENTS maildrop/BC1A080128 ***
Subject: test
To: "root" <[email protected]>
User-Agent: mail (GNU Mailutils 3.17)
Date: Fri, 16 Jan 2026 21:21:38 +0100

test
*** HEADER EXTRACTED maildrop/BC1A080128 ***
recipient: [email protected]
*** MESSAGE FILE END maildrop/BC1A080128 ***
==================================================

So the recipient is indeed transformed somehow.

For comparison, I fired up the old server again (now called socialold),
and it behaves correctly (as before):

==================================================
root@socialold:~# echo test | mail -s test root
root@socialold:~# postqueue -p
postqueue: warning: Mail system is down -- accessing queue directly (Connect to 
the Postfix showq service: Connection refused)
-Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
80D3B40110      193 Fri Jan 16 21:27:29  [email protected]
                                         root

-- 0 Kbytes in 1 Request.
root@socialold:~# postcat -q 80D3B40110
*** ENVELOPE RECORDS maildrop/80D3B40110 ***
message_arrival_time: Fri Jan 16 21:27:29 2026
named_attribute: rewrite_context=local
sender_fullname: root
sender: [email protected]
*** MESSAGE CONTENTS maildrop/80D3B40110 ***
Subject: test
To: root
User-Agent: mail (GNU Mailutils 3.17)
Date: Fri, 16 Jan 2026 21:27:29 +0100

test
*** HEADER EXTRACTED maildrop/80D3B40110 ***
recipient: root
*** MESSAGE FILE END maildrop/80D3B40110 ***
==================================================

/etc/aliases is identical (mapping root to [email protected]),
mail.mailutils is identical, and the Postfix configuration is identical
(except for the hostname).

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

Reply via email to