1

Topic: "discard" transport sending e-mail to "catch all" account

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
iRedMail    1.4.2
iRedAdmin 1.5.0 (PostgreSQL)
Linux Oracle Enterprise Linux 7.9 Intel x64 UEK
Store: PostgreSQL 13.6
WebServer: Apache
====

Domains setup: domains "mydomain.com.br" with alias domain "mydomain.com"
User setup: account "xyz@mydomain.com.br"
Catch all setup: account "admin@mydomain.com.br"

I've configured "xyz@mydomain.com.br" with "discard" transport in vmail.mailbox database table, and now the catch all account is receiving all e-mails for "xyz@mydomain.com.br" (and I did expect emails to be discarded).

What is the correct procedure to really discard e-mails for "xyz@mydomain.com.br" without capture by "catch all" account (or how to forward these e-mails to /dev/null)?

Thanks in advance,

ER.

----

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

2 (edited by Cthulhu 2022-05-15 06:45:19)

Re: "discard" transport sending e-mail to "catch all" account

catch all gets a copy of the email, the normal account discards it
you can do it with a sieve filter that deletes all email where the to part is the actual discard email


https://doc.dovecot.org/configuration_m … /examples/


if address :is "to" "whatever@email" {
  discard;
  stop;
}

3

Re: "discard" transport sending e-mail to "catch all" account

A catch-all account usually is used to "catch all" emails which sent to non-existing email addresses under your domain, so that the emails will be eventually delivered to some mailbox(es).

I don't understand your use case. If you want to discard emails sent to catch-all account, why not simply disable catch-all?