# Mailgun is not loving your login or password

**URL:** <https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340>\
**Category:** Product Support\
**Created:** [November 3, 2017, 8:18am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340 "2017-11-03T08:18:53Z")\
**Posts on this page:** 13\
**Page:** 1

## AI-generated summary

The discussion revolves around a Discourse setup issue with Mailgun, where the error message "Mailgun is not loving your login or password" appears. [kgreed](/t/-/73340/1) initially reset their SMTP password in Mailgun, re-ran the Discourse setup, but still couldn't send emails. After some investigation, [pfaffman](/t/-/73340/3) suggested that [kgreed](/t/-/73340/4) might be confusing the API key and SMTP password, which [kgreed](/t/-/73340/4) denied.

[ Pfaffman](/t/-/73340/5) then asked for clarification on the password, and [kgreed](/t/-/73340/6) confirmed they were using the default password. Further discussion ensued, with [kgreed](/t/-/73340/8) wondering if there were expectations about the password length. 

The breakthrough came when [kgreed](/t/-/73340/11) realized they were using `postmaster@discourse.mydomain.com` in the Discourse setup, whereas the Mailgun login was `postmaster@mydomain.com`. [Pfaffman](/t/-/73340/12) advised using the Mailgun-specified username, which is the default `postmaster@mydomain.com`. This issue seems to have arisen from the 30-minute setup instructions initially using `postmaster@discourse.example.com`, which somehow got changed in [kgreed](/t/-/73340/13)'s setup.

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 3, 2017, 8:18am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/1 "2017-11-03T08:18:53Z")

</div>

I had cause to reset my SMTP password in mailgun.  
I re-ran the discourse set up ( twice double checking the password)  
but I still cannot send email.  
I followed the help at [This Question](https://meta.discourse.org/t/discourse-server-failing-to-send-email-to-the-initial-registered-user/70002/16) and found the message “Mailgun is not loving your login or password”  
The login has not changed and I have double checked the new password.

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 3, 2017, 9:39am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/2 "2017-11-03T09:39:53Z")

</div>

> <https://stackoverflow.com/questions/22541314/nodemailer-and-mailgun>

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 3, 2017, 10:19am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/3 "2017-11-03T10:19:52Z")

</div>

Are you confusing the API key and the smtp password?

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 3, 2017, 9:13pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/4 "2017-11-03T21:13:03Z")

</div>

I dont think so.  
The only thing I changed was DISCOURSE\_SMTP\_PASSWORD in Discourse Setup and the password in MailGun

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 3, 2017, 9:14pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/5 "2017-11-03T21:14:58Z")

</div>

And it came from somewhere that looked like this? (Except there’s a green “verified” box instead of “unverified”.)

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/8/48b6549878a4fba3f277891111f8c6e47e7a7ac5.png)

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 3, 2017, 9:21pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/6 "2017-11-03T21:21:56Z")

</div>

Yes. Only with my domain name instead of [d.Itcmp.net](http://d.Itcmp.net) and different IP Address, API Key and password.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 3, 2017, 9:23pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/7 "2017-11-03T21:23:05Z")

</div>

You want the password, though, not the API Key.

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 3, 2017, 10:00pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/8 "2017-11-03T22:00:42Z")

</div>

Yes the default password.  
I have checked several times  
Could there be some expectation about the password? Over 26 characters for example?

I have only started look at MX records etc because I don’t know what else to check.

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 4, 2017, 2:48am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/11 "2017-11-04T02:48:20Z")

</div>

In discourse set up I was using the SMTP email address [postmaster@discourse.mydomain.com](mailto:postmaster@discourse.mydomain.com) however the mailgun login is just [postmaster@mydomain.com](mailto:postmaster@mydomain.com) Which one should I change?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 4, 2017, 2:53am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/12 "2017-11-04T02:53:44Z")

</div>

You should use the one that mailgun said to use. So take discourse out of the username.

---

<div class="post-metadata">

**Author:** ![kgreed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kgreed/32/168602_2.png) [@kgreed](https://meta.discourse.org/u/kgreed)\
**Post date:** [November 4, 2017, 3:35am UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/13 "2017-11-04T03:35:41Z")

</div>

I got confused because the 30 minute set up instructions had [postmaster@discourse.example.com]:  
and [postmaster@discourse.mydomain.com](mailto:postmaster@discourse.mydomain.com) did actually work for me at first strangely.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [December 20, 2017, 9:25pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/14 "2017-12-20T21:25:32Z")

</div>

> [@kgreed](#):
>
> [postmaster@discourse.mydomain.com](mailto:postmaster@discourse.mydomain.com) did actually work for me at first strangely.

That’s the default username for mailgun. It appears that yours somehow got changed.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/mailgun-is-not-loving-your-login-or-password/73340/15 "2024-06-08T12:43:42Z")

</div>

Closed on June 8, 2024, 12:43pm UTC

This topic was automatically closed after 2409 days. New replies are no longer allowed.
