Postal: SMTP Server connection timeout

Created on 29 Jun 2020  路  7Comments  路  Source: postalhq/postal

Hello guys.

I periodically receive Connection timeout from the SMTP Server endpoint in my app.

I know this is something related to the i/o blocking smtp server. Does any one know any work around for this? Is there anyway to add more threads to the SMTP Server?

support

Most helpful comment

For anyone looking for a solution if they have the same problem, the following methods worked for us:

  1. For our application server, we simply are using the HTTP send message endpoint, with some retry strategies tuned for network failures and response timeouts.
  2. For our marketing app which only accepts SMTP server, we created a postfix relay pointing to the postal SMTP. postfix has some nice requeueing configs which are really useful.

All 7 comments

Are you sending lots of SMTP traffic to Postal? You may be interested in #751

Occasionally yes, I have also activated the firewall on the SMTP port to allow only defined IPs. I'm going to look at it. Thanks.

We are having the same problem from time to time (explained at #466). If you find a solution please comment it here so we can all see how to deal with that.

@cmmata for now I'm going to create an identical server reflecting the same credentials as the old one + putting a tcp proxy in front of them with the timeout half than the current setup, I haven't tested yet but I think it would work.

@reshadman if you can point your multiple servers at the same database/rabbitmq then you won't have to mess around making sure the credentials are the same

For anyone looking for a solution if they have the same problem, the following methods worked for us:

  1. For our application server, we simply are using the HTTP send message endpoint, with some retry strategies tuned for network failures and response timeouts.
  2. For our marketing app which only accepts SMTP server, we created a postfix relay pointing to the postal SMTP. postfix has some nice requeueing configs which are really useful.

@reshadman We'll take a look at your solution. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yeah-nothing picture yeah-nothing  路  6Comments

harshweo picture harshweo  路  6Comments

elfeffe picture elfeffe  路  3Comments

moskoweb picture moskoweb  路  6Comments

fschndr picture fschndr  路  6Comments