postal icon indicating copy to clipboard operation
postal copied to clipboard

[MAIL ERROR] Expected response code 250 but got code "503", with message "503 EHLO/HELO first please

Open lrqnet opened this issue 7 years ago • 17 comments

ERROR: [MAIL ERROR] Expected response code 250 but got code "503", with message "503 EHLO/HELO first please " Log data: >> MAIL FROM: << 503 EHLO/HELO first please !! Expected response code 250 but got code "503", with message "503 EHLO/HELO first please " (code: 503) (send); [email protected] [] []

Hello, I need a little help, please!

I'm trying to send e-mails to Postal through Mautic, when I send many contacts, it returns the error above. I do not know what else to do.

Could you help me, please?

lrqnet avatar Apr 04 '19 14:04 lrqnet

It looks like Mautic is misusing or reusing an SMTP connection to Postal. Is there a setting or anything to alter how it sends emails?

willpower232 avatar Apr 04 '19 14:04 willpower232

Hey, @willpower232 - this is my config on Mautic:

image

Any other change would be here:

image

Any other route, be it Sparkpost, Sendgrid or Amazon are shipped normally. Just in sending to the Postal shows that error.

lrqnet avatar Apr 04 '19 14:04 lrqnet

Presuming you haven't made any changes to the Postal code and you're up to date, the only thing I can think is that Mautic does something slightly different with multiple addressees that Postal isn't expecting.

I can't provide any support for Mautic as I don't know it at all so if you're getting this error constantly, you will have to figure out the code behind Mautic sending the email from their github repo or get some support from them.

willpower232 avatar Apr 05 '19 12:04 willpower232

If you're able to send Postal's full SMTP log of the session, we can see what the client is trying to do. The obvious answer is that it's trying to send an email without saying HELO first, but that's unlikely as AFAIK all mail servers enforce this requirement.

catphish avatar Apr 08 '19 10:04 catphish

@willpower232 Yes, I did not make any changes to the code.

lrqnet avatar Apr 08 '19 13:04 lrqnet

@catphish Ok, I'm getting the log on the server. In the case, is it possible to make some changes in the Postal so that it does not need the HELO parameter for multiple emails?

lrqnet avatar Apr 08 '19 13:04 lrqnet

@catphish this is an exemple of error on log.

errorlog_smtp.txt

lrqnet avatar Apr 08 '19 13:04 lrqnet

Thanks for the log. The specific case here is that the client sends an email. The DATA command receives an error response:

530 From/Sender name is not valid

The client then immediately tries to send another email, assuming that the transaction has been reset. I believe this is a bug in Postal, and that it should automatically reset the transaction after a DATA error in the same way it does after a DATA success.

catphish avatar Apr 08 '19 14:04 catphish

Are you able to try this fix? https://github.com/atech/postal/commit/0fb323af3f37201eed492646007ed355f3617b51

catphish avatar Apr 08 '19 14:04 catphish

Thank you very much, I will implement and perform some tests, then return with the result.

lrqnet avatar Apr 08 '19 14:04 lrqnet

@catphish Apparently it has been fixed, has not returned the reported error and the emails are being properly delivered.

Tomorrow I have a new mailing scheduled and I will inform the result here as well. Many thanks friend, you are awesome!

lrqnet avatar Apr 08 '19 18:04 lrqnet

@catphish It worked very well on today's shipments, problem solved. Thank you so much!

lrqnet avatar Apr 09 '19 21:04 lrqnet

Are you able to try this fix? 0fb323a

Hello, @catphish I tried it that way, but it did not work for me.


[2019-04-18 14:52:12] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code "530", with message "530 From/Sender name is not valid " Log data: >> MAIL FROM: << 250 OK >> RCPT TO: << 250 OK >> DATA << 354 Go ahead >> . << 530 From/Sender name is not valid !! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid " (code: 530) (send);

munin81 avatar Apr 18 '19 18:04 munin81

That appears to be a completely unrelated issue. Check your from address :)

catphish avatar Apr 18 '19 22:04 catphish

Are you able to try this fix? 0fb323a

Hi,

Since the fix is over 1.5 years old, isn't it part of new versions we install ?

In last 10-15 days, I have setup 5 VPS with default installations of Postal

Started getting this error soon on all VPS. --- Expected response code 354 but got code "530"

Found this Fix, but there is no such folder ( lib/postal/smtp_server ) on my servers. Has it moved ? My OS is Ubuntu 16

image

Thanks !

JaiBansal24 avatar Dec 08 '20 15:12 JaiBansal24

@JaiBansal24 the directory is /opt/postal/app/lib/postal/smtp_server

willpower232 avatar Dec 09 '20 10:12 willpower232

@lrqxyz Same issue coming for me. I tried a test campaign for a segment contains 7 contacts. After a scheduled campaign published the email has been sent to two contacts only, for the other contact it shows the below error. Screenshot (6)

Jaisara avatar Jul 27 '22 15:07 Jaisara