# Mail server setup

**URL:** https://meta.discourse.org/t/mail-server-setup/227510
**Category:** Self-hosting
**Created:** [May 19, 2022, 2:52pm UTC](https://meta.discourse.org/t/mail-server-setup/227510 "2022-05-19T14:52:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 19, 2022, 2:52pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/1 "2022-05-19T14:52:01Z")

</div>

Hi,  
My discourse (new forum) can’t send email for register admin account.  
i don’t see error on mail.log  
Any help, please?  
Thanks!

---

<div class="post-metadata">

### Author: ![agungor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agungor/32/260344_2.png) [@agungor](https://meta.discourse.org/u/agungor)
#### Post date: [May 19, 2022, 3:24pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/2 "2022-05-19T15:24:54Z")

</div>

I recommend starting here:

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326):
>
> You just installed Discourse via [the install guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL.md), but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. cry Let’s troubleshootize! Try the doctor woman_health_workerIf you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first. Did you enter email settings correctly? The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…

---

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 19, 2022, 5:29pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/3 "2022-05-19T17:29:21Z")

</div>

thanks Arman.  
I run discourse-doctor en show this error:

Reason: 553 5.7.1 [noreply@xyz](mailto:noreply@xyz): Sender address rejected: not owned by user do-not-reply@zyx

any help, please?  
thanks

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 19, 2022, 5:48pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/4 "2022-05-19T17:48:59Z")

</div>

Your SMTP user does not have permission to send email as `noreply@xyz`

You might want to change the notification email address in app.yml and rebuild or check with your email provider on how to allow sending as other alias.

It seems like you’re using an email provider that doesn’t allow bulk emails so you might want to consider that as well.

---

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 19, 2022, 11:05pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/5 "2022-05-19T23:05:29Z")

</div>

Thanks Bhanu.  
I install a postfix server on the same server.  
I have this error now:

```plaintext
Sending mail to foro@example.net. . . 
Testing sending to foro@example.net using server.example:587, username:foro with plain auth.

======================================== ERROR ========================================
                                    UNEXPECTED ERROR

SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate)

====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!

```

any idea, please?  
thanks!

---

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 19, 2022, 11:10pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/6 "2022-05-19T23:10:21Z")

</div>

this is the postfix log:

```plaintext
May 19 19:48:03 server postfix/smtpd[31730]: connect from unknown[172.17.0.2]
May 19 19:48:03 server postfix/smtpd[31730]: SSL_accept error from unknown[172.17.0.2]: -1
May 19 19:48:03 server postfix/smtpd[31730]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1544:SSL alert number 48:
May 19 19:48:03 server postfix/smtpd[31730]: lost connection after STARTTLS from unknown[172.17.0.2]
May 19 19:48:03 server postfix/smtpd[31730]: disconnect from unknown[172.17.0.2] ehlo=1 starttls=0/1 commands=1/2

```

---

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 20, 2022, 3:55pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/8 "2022-05-20T15:55:17Z")

</div>

thanks!  
Now is working!

---

<div class="post-metadata">

### Author: ![mstm](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mstm](https://meta.discourse.org/u/mstm)
#### Post date: [May 20, 2022, 7:25pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/9 "2022-05-20T19:25:05Z")

</div>

What did you do?  
Thanks

---

<div class="post-metadata">

### Author: ![puloi](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@puloi](https://meta.discourse.org/u/puloi)
#### Post date: [May 20, 2022, 11:38pm UTC](https://meta.discourse.org/t/mail-server-setup/227510/10 "2022-05-20T23:38:41Z")

</div>

I made a mistake with the e-mail address.  
Now, the new forum is on-line!  
Thanks!
