Postfix collect all recieved mails in one account
I need to catch all mails sent to "@example.com" and redirect them to a single mail account.
So if a mail was开发者_如何学C sent to test@example.com or testtest@example.com, both mails should be redirected to allmails@example.com.I couldnt find a way yet to solve this problem - anyways i'm new to postfix and arent sure in which part of the documentation to look for this.
Put
@example.com catchallaccount
into /etc/postfix/virtual
and make sure there's a
virtual_alias_maps = hash:/etc/postfix/virtual
in /etc/postfix/main.cf
精彩评论