
How to fix "504 Gateway Timeout" errors when sending email
MIDAS can be configured to send email from a choice of different methods;- On systems where "Sendmail" is available, this option allows sending of email directly from the server where your MIDAS system resides.
- Cloud-hosted have access to a "Cloud" email delivery option.
- A further option available to all is "SMTP", whereby email is sent via your organization's own SMTP server/relay.
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:
- Your SMTP server settings are incorrect.
- The connection to your SMTP "timed out".
- The connection was actively refused by your SMTP server.
To resolve:
- Check your SMTP settings in MIDAS via MIDAS Admin Options → Email.
- 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.
← Return to the Knowledge Base