Email account disable incoming

Hi
I have hestiacp managing email for a few domains.
Is it possible to temporarily disable receipt of emails for a particular account on some domain?

For example, I want emails received for [email protected] to not be accepted and bounced to the sender with the standard “No such account” message.

Many thanks,
K

Hi @kpop1,

No, Hestia doesn’t support that feature. You can suspend the mail account so that account won’t be able to logon but mails for that account will be accepted.

Thanks for your reply.
So is it not possible to configure exim4 to bounce a particular recipient address?

So the only option is to delete the account completely?

Yes, it is possible but not using Hestia Control Panel, you must modify exim4 conf and add the accounts manually to a file.

You can create a file like /etc/exim4/reject_rcpts and include there the mail address you want to reject, like [email protected] (one email address per line).

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

Note: you can change the message but Unrouteable address is the text that Exim shows when the recipient address is not available.

  deny    message       = Unrouteable address
          recipients    = /etc/exim4/reject_rcpts

It should look like this:

acl_check_rcpt:
  accept  hosts         = :

  deny    message       = Unrouteable address
          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.

systemctl restart exim4
1 Like

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