502 bad gateway after reboot the server? any hep

I updated the SMTP settings but nor is sending not working! any option
Try to subscribe(works only with hostmail and
field
smtp777
smtp.eu.mailgun.org

Our servers listen on ports 25, 587, and465(SSL/TLS)

Use full email address like

 [redacted]

as the username.