Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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)

  2. 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 

  3. Create /etc/postfix/virtual_alias  containing:

    Code Block
    # Reroute all email, sending it to root's local mailbox
    #/.*@.*/        mailcatchall


  4. Then make virtual_alias.db   (assuming you installed the Makefile shown earlier)

...