Rich sent me a couple files as requested. Of these, File mailnull.txt
(UNIX mailbox format) has a null byte at the end of the last line.
I send this into Postfix
$ tail +2 nullmail.txt | sendmail wietse@localhost
When I view my mailbox with less, the last line looks like:
--0022152d69ed0748e004a0b133e7--^@
where ^@ represents the null character.
When I send this into Postfix with
/etc/postfix/main.cf:
message_strip_characters = \0
Then, the last line looks like this:
--0022152d69ed0748e004a0b133e7--
That is, the null character is removed.
However, message_strip_characters has no effect when mail
is received with
receive_override_options = no_header_body_checks ...
This is set either in master.cf or main.cf.
Wietse