1

Topic: Delete incoming mails to certain address

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: ubuntu 16 lts latest
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello!

I've got one domain with catchall *@domain.com to 1@domain.com and 3 real imap addresses 1@domain.com 2@domain.com 3@domain.com

How can I delete automatically all incoming mails to 4@domain.com at server level ? And maybe add auto reply, But that's not important.

-ted

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Delete incoming mails to certain address

Set its per-user transport to "discard" (without quotes). This is default transport offered by Postfix used to discard received emails.

FYI: https://docs.iredmail.org/per-account.transport.html

3

Re: Delete incoming mails to certain address

I have now set 'discard' in vmail.mailbox.transport for these 2 users and it worked like charm, thanks Zhang!