502 bad gateway after reboot the server? any hep

@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

Please provide the information requested.

It’s understood that bulk mail uses the API, and transactional uses SMTP. Your issue is related to DNS; you haven’t configured things correctly, e.g., domain and subdomain point to Mailgun servers. However, it’s necessary to see what you have set up in Mailgun for transactional mail, so this may be checked with your Cloudflare entries.

If you can’t post relevant information, I am unable to assist. Similarly, if you don’t show courtesy and confirm when things do work as a result of help given–the original topic–help will be given less freely in future.

1 Like

Thanks for your feedback, I’m sorry if my replies and comments didn’t satisfy your expectations. I’m very happy with your solution but I don’t have much experience with DNS records. I am following some online instructions
check all details

  1. I created a new subdomain like the preview examples :

    as screen show two domain names with right active notification and some sends with the main domain
    CNAME THE email eu.mailgun.org !(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MC41IDU5Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzkyOTc5Yjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFzc2V0IDI8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNDksMTMuNVYxOUw1OSw5LjUsNDksMFY1LjVINDAuNzhhMTIuNDMsMTIuNDMsMCwwLDAtOS41LDQuNDJMMTcuNjUsMjcuMTZhOC44Myw4LjgzLDAsMCwxLTYuOTEsMy4zNEg1bC01LDhIMTMuMzlhMTEuMjcsMTEuMjcsMCwwLDAsOS00LjQ4TDM1LjA1LDE3LjE4YTkuODEsOS44MSwwLDAsMSw3LjY2LTMuNjhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNODAuNSwzOUExMCwxMCwwLDAsMCw3Niw0MC4wOWExOSwxOSwwLDAsMC0zNy4zLTQuNTdBOSw5LDAsMCwwLDI0LDQyLjVhOC40Nyw4LjQ3LDAsMCwwLC4wNiwxLDcuNSw3LjUsMCwwLDAsLjQ0LDE1YzQsMCw1MS44OS41LDU2LC41YTEwLDEwLDAsMCwwLDAtMjBaIi8+PC9nPjwvZz48L3N2Zz4=)

DNS only Auto EditWhen toggled open, an additional table row will be added below this row to enable editing DNS records.
MX guru61.com mxb.eu.mailgun.org

MX guru61.com mxa.eu.mailgun.org

MX mg mxa.eu.mailgun.org

MX mg.guru66.com mxa.eu.mailgun.org