Wietse Venema:
> steve zeng:
> > Greetings!
> > 
> > We switched from Exim 4.6.3 to postfix 2.3.3 as mail relay host on RHEL 5.
> > We start getting report that email are rejected. We did a telnet emulation
> > and found that postfix reject email header as below:
> > 
> > MAIL FROM: "My Company Support" <supp...@mycompany.com>
> 
> That is not valid syntax.  See the SMTP protocol specification: RFC 5322.

You can fix SMTP syntax with the smtpd_command_filter feature:

/etc/postfix/main.cf:
     smtpd_command_filter = pcre:/etc/postfix/command_filter

/etc/postfix/command_filter:
     /^MAIL FROM:\s*"[^"]+"\s+(<.+)/    $1

But basically the sending app is badly broken.

        Wietse

Reply via email to