# Notification email cannot be the same as reply by email

**URL:** https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840
**Category:** Feature
**Tags:** email
**Created:** [2015年五月15日 03:34 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840 "2015-05-15T03:34:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![stroupaloop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stroupaloop/32/43099_2.png) [@stroupaloop](https://meta.discourse.org/u/stroupaloop)
#### Post date: [2015年五月15日 03:34 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/1 "2015-05-15T03:34:14Z")

</div>

I’ve setup the reply by email address settings as listed in the thread below, EXCEPT I’m unable to change the reply by email address

**NOTE:** I’ve setup everything else according to the post, to include the correct polling port (995), polling host ([pop.gmail.com](http://pop.gmail.com)) and the accurate username/password combo (plus SSL enabled).

The field contains the following

replies+%{reply\_key}@example.com

When I try to change it to

team+%{reply\_key}@custom.com

I receive the following error

![](https://global.discourse-cdn.com/meta/original/3X/8/4/843c676e6ff380400f190019c020422b72e86daf.png)

I’m currently receiving a polling error via AWS SES (our transactional email service) every 5m (POP3 polling frequency) and I’m guessing it’s because the reply by email address is incorrect, BUT I can’t change it. Help?

> [@Set up reply by email with POP3 polling](https://meta.discourse.org/t/set-up-reply-via-email-support/14003/):
>
> So you’d like to set up reply via email support for your Discourse forum. mega Reply via email is pre-configured and enabled by default on all [discourse.org](http://discourse.org) hosted sites. The guide below only applies to those self-hosting. Good news! Unlike outgoing email, which is completely unsuitable for typical consumer mail services like GMail, Outlook, Yahoo Mail, etc, incoming reply via-email tends to be extremely low volume. Unless you have a truly massive forum with a zillion people replying to no…

---

<div class="post-metadata">

### Author: ![stroupaloop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stroupaloop/32/43099_2.png) [@stroupaloop](https://meta.discourse.org/u/stroupaloop)
#### Post date: [2015年五月15日 16:24 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/2 "2015-05-15T16:24:03Z")

</div>

Verified bug …

I can add @gmail.com BUT not a @custom.gov

Any idea on the time horizon to fix? Thanks!

---

<div class="post-metadata">

### Author: ![jaming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaming/32/41227_2.png) [@jaming](https://meta.discourse.org/u/jaming)
#### Post date: [2015年五月15日 16:53 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/3 "2015-05-15T16:53:42Z")

</div>

Is the email you are trying to change it to the same as the SiteSetting.notification\_email?

For example:  
SiteSetting.notification\_email = [foo@bar.com](mailto:foo@bar.com) and you are trying to set it to “foo+%{reply\_key}@bar.com”

---

<div class="post-metadata">

### Author: ![stroupaloop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stroupaloop/32/43099_2.png) [@stroupaloop](https://meta.discourse.org/u/stroupaloop)
#### Post date: [2015年五月15日 17:41 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/4 "2015-05-15T17:41:42Z")

</div>

Hey @jaming that isn’t the issue. The issue is that the ranges of accepted domains in that field box doesn’t include .gov ☹

However, I assume, as long as the transactional email service (e.g. SES, Mandrill) can accept incoming email, it doesn’t matter if the notification\_email email is the same as the reply by email address or not

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年五月16日 01:12 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/5 "2015-05-16T01:12:29Z")

</div>

Weird can you reproduce this @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2015年五月16日 06:41 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/6 "2015-05-16T06:41:23Z")

</div>

Okay, I can repro this case, and it’s not specific to `.gov` domain.

@jaming is correct, this is because `notification email` setting is same as `reply by email address`.

Let’s say I set `notification email` to “[team@discourse.org](mailto:team@discourse.org)”, now I can’t set `reply by email address` to “team+%{reply\_key}@discourse.org”, it will generate error as per this code:

> <https://github.com/discourse/discourse/blob/17d07a8b9a3db9d963f9d7d5bd73504984ef3188/lib/validators/reply_by_email_address_validator.rb#L11>

So, if the `notification email` is set to “[team@custom.gov](mailto:team@custom.gov)”, then it’s not possible to set “team+%{reply\_key}@custom.gov” as `reply by email address`.

Techincally it’s not a bug, it’s a feature which @zogstrip added via:

[https://github.com/discourse/discourse/commit/f7d2fc05244d20c05e8c747c1e6ea66331d60d05](https://github.com/discourse/discourse/commit/f7d2fc05244d20c05e8c747c1e6ea66331d60d05)

So I would recommend adding another email (perhaps `reply+%{reply_key}@custom.gov`) for `reply by email address` setting.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年五月16日 21:13 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/7 "2015-05-16T21:13:12Z")

</div>

Can we improve the error message in this case? I agree this is an important safety feature otherwise @stroupaloop would have set up a cascading reply disaster, a sort of … loop 😉

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年五月17日 04:26 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/8 "2015-05-17T04:26:58Z")

</div>

Uh, I’m pretty sure there used to be a useful error message there. I think that’s a regression.

edit: yes, definitely a regression

> <https://github.com/discourse/discourse/blob/f7d2fc05244d20c05e8c747c1e6ea66331d60d05/config/locales/server.en.yml#L1099-L1099>

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2015年五月17日 08:49 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/9 "2015-05-17T08:49:08Z")

</div>

Yes, there was a regression due to [this commit](https://github.com/techAPJ/discourse/commit/84b84a9d7ca52373756fadd45a27cb12082b8ccb). Fixed via:

[https://github.com/discourse/discourse/pull/3483](https://github.com/discourse/discourse/pull/3483)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年五月17日 20:30 UTC](https://meta.discourse.org/t/notification-email-cannot-be-the-same-as-reply-by-email/28840/10 "2015-05-17T20:30:51Z")

</div>


