main.cf :
smtpd_sender_restriction = check_sender_access pcre:/etc/postfix/
tag_sender
/etc/postfix/tag_sender :
/./ PREPEND X-Null-Sender: Yes
Then, when I send a message to my postfix server with my regular mail
client, it works.
BUT
when I send the message directly using telnet, writting a very simple
SMTP session by hand, no header is prepended ?!
HELO toto.com
MAIL FROM: to...@toto.com
RCPT TO: postmaster
DATA
Subject: Test toto
.
QUIT
=> mail is delivered, but no header is added.
WHY ?!