# Is the opportune to disable incoming emails?

**URL:** <https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489>\
**Category:** Mail\
**Created:** [March 19, 2024, 7:13am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489 "2024-03-19T07:13:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kko](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/k/ed8c4c/32.png) [@kko](https://forum.hestiacp.com/u/kko)\
**Post date:** [March 19, 2024, 7:13am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/1 "2024-03-19T07:13:20Z")

</div>

i have noreply@domain.tld account. This account use only for sending. How i can refuse all incoming emails?

---

<div class="post-metadata">

**Author:** ![Aartsie](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/aartsie/32/5308_2.png) [@Aartsie](https://forum.hestiacp.com/u/Aartsie)\
**Post date:** [March 19, 2024, 8:11am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/2 "2024-03-19T08:11:11Z")

</div>

Hi!,

I thinkt when you turn on “Discard all mail” on the mail address settings it will delete all incomming mail.

User → Mail → Domain → Mail address

---

<div class="post-metadata">

**Author:** ![kko](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/k/ed8c4c/32.png) [@kko](https://forum.hestiacp.com/u/kko)\
**Post date:** [March 19, 2024, 9:05am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/3 "2024-03-19T09:05:58Z")

</div>

![download](https://forum.hestiacp.com/uploads/default/original/2X/2/256799cd8abb175760c2d384d6f3b641e8a6c4d7.jpeg)  
I think the same about this. But it wont work as expected

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [March 19, 2024, 9:18am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/4 "2024-03-19T09:18:43Z")

</div>

It still accepts them but then should delete them directly…

It doesn’t reject them…

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [March 19, 2024, 10:01am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/5 "2024-03-19T10:01:57Z")

</div>

You can create a file like `/etc/exim4/reject_rcpts` and include there the mail address you want to reject, like `noreply@example.com`

Then edit exim4 conf file `/etc/exim4/exim4.conf.template` and add this to `acl_check_rcpt` section:

```auto
  deny message = Recipient not allowed
          recipients = /etc/exim4/reject_rcpts

```

It should look like this:

```auto
acl_check_rcpt:
  accept hosts = :

  deny message = Recipient not allowed
          recipients = /etc/exim4/reject_rcpts

# Limit per email account for SMTP auhenticated users
  deny message = Email account $authenticated_id is sending too many emails - rate overlimit = $sender_rate / $sender_rate_period

[...]

```

Restart exim4 and test it.

```auto
systemctl restart exim4

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [April 18, 2024, 10:01am UTC](https://forum.hestiacp.com/t/is-the-opportune-to-disable-incoming-emails/13489/6 "2024-04-18T10:01:57Z")

</div>

Closed on April 18, 2024, 10:01am UTC

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