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

Created on 4 Apr 2019  路  16Comments  路  Source: postalhq/postal

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?

Most helpful comment

All 16 comments

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?

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.

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.

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.

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

@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?

@catphish this is an exemple of error on log.

errorlog_smtp.txt

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.

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

@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!

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

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);

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

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 the directory is /opt/postal/app/lib/postal/smtp_server

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harshweo picture harshweo  路  6Comments

ILoveYaToo picture ILoveYaToo  路  3Comments

Igcorreia picture Igcorreia  路  4Comments

ajsb85 picture ajsb85  路  4Comments

igerzog picture igerzog  路  5Comments