MIDAS Knowledge Base MIDAS Knowledge Base

How to fix "504 Gateway Timeout" errors when sending email

MIDAS can be configured to send email from a choice of different methods;

For more information, please see the "Manage Email Settings" documentation.

If your MIDAS is configured to send email via the SMTP method, and your users experience "504 Gateway Timeout" errors when using MIDAS, perhaps with the messaage "The gateway did not receive a timely response from the upstream server or application", this indicates that either:

  1. Your SMTP server settings are incorrect.
  2. The connection to your SMTP "timed out".
  3. The connection was actively refused by your SMTP server.

To resolve:

  1. Check your SMTP settings in MIDAS via MIDAS Admin Options → Email.
  2. Check your SMTP's servers own logs, as these should indicate failed connection attempts and the reason they failed.

In most cases, the cause is that the SMTP server's security or firewall has been configured to reject/block external connections. Therefore, adjusting your SMTP server's security or firewall settings and adding the IP address of the server where your MIDAS scheduling system resides to an "allowed list" (white list) of senders will resolve the issue.

If you're a "cloud-hosted" customer and are unsure of the IP address of the server where your hosted MIDAS system currently resides, simply go to Statistics → MIDAS where you'll find the necessary information.

For our "cloud-hosted" customers, the IP address of the server where your hosted MIDAS resides may occasionally change, however we'll always endeavor to notify affected customers in advance where practically possible.


Further Reading


← Return to the Knowledge Base