502 bad gateway after reboot the server? any hep

I assume you did sudo nginx reload following changes?

Also, comment out the root directive.

1 Like

Whenever you have an Nginx error, a good first step is check your Nginx logs.

@Jasosn88, your site is working fine now, so what changes did you make?

https on port 443 is working but http on port 80 is still 502 and not redirecting.

@Jasosn88 Also, please paste text as quotes or code blocks instead of screenshots. It’s easier read on mobile and easier to search. Thanks!

1 Like

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.

@Jasosn88, it’s best to start a new thread for different issues as it makes it easier for other users to find solutions. Likewise, please confirm what actions resolved the original issue, so the thread may be marked as solved.

Regarding Mailgun configuration, this is what you need.

  "mail": {
    "from": "noreply@guru61.com",
    "transport": "SMTP",
    "options": {
      "host": "smtp.eu.mailgun.org",
      "port": 587,
      "service": "Mailgun",
      "secure": false,
      "requireTLS": true,
      "auth": {
        "user": "postmaster@mg.guru66.com",
        "pass": "pass-wo-rd"
      }
    }
  },

In addition, you need to setup valid DNS records.

1 Like

Not working

SMTP settings

smtp.eu.mailgun.org

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

Use full email address like

 brad@guru61.com 

as the username.

“mail”: {
“from”: “noreply@guru61.com”,
“transport”: “SMTP”,
“options”: {
“host”: “smtp.eu.mailgun.org”,
“port”: 587,
“service”: “Mailgun”,
“secure”: false,
“requireTLS”: true,
“auth”: {
“user”: “postmaster@guru66.com”,
“pass”: “b20465dda274a205ea2be3a6ec83fb75-d1a07e51-b5d918a5”
}
}
},

Don’t post your credentials on a public forum—please edit your post.

1 Like

Since you already have MX records for guru61.com, you need to setup additional MX records for Mailgun using a subdomain as described.

Please provide better feedback, i.e., what you tried, and what output you see.

1 Like

ok, I changed Password of SMTP. then add MX records


so? correct !

Not working
Any tutorial to add MX records for subdomain and MailGun

Please read what I posted carefully: the MX records are for mg.guru66.com. Follow the instructions from the Mailgun interface, and add two records (as described) with your domain registrar. Mailgun will show a tick when this is setup correctly.

2 Likes

done

Same issue! not working
“mail”: {
“from”: “noreply@guru61.com”,
“transport”: “SMTP”,
“options”: {
“host”: “smtp.eu.mailgun.org”,
“port”: 587,
“service”: “Mailgun”,
“secure”: false,
“requireTLS”: true,
“auth”: {
“user”: “postmaster@mg.guru66.com”,
“pass”: “pass”
}
}
},

Share relevant screenshots, i.e., DNS from Mailgun and Cloudflare.

2 Likes

I’m not only one who have the same issue for example
Error sending email! Error sending email: Failed to send email. Reason: Invalid login: 535 Authentication failed. Please check your email settings and resend the invitation.

any solution could you provide me with a simple solution to fix email deliverability because subscribe is very important option to attract views or email list regards

And a screenshot from your Mailgun console. Furthermore, do you have any email accounts associated with guru61.com?

Presently, your DNS is incorrect, but you are providing insufficient information to assist appropriately.

the first one for the main domain, sending newsletter posts works normal but for subdomain it’s not working and show error send majic link any suggestion! if I change the SMTP to direct. users only whom have the hotmail and yahoo can subscribe