We have to add a wildcard entry in /etc/postfix/virtual or any virtual mapping files.For simplicity we use /etc/postfix/virtual file and append this:
@example.com admin
And we have to do this to map that:
postmap /etc/postfix/virtual
And add this line if it does’t exist in /etc/postfix/main.cf:
virtual_alias_maps = hash:/etc/postfix/virtual
Finally,
/etc/init.d/postfix restart
This way every email sent to anything@example.com will be redirected to admin@example.com
0 comments:
Post a Comment