Topic: Catch all email

- iRedMail version: 0.8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6
- Related log if you're reporting an issue: None

How to catchall?
for all non-exist users mails to  be forwared to another email


one@domain.com(does not exist ) forward to myname@gmail.com
two@domain.com(does not exist ) forward to myname@gmail.com
three@domain.com(exists but forward only) forward to actual address



Re: Catch all email

Try this:

$ mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto) VALUES ('@domain.com', 'myname@gmail.com');

Emails sent to non-existing addresses will be forwarded to 'byname@gmail.com'.

If you have iRedAdmin-Pro installed, you can manage catch-all in domain profile page. Screenshot for your reference:



Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: Catch all email

thank you