I have recently started using the SMTP relay module in Mercury 4.01b to relay some of my email to an Exchange server. One of my vendors uses an automated reply with a FROM: header that appears to be causing the SMTP C module some problems.
The header field looks like this:
From: Bush Hog, "L.L.C." <first.last@bushhog.com>
I've replaced the user name, however the rest of the line is verbatim; pasted directly from the raw message as stored locally by Mercury.
The module relays this (copied from the log file):
10:22:23.781: << MAIL FROM:<Bush Hog> SIZE=2877<cr><lf>
10:22:23.781: >> 501 5.5.4 Invalid Address<cr><lf>
Mercury tries to send an NDR to <Bush Hog> which results in 3 NDR's to the postmaster as the invalid address gracefully deteriorates. Mercury tries to followup the first failed address with the following:
10:26:27.093: << MAIL FROM:<> SIZE=5368<cr><lf>
10:26:27.093: >> 250 2.1.0 <>....Sender OK<cr><lf>
10:26:27.093: << RCPT TO:<<>><cr><lf>
10:26:27.093: >> 501 5.5.4 Invalid Address<cr><lf>
At the moment I'm filtering out these incoming messages while I work on a solution. I haven't received a reply from the vendor yet as to whether they can or will change their address field.
Is this a possible flaw in the module parsing routine or just a weakness exposed by a bad and/or invalid address field?
Any other thoughts or suggestions on this problem? I get 3-4 of these replies per day and they are necessary for verification and tracking of orders so I can't just dump them.
Thanks for any and all replies.
Regards,
Dave
<P>I have recently started using the SMTP relay module in Mercury 4.01b to relay some of my email to an Exchange server. One of my vendors uses an automated reply with a FROM: header that appears to be causing the SMTP C module some problems. </P>
<P>The header field looks like this:</P>
<P>From: Bush Hog, "L.L.C." &lt;first.last@bushhog.com&gt;</P>
<P>I've replaced the&nbsp;user name,&nbsp;however the rest of the line is verbatim; pasted directly from the raw message as stored locally by Mercury.</P>
<P>The module&nbsp;relays this (copied from the log file):</P>
<P>10:22:23.781: &lt;&lt; MAIL FROM:&lt;Bush Hog&gt; SIZE=2877&lt;cr&gt;&lt;lf&gt;
10:22:23.781: &gt;&gt; 501 5.5.4 Invalid Address&lt;cr&gt;&lt;lf&gt;</P>
<P>Mercury&nbsp;tries to send an NDR to &lt;Bush Hog&gt; which results in 3 NDR's to the postmaster as the invalid address gracefully deteriorates. Mercury tries to followup the first&nbsp;failed address with the following: </P>
<P>10:26:27.093: &lt;&lt; MAIL FROM:&lt;&gt; SIZE=5368&lt;cr&gt;&lt;lf&gt;
10:26:27.093: &gt;&gt; 250 2.1.0 &lt;&gt;....Sender OK&lt;cr&gt;&lt;lf&gt;
10:26:27.093: &lt;&lt; RCPT TO:&lt;&lt;&gt;&gt;&lt;cr&gt;&lt;lf&gt;
10:26:27.093: &gt;&gt; 501 5.5.4 Invalid Address&lt;cr&gt;&lt;lf&gt;</P>
<P>At the moment I'm filtering out these incoming messages while I work on a solution. I haven't received a reply from the vendor yet as to whether they can or will change their address field.</P>
<P>Is this a possible flaw in the module parsing routine or just a weakness exposed by a bad and/or invalid address field?</P>
<P>Any other thoughts or suggestions on this problem? I get 3-4 of these replies per day and they are necessary for verification and tracking of orders so I can't just dump them.</P>
<P>Thanks for any and all replies.</P>
<P>Regards,</P>
<P>Dave</P>
<P mce_keep="true">&nbsp;</P>