As a follow-up to [this question][1], I have more issues appearing that
are related but a bit more complex than initially perceived.

 

 

  [1]: http://serverfault.com/questions/379964/postfix-unknown-command

 

I have a postfix server set up to receive specific messages bounced from
an external mail gateway for milter processing.  I'm noticing in the
logs that, in some cases (albeit rare ones), parts of the message are
being passed to SMTPD as commands.   This, in turn, causes the milter to
partially fail.

 

example:  (edited for content) 

 

 

    Apr 26 19:03:26 mailproc postfix/smtpd[12912]: connect from
mail-gw.MYDOMAIN.com[10.102.2.29] 

    Apr 26 19:03:26 mailproc postfix/smtpd[12912]: DBE686E612EE:
client=mail-gw.MYDOMAIN.com[10.102.2.29] 

    Apr 26 19:03:26 mailproc postfix/cleanup[13346]: DBE686E612EE:
message-id=<[email protected]
orp.SENDERDOMAIN.com> 

    Apr 26 19:03:26 mailproc postfix/smtpd[12912]:
mail-gw.MYDOMAIN.com[10.102.2.29]: replacing command "to, Emeryville,
Oakland." with "" 

    Apr 26 19:03:26 mailproc postfix/smtpd[12912]:
mail-gw.MYDOMAIN.com[10.102.2.29]: replacing command "res but do not
contain LID." with "" 

    Apr 26 19:03:26 mailproc postfix/qmgr[392]: DBE686E612EE:
from=<[email protected]>, size=15945, nrcpt=1 (queue active) 

    Apr 26 19:03:27 mailproc postfix/smtp[13559]: DBE686E612EE:
to=<[email protected]>,
relay=ph-svr-exch1.MYDOMAIN.com[10.102.2.30]:25, delay=0.15,
delays=0.07/0.03/0/0.04, dsn=2.6.0, status=s\ 

    ent (250 2.6.0
<d04184b070a8014fae433e611b370c25033...@senderdomain-mail10.corp.SENDERD
OMAIN.com> Queued mail for delivery) 

    Apr 26 19:03:27 mailproc postfix/qmgr[392]: DBE686E612EE: removed 

    Apr 26 19:03:29 mailproc postfix/smtpd[12912]: warning: non-SMTP
command from mail-gw.MYDOMAIN.com[10.102.2.29]:
<http://www.MYDOMAIN.com/>  |  MYDOMAIN, LLC<http://www.w= 

    Apr 26 19:03:30 mailproc postfix/smtpd[12912]: disconnect from
mail-gw.MYDOMAIN.com[10.102.2.29] 

    Apr 26 19:03:50 mailproc postfix/smtpd[12912]: connect from
mailproc.MYDOMAIN.com[10.102.2.164] 

    Apr 26 19:03:50 mailproc postfix/smtpd[12912]: disconnect from
mailproc.MYDOMAIN.com[10.102.2.164] 

    Apr 26 19:04:41 mailproc postfix/smtpd[12912]: connect from
phsmtp.MYDOMAIN.com[10.102.2.29] 

    Apr 26 19:04:41 mailproc postfix/smtpd[12912]: CF9886E612EE:
client=phsmtp.MYDOMAIN.com[10.102.2.29] 

    Apr 26 19:04:41 mailproc postfix/cleanup[13346]: CF9886E612EE:
message-id=<[email protected]
orp.SENDERDOMAIN.com> 

    Apr 26 19:04:41 mailproc postfix/qmgr[392]: CF9886E612EE:
from=<[email protected]>, size=16075, nrcpt=1 (queue active) 

    Apr 26 19:04:41 mailproc postfix/smtpd[12912]:
phsmtp.MYDOMAIN.com[10.102.2.29]: replacing command "to, Emeryville,
Oakland." with "" 

    Apr 26 19:04:41 mailproc postfix/smtpd[12912]:
phsmtp.MYDOMAIN.com[10.102.2.29]: replacing command "res but do not
contain LID." with "" 

    Apr 26 19:04:41 mailproc postfix/smtp[13559]: CF9886E612EE:
to=<[email protected]>,
relay=ph-svr-exch1.MYDOMAIN.com[10.102.2.30]:25, delay=0.1,
delays=0.05/0/0/0.04, dsn=2.6.0, status=sent \ 

    (250 2.6.0
<d04184b070a8014fae433e611b370c25033...@senderdomain-mail10.corp.SENDERD
OMAIN.com> Queued mail for delivery) 

 

The "replacing command" notes you see from the log are replaced via
smtpd_command_filter 

 

Thanks,

 

Larry G. Wapnitsky MBA, MCSE, MCP+I
IT SUPPORT & ADMINISTRATION COORDINATOR
WRT <http://www.wrtdesign.com/>   |  Wallace Roberts & Todd, LLC
<http://www.wrtdesign.com/> 
1700 Market Street, 28th Fl
Philadelphia, PA 19103
T  215.430.5068
C  215.713.8635
E  [email protected] <mailto:[email protected]> 

 






----wrtmail--%3423wrt%----

Reply via email to