Addition/MySQL/Catch-all

From iRedMail
Jump to: navigation, search

With MySQL or PostgreSQL backend, you can add catch-all account for existing domain 'domain.ltd' in vmail.alias table, like this:

Terminal:
$ mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto, domain) VALUES ('@domain.ltd', 'dest@example.com', 'domain.ltd');

This mysql command creates catch-all address for domain domain.ltd, all mails sent to non-exist accounts will be delivered to dest@example.com.


NOTE: If you have iRedAdmin-Pro, you can manage catch-all address in domain profile directly. Screenshot: http://www.iredmail.org/images/iredadmin/domain_profile_catchall.png

Personal tools