Community Discussions and Support
Expecting 334, but getting 235

Ok, figured out my problem.

My handler was returning 1, instead of returning 0, which was why Mercury returned 235.
My handler should be returning 0, so that Mercury will return 334.

Issue resolved.

<p>Ok, figured out my problem.</p><p>My handler was returning 1, instead of returning 0, which was why Mercury returned 235. My handler should be returning 0, so that Mercury will return 334.</p><p>Issue resolved. </p>

Hi everyone,

I have a problem with the Mercury SMTP server.

Here's a log of a session:

04:08:44.867: Connection from 124.77.145.122, Wed Dec 18 04:08:44 2013<lf>
04:08:44.867: << 220 announcer ESMTP server ready.<cr><lf>
04:08:45.240: >> EHLO q-86cf7b5066fb4<cr><lf>
04:08:45.240: << 250-announcer Hello q-86cf7b5066fb4; ESMTPs are:<cr><lf>250-TIME<cr><lf>
04:08:45.240: << 250-SIZE 0<cr><lf>
04:08:45.240: << 250-AUTH CRAM-MD5 LOGIN<cr><lf>
04:08:45.240: << 250-AUTH=LOGIN<cr><lf>
04:08:45.240: << 250 HELP<cr><lf>
04:08:48.360: >> AUTH LOGIN<cr><lf>
04:08:48.360: << 334 VXNlcm5hbWU6<cr><lf>
04:08:49.655: >> d2VibWFzdGVy<cr><lf>
04:08:49.655: << 334 UGFzc3dvcmQ6<cr><lf>

As you can see, after the client sends AUTH LOGIN, Mercury SMTP sends 334.

On the other hand, when I tried to simulate this by performing telnet MercurySMTPServerHostName 25, I get a 235 instead, as the log session below shows:

09:19:43.053: << 220 announcer ESMTP server ready.<cr><lf>
09:19:45.440: >> EHLO ME<cr><lf>
09:19:45.440: << 250-announcer Hello ME; ESMTPs are:<cr><lf>250-TIME<cr><lf>
09:19:45.440: << 250-SIZE 0<cr><lf>
09:19:45.440: << 250-AUTH CRAM-MD5 LOGIN<cr><lf>
09:19:45.440: << 250-AUTH=LOGIN<cr><lf>
09:19:45.440: << 250 HELP<cr><lf>
09:20:03.803: >> auth login<cr><lf>
09:20:03.819: << 235 Authentication successful.<cr><lf>
09:20:17.732: >> quit<cr><lf>
 

Why am I not getting a 334 response?

&lt;p&gt;Hi everyone,&lt;/p&gt;&lt;p&gt;I have a problem with the Mercury SMTP server.&lt;/p&gt;&lt;p&gt;Here&#039;s a log of a session:&lt;/p&gt;&lt;p&gt;04:08:44.867: Connection from 124.77.145.122, Wed Dec 18 04:08:44 2013&amp;lt;lf&amp;gt; 04:08:44.867: &amp;lt;&amp;lt; 220 announcer ESMTP server ready.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;gt;&amp;gt; EHLO q-86cf7b5066fb4&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;lt;&amp;lt; 250-announcer Hello q-86cf7b5066fb4; ESMTPs are:&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt;250-TIME&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;lt;&amp;lt; 250-SIZE 0&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;lt;&amp;lt; 250-AUTH CRAM-MD5 LOGIN&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;lt;&amp;lt; 250-AUTH=LOGIN&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:45.240: &amp;lt;&amp;lt; 250 HELP&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:48.360: &amp;gt;&amp;gt; AUTH LOGIN&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:48.360: &amp;lt;&amp;lt; 334 VXNlcm5hbWU6&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:49.655: &amp;gt;&amp;gt; d2VibWFzdGVy&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 04:08:49.655: &amp;lt;&amp;lt; 334 UGFzc3dvcmQ6&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; &lt;/p&gt;&lt;p&gt;As you can see, after the client sends AUTH LOGIN, Mercury SMTP sends 334.&lt;/p&gt;&lt;p&gt;On the other hand, when I tried to simulate this by performing telnet MercurySMTPServerHostName 25, I get a 235 instead, as the log session below shows:&lt;/p&gt;&lt;p&gt;09:19:43.053: &amp;lt;&amp;lt; 220 announcer ESMTP server ready.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;gt;&amp;gt; EHLO ME&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;lt;&amp;lt; 250-announcer Hello ME; ESMTPs are:&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt;250-TIME&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;lt;&amp;lt; 250-SIZE 0&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;lt;&amp;lt; 250-AUTH CRAM-MD5 LOGIN&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;lt;&amp;lt; 250-AUTH=LOGIN&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:19:45.440: &amp;lt;&amp;lt; 250 HELP&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:20:03.803: &amp;gt;&amp;gt; auth login&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:20:03.819: &amp;lt;&amp;lt; 235 Authentication successful.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 09:20:17.732: &amp;gt;&amp;gt; quit&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; &amp;nbsp;&lt;/p&gt;&lt;p&gt;Why am I not getting a 334 response? &lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft