# Private sub-category email-in Discourse::InvalidAccess

**URL:** https://meta.discourse.org/t/private-sub-category-email-in-discourse-invalidaccess/291216
**Category:** Support
**Tags:** email
**Created:** [January 10, 2024, 7:11pm UTC](https://meta.discourse.org/t/private-sub-category-email-in-discourse-invalidaccess/291216 "2024-01-10T19:11:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [January 14, 2024, 5:20pm UTC](https://meta.discourse.org/t/private-sub-category-email-in-discourse-invalidaccess/291216/2 "2024-01-14T17:20:49Z")

</div>

I rebuilt _after a (noop) `git pull`_, and now it seems to be working with the second domain added to Postfix’s `relay_domains`. Before these series of tests, and with the change, I had no more error, but emails did not appear at all, neither in the category nor in the error logs.

In `containers/mail-receiver.yml` we’ve got:

```plaintext
POSTCONF_relay_domains: forum.example.net, example.net

```

(Of course, `example.net` is not what’s actually in the configuration file. What’s in there is the hostname for the forum and the parent domain name, both of which are configured in the DNS)

I noticed that @mpalmer mentioned years ago that adding a second domain could be done but

> [@Can Mail Receiver be configured for 2 distinct mail domain?](https://meta.discourse.org/t/can-mail-receiver-be-configured-for-2-distinct-mail-domain/127837/4):
>
> Not trivially, although of course since you have full access to the Postfix configuration, you can make it do whatever you like if you fiddle enough. My recommendation is to have the `domain2` e-mails handled by a general-purpose MTA that forwards the e-mails to `domain1`.

So I expected the little `relay_domains` configuration to not be enough, but it seems to work, given that you `git pull` before rebuilding. There must be _some quirk_ in the way `mail-receiver` container is built that fails to update pups…

---

_[View the full topic](https://meta.discourse.org/t/private-sub-category-email-in-discourse-invalidaccess/291216)._
