Open berkerpeksag opened 7 years ago
It's probably better and easier to use a local postfix relay to handle sending emails and take care of retries, etc.
Would that solve timeout issues too? Right now, sending an email is a blocking task and I think users shouldn't wait for a response or get an exception from the SMTP server.
Yes. Postfix will accept the outgoing email right away and then deal with trying to send the email to the recipient (with retries over a period of a few days if needed).
I'm starting to see a few of these exceptions on Sentry lately:
I think it's time to use a more robust approach.
Also, unless I'm missing something, we also use a third-party service to send emails. If so, we should implement a retry logic for that.