# سؤال بخصوص mail-receiver

**URL:** https://meta.discourse.org/t/question-about-the-mail-receiver/114732
**Category:** Support
**Created:** [11 أبريل 2019، 7:59ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732 "2019-04-11T07:59:59Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [11 أبريل 2019، 7:59ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/1 "2019-04-11T07:59:59Z")

</div>

1st:  
I don’t know if it’s working properly.  
Why can’t I click and check this email?  
Why can’t I answer this email to the sender?

 ![receivedMSG](https://global.discourse-cdn.com/meta/original/3X/7/f/7f3613b08a02ec49933e72e632ecc6ef0e7e4358.png)

2st.  
How to check the logs ?

3st.  
When I send a test email to a non-existent address ([blablabla423123123@gmail.com](mailto:blablabla423123123@gmail.com)), nothing appears in bounced tab:

 ![Screenshot%20from%202019-04-11%2009-35-39](https://global.discourse-cdn.com/meta/original/3X/8/2/82c34a87aec4856f8174e2621359ed29bec41523.png)

4st.

When I send a return email (from my gmail adress) to the [adsadsadasdsadasdasdasdasdsd@mydomain.com](mailto:adsadsadasdsadasdasdasdasdsd@mydomain.com) address it automatically receives a reply:

> We’re sorry, but your email message to [“adsadsadasdsadasdasdasdasdsd@mydomain.com ”] (titled test adsaas) didn’t work.
> 
> None of the destination email addresses are recognized, or the Message-ID header in the email has been modified. Please make sure that you are sending to the correct email address provided by staff.

Is that how it’s supposed to work? Thank you for all your helpful entries !

---

<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: [11 أبريل 2019، 10:49ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/2 "2019-04-11T10:49:24Z")

</div>

Are you using mail receiver for inbound emails? have you followed the howto properly?

> [@eextra](#):
>
> Why can’t I click and check this email?

because that email does not exist on discourse.

> [@eextra](#):
>
> Why can’t I answer this email to the sender?

Since discourse isn’t an email application, replying without an associated topic isn’t possible.

> [@eextra](#):
>
> How to check the logs ?

what logs? did you see:

> [@Where does Discourse store and show logs?](https://meta.discourse.org/t/where-are-all-the-discourse-logs/58022):
>
> When troubleshooting issues or errors with Discourse it is important you look at your logs. Here’s a listing of where they are and what’s in there. Your site domain Administration logs shown in the UI The Discourse admin panel contains several forms of logging: Emails that are sent, skipped, bounced, received and rejected are logged at https://=DOMAIN=/admin/email-logs and the neighboring tabs. Staff actions are logged at https://=DOMAIN=/admin/logs/staff\_action\_logs Email addresses an…

mail-receiver logs can be found by ssh’ing into your server and

```
cd /var/discourse
./launcher logs mail-receiver

```

> [@eextra](#):
>
> When I send a test email to a non-existent address ([blablabla423123123@gmail.com](mailto:blablabla423123123@gmail.com)), nothing appears in bounced tab:

This has nothing to do with mail-receiver, You have to configure bounce notification with your ESP and follow this guide:

> [@Configure VERP to handle bouncing e-mails](https://meta.discourse.org/t/handling-bouncing-e-mails/45343):
>
> Setting up bounces handling Discourse uses the [Variable envelope return path (VERP)](https://en.wikipedia.org/wiki/Variable_envelope_return_path) technique to handle bouncing e-mails. To enable VERP, set the “reply by email address” site setting with an email address template that uses the + sign. The default of replies+%{reply\_key}@discourse.example.com … works fine. If you are using your own or your company’s email server, then, that’s it tada Your discourse instance must be able to receive email sent to this address. This should work via POP, bu…

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [26 أبريل 2019، 9:10ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/3 "2019-04-26T09:10:15Z")

</div>

Thanks.  
I have one more question for you.  
If I set the mx records for receiving a message (rejected/bounced) to my own email (which means I won’t be able to see them in the admin panel) then will work correctly _answering by email / writing new topics by email_?

---

<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: [27 أبريل 2019، 2:46م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/4 "2019-04-27T14:46:20Z")

</div>

no it won’t. since discourse can’t see those emails.

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [29 أبريل 2019، 9:01ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/5 "2019-04-29T09:01:55Z")

</div>

> [@itsbhanusharma](#):
>
> no it won’t. since discourse can’t see those emails.

So I have to choose:  
or this useful function of answering / writing via email  
or the possibility of conveniently receiving and replying to e-mails to/from a private mailbox?

If so, it is best if from the level of discourse/mail-receiver to possibility immediately reply (such a small mail client) because we have to choose either this or that

Do I get it right?

---

<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: [29 أبريل 2019، 9:10ص UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/6 "2019-04-29T09:10:18Z")

</div>

For reply-by-email, If you’re using POP3 Polling then you can technically use the same mailbox for other purposes but it is **not recommended** on the other hand, if You’re using mail-receiver, you need the MX records to be strictly dedicated to the mail-receiver and can not use that (sub)domain for sending/receiving emails

E.g. If I have `example.com` and I use `mail@example.com` for emails, my discourse is set up on `discourse.example.com` and mail-receiver is on the same sub domain then I can not use `mail@discourse.example.com` for sending regular emails but `mail@example.com` can be pointed to another MX.

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [30 أبريل 2019، 12:00م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/7 "2019-04-30T12:00:55Z")

</div>

And is it possible to add a module to the mail receiver so that from the forum level you can reply to e-mails and write e-mails?

it would solve the problem and be the most convenient

---

<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: [30 أبريل 2019، 1:41م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/8 "2019-04-30T13:41:40Z")

</div>

Not in it’s current state, But I think it may be possible through a custom plugin.

If you absolutely need this and have a Good budget in mind then #Marketplace is a good place to post your requirements and someone may be able to make it for You.

---

<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: [30 أبريل 2019، 2:39م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/9 "2019-04-30T14:39:10Z")

</div>

This is why all of the documentation talks about a dedicated subdomain for your discourse installation.

That way you can send and receive email to mailboxes still while using an MX records against the subdomain for direct-delivery email into discourse.

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [3 مايو 2019، 12:35م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/10 "2019-05-03T12:35:54Z")

</div>

And for the main domain, just do a redirection do `domain.com` → `forum.domain.com` ?

---

<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: [26 أغسطس 2022، 7:29م UTC](https://meta.discourse.org/t/question-about-the-mail-receiver/114732/12 "2022-08-26T19:29:54Z")

</div>


