# Not Able To Send Mail - Access Denied

**URL:** https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380
**Category:** Self-hosting
**Created:** [April 26, 2020, 8:28pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380 "2020-04-26T20:28:01Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 26, 2020, 8:28pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/1 "2020-04-26T20:28:01Z")

</div>

Hello,

I’m trying to set up mail with MailJet. The domain name and email is approved on my MailJet dashboard, but I can’t receive mail to access my admin account. In the guide it says to check the logs at `/var/discourse/shared/standalone/log/rails/production.log`. When I insert that into the console, it says access denied. I’ve checked an the email is set up properly.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [April 27, 2020, 12:33am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/2 "2020-04-27T00:33:51Z")

</div>

> [@Infinite\_Flight\_Sims](#):
>
> In the guide it says to check the logs at `/var/discourse/shared/standalone/log/rails/production.log` . When I insert that into the console, it says access denied. I’ve checked an the email is set up properly.

`/var/discourse/shared/standalone/log/rails/production.log` is a file path, you may view it by connecting to your server over `ssh`. You may need to use `sudo` to view the file, adjust to however you are viewing it.

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 27, 2020, 1:37am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/3 "2020-04-27T01:37:52Z")

</div>

So all together, how should that look written in the console?

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [April 27, 2020, 3:23am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/4 "2020-04-27T03:23:56Z")

</div>

> [@Infinite\_Flight\_Sims](#):
>
> in the console

I’m not sure what that means, so I’m not qualified to explain. I normally `ssh` into the VPS and use something like `less` to read files.

Also, [Search results for 'production.log' - Discourse Meta](https://meta.discourse.org/search?q=production.log).

Good luck! 🙂

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 27, 2020, 6:21pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/5 "2020-04-27T18:21:23Z")

</div>

Thank You, that helped.

But I’m still not able to set up the mail to work

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [April 27, 2020, 9:08pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/6 "2020-04-27T21:08:15Z")

</div>

Typing “MailJet” in the search will give you quite a few topics regarding setting up MailJet.  
To access your admin account, use this `https://YourForumDomain/admin`  
If it prompts you to login in, just use the email address you used to set it up (and the password).

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 27, 2020, 10:05pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/7 "2020-04-27T22:05:49Z")

</div>

I get brought to a page that says it doesn’t exist. I searched the forum but I can’t find any useful info.

The main problem is that MailJet is not sending a verification email so I can log into my admin account.

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [April 28, 2020, 1:17am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/8 "2020-04-28T01:17:35Z")

</div>

Can you see your site from the Internet by type your forum’s URL in the address bar? It would help to give a little more information about your site. Where is it hosted (Digital Ocean or another cloud service, or a dedicated server?).

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 28, 2020, 1:47am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/9 "2020-04-28T01:47:00Z")

</div>

The issue is that the admin email won’t validate to get past the wizard.

The cause is _likely_ mailjet settings or something blocking comms to mailjet from the VPS.

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 28, 2020, 2:05am UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/10 "2020-04-28T02:05:08Z")

</div>

> [@JimPas](#):
>
> Can you see your site from the Internet by type your forum’s URL in the address bar?

Yes I can

> [@JimPas](#):
>
> It would help to give a little more information about your site.

Domain from NameCheap, hosted with Digital Ocean, and MailJet for mail.

> [@Stephen](#):
>
> The cause is _likely_ mailjet settings or something blocking comms to mailjet from the VPS.

Would you happen to know a fix for this?

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [April 28, 2020, 1:57pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/11 "2020-04-28T13:57:11Z")

</div>

Ok, it looks like the email problem got self solved. I got an activation like in my email, but when I click it, this comes up:

![image](https://global.discourse-cdn.com/meta/original/3X/c/7/c71dcf2ba4f1e56f5534f7c8ecf2fba1362abda3.png)

That email was sent to me while I was sleeping so by the time I clicked the link it was 10 hours old, did it expire?

---

<div class="post-metadata">

### Author: ![lankma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lankma/32/185548_2.png) [@lankma](https://meta.discourse.org/u/lankma)
#### Post date: [July 11, 2020, 3:34pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/12 "2020-07-11T15:34:25Z")

</div>

> [@Infinite\_Flight\_Sims](#):
>
> did it expire?

Yes, it expired. Were you able to get it working on your Digital Ocean server?

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [July 11, 2020, 4:08pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/13 "2020-07-11T16:08:56Z")

</div>

No, it still doesn’t work

---

<div class="post-metadata">

### Author: ![lankma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lankma/32/185548_2.png) [@lankma](https://meta.discourse.org/u/lankma)
#### Post date: [July 11, 2020, 4:14pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/14 "2020-07-11T16:14:20Z")

</div>

> [@Infinite\_Flight\_Sims](#):
>
> No

☹ I’m sorry to hear that. Are you following the steps on [Set up Discourse in the cloud in under 30 minutes](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) to install it?

---

<div class="post-metadata">

### Author: ![Infinite\_Flight\_Sims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/infinite_flight_sims/32/176828_2.png) [@Infinite\_Flight\_Sims](https://meta.discourse.org/u/Infinite_Flight_Sims)
#### Post date: [July 11, 2020, 4:15pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/15 "2020-07-11T16:15:44Z")

</div>

Sorry I thought you were talking about something else

My Discourse forum is up and running

---

<div class="post-metadata">

### Author: ![lankma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lankma/32/185548_2.png) [@lankma](https://meta.discourse.org/u/lankma)
#### Post date: [July 11, 2020, 4:16pm UTC](https://meta.discourse.org/t/not-able-to-send-mail-access-denied/149380/16 "2020-07-11T16:16:34Z")

</div>

Perfect! 😃 I’m glad you got it working! Take care!
