From iRedMail
Revision as of 19:02, 30 December 2013 by ZhangHuangbin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: This feature was added in iRedMail-0.6.1.

iRedMail-0.6.0 and eariler versions with MySQL backend doesn't support catch-all account by default, which stored in MySQL. but you can implement it with below steps:

  • Edit /etc/postfix/
File: /etc/postfix/
# ---- OLD SETTING ----
query       = SELECT goto FROM alias WHERE address='%s' AND active='1'

# ---- NEW SETTING ----
query       = SELECT goto FROM alias WHERE (address='%s' OR address='@%d') AND active='1'
  • Restart postfix.
  • Now you can add catch-all account for existing domain '' in vmail.alias table, like this:
$ mysql -uroot -p
mysql> USE vmail;
mysql> INSERT INTO alias (address, goto, domain) VALUES ('', '', '');

This mysql command creates catch-all address for domain, all mails sent to non-exist accounts will be delivered to

Personal tools