iredmail-doc/howto/sql.create.domain.catchall.account.md
Zhang Huangbin b339072a41 Add more comments in howto/ldap.add.mail.list.md, howto/sql.create.mail.alias.md. And link to each other as reference.
Mention 'SSHA512' is recommended password hash for SQL backends in html/reset.user.password.html.
2015-02-01 19:22:03 +08:00

853 B

SQL: Add domain catch-all account

With default setting, iRedMail will reject emails sent to non-existing mail accounts under hosted mail domains. If you want to accept these emails, you need a domain catch-all account.

With MySQL/MariaDB or PostgreSQL backend, you can add catch-all account for existing domain domain.com in SQL table vmail.alias like below:

sql> USE vmail;
sql> INSERT INTO alias (address, goto, domain)
                 VALUES ('domain.com', 'dest@example.com', 'domain.com');

This sql command creates catch-all address for domain domain.com, all mails sent to non-existing accounts under domain.com will be delivered to dest@example.com.

NOTE: With iRedAdmin-Pro, you can manage catch-all account in domain profile directly. Screenshot attached.