Thanks, Nick and Mr Venema,

I put the following debug and command_filter in main.cf:

smtpd_command_filter = pcre:/etc/postfix/command_filter
notify_classes = resource, software, protocol, policy

/etc/postfix/command_filter:
/^(MAIL\s+FROM:).+(<.+>)/       $1$2

In postmaster email, I got:

Out: 220 qa.mycompany.com ESMTP Postfix
 In:  HELO app01.mycompany.com
 Out: 250 postfix.mycompany.com
 In:  MAIL FROM: Customer Support <do.not.re...@mycompany.com>
 Out: 555 5.5.4 Unsupported option: Customer


It looks like the command filter did not kick in. when looked at its
document, it appears available from postfix 
2.7 and above.  I am currently 2.3.3 and cannot upgrade it for company
policy.
http://www.postfix.org/postconf.5.html#smtpd_command_filter


Is there a postfix config to simply disable the syntax check on MAIL FROM
field? The Exim version we had before does not check it.

Thanks,
Steve

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Nick
Sent: Monday, December 22, 2014 4:50 PM
To: postfix-users@postfix.org >> Postfix users
Cc: steve zeng
Subject: Re: 5.5.4 Unsupported option: <supp...@mycompany.com>

Hi!

On 2014-12-22 7:06 PM, steve zeng wrote:
> 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>
>

Are you sure that is indeed what is being sent?

As Mr Venema (the author of Postfix) pointed out, this is not valid syntax.

You might want to temporarily set

notify_classes = resource, software, protocol, policy

(and make sure you have an alias for the postmaster)

to help track down this problem...

re: http://www.postfix.org/BASIC_CONFIGURATION_README.html#notify

Good luck!

Nick


Reply via email to