Okay, how can I have Postfix initially accept all messages, but then bounce those that are addressed to non-existent users?
Simply disabling local_recipient_maps does the trick. The SMTP server accepts everything, and only later does the local delivery agent discover that the user doesn’t exist, so it bounces the message. You really don’t want to do this. You will receive a large amount of junk for which your server will try to send bounce notices. Innocent souls whose addresses have been faked will be inundated with bogus bounce messages from your (and probably others’) mail server.
Related Questions
- Okay, how can I have Postfix initially accept all messages, but then bounce those that are addressed to non-existent users?
- How can I setup a catchall account that will receive messages addressed to all unknown users on a domain?
- Why is Exim not rejecting incoming messages addressed to non-existent users at SMTP time?