Forward e-mail sent to non-existent users in Postfix

Normally, Postfix will reject e-mail sent to non-existent users if a catchall isn't present for the specific domain that is receiving mail. However, you can make a super catchall to catch any and all e-mail that Postfix receives for the domains in its mydestination list:

Add the following to /etc/postfix/main.cf:
luser_relay = root
local_recipient_maps =

Then reload the Postfix configuration:
# postfix reload

For more information:
http://www.postfix.org/rewrite.html#luser_relay

Printed from: http://rackerhacker.com/2007/05/27/forward-e-mail-sent-to-non-existent-users-in-postfix/ .
© Major Hayden 2012.

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this