# Discourse will not accept forwarded email but successfully sends and an error message to the original sender?

**URL:** https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966
**Category:** Support
**Created:** [August 22, 2024, 8:04pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966 "2024-08-22T20:04:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)
#### Post date: [August 22, 2024, 8:04pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/1 "2024-08-22T20:04:09Z")

</div>

Hello everyone,

I am using the [“Configure incoming email to create new topics”](https://meta.discourse.org/t/configuring-incoming-email-to-create-new-topics-or-group-messages/62977) feature.

The workflow is like this:

1. User sends email to “[support@mycompany.com](mailto:support@mycompany.com)”
2. Microsoft 365 forwards this email to “[mycompany-category-1@discoursemail.com](mailto:mycompany-category-1@discoursemail.com)”
3. New topic should appear.

But I am getting the error message of a **REJECTED** email in Discourse,

 ![Screenshot 2024-08-22 at 20.55.18](https://global.discourse-cdn.com/meta/original/4X/a/0/1/a01c96bb70396a426a778264033754346bb3c4e0.png)

I think Microsoft 365 is not including all the information that Discourse needs in the header.

I trialed this using my personal email (Gmail) when it forwarded to discourse it worked first time! This seems something related to Microsoft 365.

The odd thing, the original sender does get an email **from discourse** notifying them of the error! So discourse does know who the original sender is.

 ![Screenshot 2024-08-22 at 20.32.58](https://global.discourse-cdn.com/meta/original/4X/3/9/f/39f2aba06f13643d348ca320db7d7590b599dc62.png)

I really do not know how to go forward with solving this issues, can anyone help?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [August 22, 2024, 8:13pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/2 "2024-08-22T20:13:45Z")

</div>

> [@exlabs](#):
>
> - User sends email to “[support@mycompany.com](mailto:support@mycompany.com)”

Is `support@mycompany.com` configured in Discourse to accept mail, e.g. as a group inbox address or category address?

_That_ part is crucial - Discourse does not see the SMTP envelope, only the mail itself. A blind forward to `mycompany-category-1@discoursemail.com` won’t be visible to Discourse.

---

<div class="post-metadata">

### Author: ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)
#### Post date: [August 22, 2024, 8:33pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/3 "2024-08-22T20:33:21Z")

</div>

Hi Michael,

Thanks for much the knowledgeable reply, I was worried that not too many people use this feature and I might just get tumbleweed.

It is using the category address only. We have a private category called “Support” and in the category settings it is configured like this,

 ![Screenshot 2024-08-22 at 21.30.29](https://global.discourse-cdn.com/meta/original/4X/2/9/9/2993fc1dd9db43e13c5d8cc7b66ca74e6425fa8f.png)

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [August 22, 2024, 8:38pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/4 "2024-08-22T20:38:56Z")

</div>

Ok, that will only work if people are addressing (in to/cc) that address.

You need only add `support@mycompany.com` to “Custom incoming email address” and it should work.

---

<div class="post-metadata">

### Author: ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)
#### Post date: [August 22, 2024, 8:41pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/5 "2024-08-22T20:41:43Z")

</div>

The odd thing, I setup a Gmail account to forward to `company-support-12@discoursemail.com` and that worked! But changing over to our actual Microsoft 365 support email managed to break things, so I assumed the error was with Microsoft.

OK, I have added this to the box,

`mycompany+support-12@discoursemail.com|support@mycompany.com

I will active email forwarding, send a test email and see…

Will report back.

---

<div class="post-metadata">

### Author: ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)
#### Post date: [August 22, 2024, 9:01pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/6 "2024-08-22T21:01:26Z")

</div>

OK, adding our support email to the box fixed it! Thanks 👏 😄

~~However, when I reply from Discourse, is seems it never generates a reply email. I have checked in `admin/email/sent` and there is no record of Discourse doing anything. I have waited 10 minutes for it to arrive and nothing yet.~~

The reply email is sent after about 15 minutes when I reply using Discourse. Great it is working! Thanks

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [August 22, 2024, 9:12pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/7 "2024-08-22T21:12:36Z")

</div>

> [@exlabs](#):
>
> a Gmail account to forward

It was probably doing a “forward as attachment” rather than a blind forward.

> [@exlabs](#):
>
> The reply email is sent after about 15 minutes

You can adjust this to your liking by looking for the `email time window` site settings.

---

<div class="post-metadata">

### Author: ![exlabs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exlabs/32/437527_2.png) [@exlabs](https://meta.discourse.org/u/exlabs)
#### Post date: [August 22, 2024, 9:47pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/8 "2024-08-22T21:47:33Z")

</div>

> [@supermathie](#):
>
> email time window

Thanks so much for all the help! This made my day.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 21, 2024, 9:47pm UTC](https://meta.discourse.org/t/discourse-will-not-accept-forwarded-email-but-successfully-sends-and-an-error-message-to-the-original-sender/322966/9 "2024-09-21T21:47:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
