I’m having trouble setting up SMTP for my custom domain on MailGun. The sandbox domain works fine, but I can’t get my own domain to function properly. Here’s what I’ve tried:
smtp://[email protected]:[email protected]:587
My DNS is verified, but when I attempt to send an email, I get this error:
Invalid login - 535 5.7.0 Mailgun is not loving your login or password
I’ve double-checked my credentials and settings, but I’m still stuck. Has anyone else faced this issue or know what I might be doing wrong? Any tips or suggestions would be greatly appreciated. I’m not sure if it’s a problem with my SMTP URL format or something else entirely.
hey mate, i had similar issues. try using ur api key instead of password in the smtp url. also check u r using the right region - eu or us. if not, maybe yur firewall is blocking smtp. good luck!
I’ve been down this road before, and it can be frustrating. One thing that helped me was double-checking the SMTP credentials in the MailGun dashboard. Sometimes, the credentials shown there are different from what you expect. Also, make sure you’re using the correct SMTP server for your domain region (US or EU).
Another issue I ran into was my hosting provider blocking outgoing SMTP connections on port 587. You might want to check with your host if that could be the case. If all else fails, try using the API instead of SMTP. It’s a bit more work to set up initially, but I found it more reliable in the long run.
Don’t forget to check your domain’s SPF and DKIM records too. Incorrect setup there can cause unexpected issues. Hang in there - once you get it working, it’s smooth sailing!
I encountered a similar issue when setting up my custom domain on MailGun. One often overlooked step is verifying your sending domain, not just ensuring your DNS records are set correctly. It’s important to verify the domain in MailGun’s dashboard to confirm that every step of the setup has been completed. Also, be sure that you’re not inadvertently using credentials from your sandbox domain. If everything is in order and you’re still facing issues, reaching out to MailGun’s support can be worthwhile as they might help pinpoint any misconfigurations.