Re: RFC 2822 and From header field
On 05/24/2011 01:03 AM, Boris Korzun wrote: RFC 2822 says that originator header fields with the full name (of person who sent the message) in parentheses after address without angle brakets is legacy form. And postfix's sendmail sends message from user with the fullname in parentheses, Incorrect. Sendmail(1) accepts and sends RFC5322-compliant messages; it does not invent data that was not present. The From: header is either A) already present in the submitted RFC5322-compliant message, or B) provided on the sendmail(1) commandline with the -F flag, or C) taken from the NAME environment variable, or D) taken from the envelope sender provided with the -f flag if none of the above apply. http://www.postfix.org/sendmail.1.html but Sendmail (Sendmail Consortium) sends message from user by RFC implementation (the fullname is before the address with angle bracket). Can postfix developers do rewrite engine (cleanup_message.c and other) for RFC implementation? What does sendmail(1) have to do with cleanup(8) ? Postfix is an MTA, it does not rewrite mail unless you specifically tell it to. If your client submits mail with the legacy form of the From: header, fix the client. -- J.
Re: RFC 2822 and From header field
On 05/24/2011 08:44 AM, Jeroen Geilman wrote: On 05/24/2011 01:03 AM, Boris Korzun wrote: RFC 2822 says that originator header fields with the full name (of person who sent the message) in parentheses after address without angle brakets is legacy form. And postfix's sendmail sends message from user with the fullname in parentheses, Incorrect. Sendmail(1) accepts and sends RFC5322-compliant messages; it does not invent data that was not present. The From: header is either A) already present in the submitted RFC5322-compliant message, or B) provided on the sendmail(1) commandline with the -F flag, or C) taken from the NAME environment variable, or D) taken from the envelope sender provided with the -f flag if none of the above apply. http://www.postfix.org/sendmail.1.html And then formats it as Sender (full name). Sorry about that. -- J.
Re: RFC 2822 and From header field
24.05.2011, 17:44, Jeroen Geilman jer...@adaptr.nl: If your client submits mail with the legacy form of the From: header, fix the client. I send the message via sendmail(1) - sendmail -F 'Fullname' drtr0...@domain.tld And I get the header: Postfix's sendmail(1): From: sen...@domain.tld (Fullname) Sendmail inc. sendmail(1): From: Fullname sen...@domain.tld 24.05.2011, 17:49, Jeroen Geilman jer...@adaptr.nl: And then formats it as Sender (full name). Why?
Re: RFC 2822 and From header field
Boris Korzun: 24.05.2011, 17:44, Jeroen Geilman jer...@adaptr.nl: If your client submits mail with the legacy form of the From: header, fix the client. I send the message via sendmail(1) - sendmail -F 'Fullname' drtr0...@domain.tld If you want From: Fullname sen...@domain.tld, then provide the message including the From: header. Wietse