postal icon indicating copy to clipboard operation
postal copied to clipboard

Failure Code

Open longhorninmd opened this issue 9 years ago • 7 comments

We've been trying to configure our front-end app to be able to relay mail through postal (running on an EC2 AWS instance). The SMTP authentication seems to be inconsistent. For many recipients, the logging shows error:

"530 Authentication required"

However, there are some recipients for which the connection is accepted and the message processed:

"334 PGYzZTE5N2MyZDEyNDE0NjEyY2I5QG10YS5taWdvMDEubmV0Pg==" "235 Granted for ..." (after the DATA command) "354 Go ahead"

Has anyone else experienced this? If so, how did you solve the issue?

Thx!

longhorninmd avatar May 19 '17 15:05 longhorninmd

Are you able to provide the full SMTP server log for the connection where this occurs?

catphish avatar May 19 '17 16:05 catphish

Does this help?

[34m[smtp.1:32384] [2017-05-12T08:53:03.430] DEBUG -- : [T0QRKN] => 250 OK
[smtp.1:32384] [2017-05-12T08:53:03.530] DEBUG -- : [T0QRKN] <= MAIL FROM:<[email protected]>
[smtp.1:32384] [2017-05-12T08:53:03.531] DEBUG -- : [T0QRKN] => 250 OK
[smtp.1:32384] [2017-05-12T08:53:03.615] DEBUG -- : [T0QRKN] <= RCPT TO:<[email protected]>
[smtp.1:32384] [2017-05-12T08:53:03.623] DEBUG -- : [T0QRKN] => 530 Authentication required
[smtp.1:32384] [2017-05-12T08:53:03.709] DEBUG -- : [T0QRKN] <= RSET
[smtp.1:32384] [2017-05-12T08:53:03.709] DEBUG -- : [T0QRKN] => 250 OK
[smtp.1:32384] [2017-05-12T08:53:03.807] DEBUG -- : [T0QRKN] <= MAIL FROM:<[email protected]>
[smtp.1:32384] [2017-05-12T08:53:03.808] DEBUG -- : [T0QRKN] => 250 OK
[smtp.1:32384] [2017-05-12T08:53:03.893] DEBUG -- : [T0QRKN] <= RCPT TO:<[email protected]>
[smtp.1:32384] [2017-05-12T08:53:03.901] DEBUG -- : [T0QRKN] => 530 Authentication required
[smtp.1:32384] [2017-05-12T08:53:03.986] DEBUG -- : [T0QRKN] <= RSET

longhorninmd avatar May 19 '17 16:05 longhorninmd

Yes, that is very helpful. Can you confirm what revision of the software you are running? Some changes were made very recently that may already fix this bug.

catphish avatar May 19 '17 21:05 catphish

release-0

On Fri, May 19, 2017 at 5:15 PM, Charlie Smurthwaite < [email protected]> wrote:

Yes, that is very helpful. Can you confirm what revision of the software you are running? Some changes were made very recently that may already fix this bug.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/atech/postal/issues/175#issuecomment-302812909, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIKmIqH2Oi_6zYu0J2bbnZ-g45mV7erks5r7gZZgaJpZM4NgsRW .

longhorninmd avatar May 19 '17 23:05 longhorninmd

release-0 isn't a commit ref, tag name or version number of Postal.

adamcooke avatar May 22 '17 09:05 adamcooke

Looking again at the log, I see you are using the RSET command. There was a bug where RSET un-authenticated a connection, so it's very likely this is your problem. This bug was fixed in dacddb4d8e32ed78de25278109e8d711f1a397fe so it's extremely likely that if you upgrade, this will be resolved.

If the problem persists, could you perhaps get the full log of an SMTP session so that we can see whether this session was authenticated or not.

catphish avatar May 22 '17 12:05 catphish

Just wanted to report that the update did the trick. Thanks for your help!

longhorninmd avatar May 23 '17 14:05 longhorninmd