ZhangHuangbin wrote:
Honestly, i don't quite understand why you do it this way.
Maybe you can use mail forwarding or something like this to achieve the same goal.
Mail forwarding won't work on this and I'm pretty certain that wildcarding all subdomains in iRedmail and catchall is the easiest way to do this.
Back to the problem,
I can't get wildcard work in Mysql and I also tried following:
Modified /etc/postfix/main.cf:
virtual_alias_domains = regexp:/etc/postfix/virtual_alias.regexp
Added /etc/postfix/virtual_alias.regexp:
/@.*\.domain\.com$/ targetuser@domain.com
With the regexp I get following error:
NOQUEUE: reject: RCPT FROM [censored]: 554 5.7.1 <censored>: Relay access denied; from...