• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Nginx error 504 Gateway Time-out

WhiteTiger

Basic Pleskian
I have installed OSTickets and am configuring the mail settings.
If I save them with SMTP disable, I have no errors.
If instead I save them with SMTP enabled and its settings, then I get the error "504 Gateway Time-out"
In the SMTP settings I just put the mail domain (domain.tld), port 465, username and password.
In the log I find this messages
Code:
2021-02-02 18:40:18    Access    MyIP    200    GET /support/scp/emails.php HTTP/2.0    https://mydomain.tld/support/scp/emails.php    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36    3.16 K    nginx SSL/TLS access
2021-02-02 18:40:23    Access    MyIP   200    GET /support/scp/emails.php?id=1&_pjax=%23pjax-container HTTP/2.0    https://mydomain.tld/support/scp/emails.php    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36    2.69 K    nginx SSL/TLS access
2021-02-02 18:41:43    Error    MyIP    504    POST /support/scp/emails.php?id=1 HTTP/2.0    https://mydomain.tld/support/scp/emails.php?id=1    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36    562    nginx SSL/TLS access
2021-02-02 18:41:43    Error    MyIP        38686#0: *3853 upstream timed out (110: Connection timed out) while reading response header from upstream                nginx error
38686#0: *3853 upstream timed out (110: Connection timed out) while reading response header from upstream

==== UPDATE
I replaced the SMTP settings.
Instead of using the domain SMTP on Plesk I used that of a GMail account.
The configuration did not generate the TimeOut and then the mail was delivered without problems.
So, the problem is only when I refer to the SMTP configuration of the account on Plesk
 
Last edited:
Maybe the SMTP access credentials that you have supplied are incorrect so that a script is waiting too long for a response from the SMTP server?
 
No, it is certainly not a problem of incorrect credentials because the Webmail works.
I tried to install osTicket on another server without Nginx and only Apache2, but always to read the folders managed by Plesk.
Now I no longer have the 504 error, but it still doesn't accept the credentials.
 
Last edited:
Back
Top