Thanks, just for anyone else looking to do this, the following is how to achieve it:
Create /etc/postfix/my_aliases.regexp file
Insert the following:
/^(postmaster|domains|root|abuse|webmaster|sysadmin )@/
admin@mydomain.com
(You can alter the global aliases you wish to use by adding them within the brackets above and separating them with | ).
Change
admin@mydomain.com to wherever you wish the emails to be directed to.
Save the file and exit.
Edit the following file:
/etc/postfix/main.cf
Find the section that starts virtual_alias_maps and add the following:
regexp:/etc/postfix/my_aliases.regexp
So the line should read something similar to this:
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman, regexp:/etc/postfix/my_aliases.regexp
Recent comments
1 day 13 hours ago
1 day 22 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 7 hours ago
2 days 8 hours ago
3 days 21 min ago
3 days 1 hour ago