# Set up mail-receiver, but now site won't send any emails?

**URL:** <https://meta.discourse.org/t/set-up-mail-receiver-but-now-site-wont-send-any-emails/283817>\
**Category:** Self-hosting\
**Tags:** email, mail-receiver\
**Created:** [September 25, 2023, 10:05am UTC](https://meta.discourse.org/t/set-up-mail-receiver-but-now-site-wont-send-any-emails/283817 "2023-09-25T10:05:52Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)\
**Post date:** [September 27, 2023, 1:00am UTC](https://meta.discourse.org/t/set-up-mail-receiver-but-now-site-wont-send-any-emails/283817/9 "2023-09-27T01:00:40Z")

</div>

@Simon_Manning @pfaffman –

**EDIT: see end of message**

Thanks for the responses! I’ve had to be away for a bit, but am digging back into this…

> [@Simon\_Manning](#):
>
> Just to confirm, it sounds like you have these (among the rest) in `app.yml`:
> 
> ```plaintext
> DISCOURSE_SMTP_USER_NAME: admin@tasat.org
> DISCOURSE_NOTIFICATION_EMAIL: admin@tasat.org
> 
> ```
> 
> And this in `reply by email address`:
> 
> ```plaintext
> replies+%{reply_key}@forum.tasat.org
> 
> ```
> 
> Is that right?

Yes, that’s what I have at the moment.

> [@Simon\_Manning](#):
>
> If so, do email notifications that don’t accept replies still work? I believe the email verification is an example of that, so you could try creating an account and see if that email is sent successfully.

When I try creating an account now, the submit button doesn’t do anything. As if it knows it won’t work. (And nothing shows up in Skipped or elsewhere.)

> [@Simon\_Manning](#):
>
> Typically Reply-To is not treated as part of the sender information, it just provides a default To address to use when people reply, but perhaps Hostinger do treat it as such. You might be able to add a sending alias for `replies@forum.tasat.org`.

Edit: I have set “[replies@tasat.org](mailto:replies@tasat.org)” as a sending alias for [admin@tasat.org](mailto:admin@tasat.org), and confirmed that it works for sending and receiving. I’ve also confirmed delivery of an email sent from an external client addressed to `replies+verp-174bc7d8411bc4ec2cfa84c55bd31425@forum.tasat.org`

In the interest of trying _something_, I changed `reply by email address`:  
from `replies+%{reply_key}@forum.tasat.org`  
to `replies+%{reply_key}@tasat.org`

But it doesn’t change the results.

> [@](#):
>
> What happens if you try sending a test email to an address you get from [https://www.mail-tester.com/](https://www.mail-tester.com/)?

It doesn’t arrive at mail-tester. All outgoing attempts end up under “skipped” with a variety of this message:

```plaintext
553 5.7.1 <replies+verp-8c79cd4e83023bda6df0624c2cacd36e@tasat.org>: 
Sender address rejected: not owned by user admin@tasat.org 

```

Maybe this is interesting..? When I run discourse-doctor, outbound email fails as follows:

```plaintext
==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Sending mail to REDACTED . . 
Testing sending to admin@tasat.org using smtp.titan.email:587, 
username:admin@tasat.org with plain auth.
SMTP server connection successful.
Sending to admin@tasat.org. . . 
Mail was not sent.

Reason: 553 5.7.1 <replies+verp-3cc19f7b135e6f56219e030999db9e29@tasat.org>: 
Sender address rejected: not owned by user admin@tasat.org

```

Sending directly to the replies+ address (or a [forum.tasat.org](http://forum.tasat.org) address) from an email client works – it follows the “replies” alias and ends up in the admin inbox. Where is the rejection coming from?

I had a look at the article section “Prevent outgoing host email from interfering.” I have no path /etc/postfix – but here’s my netstat output:

```plaintext
root@forum:/var/discourse# netstat -tulpn | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1487576/docker-prox
tcp6 0 0 :::25 :::* LISTEN 1487581/docker-prox

```

**MAJOR EDIT –** I heard back from Titan support tonight: _“The reply-to address and from address should be the same or else the email won’t go through.”_ So I guess all the troubleshooting is out the window and I have to look for a new email host that doesn’t impose that requirement.

---

_[View the full topic](https://meta.discourse.org/t/set-up-mail-receiver-but-now-site-wont-send-any-emails/283817)._
