...
Create a system account whose mailbox will accumulate catch-all emails:
Code Block useradd --no-create-home --comment "Postfix may re-route to this user mailbox" usercatchallmailcatchall
(or skip this step and just use
root
below)Add a virtual_alias_maps parameter to your
/etc/postfix/main.cf
:Code Block # Map *@monitoring.redradishtech.com to jeff@redradishtech.com virtual_alias_maps = regexp:/etc/postfix/virtual_alias
and
postfix reload
Create
/etc/postfix/virtual_alias
containing:Code Block # Reroute all email, sending it to root's local mailbox #/.*@.*/ mailcatchall
Then
make virtual_alias.db
(assuming you installed the Makefile shown earlier)
...