Permanently reject unknown recipients
authorAlex Dehnert <alex@dehnerts.com>
Mon, 22 Aug 2022 21:35:51 +0000 (17:35 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Mon, 22 Aug 2022 21:35:51 +0000 (17:35 -0400)
I think the setup is stable enough that immediate bounces are useful.

main.cf

diff --git a/main.cf b/main.cf
index 52386e961b74f0ddebd38d1744fedb628b84f1e8..43b0f1e307219bb5b2d3dc315c94279e633feb97 100644 (file)
--- a/main.cf
+++ b/main.cf
@@ -212,7 +212,8 @@ local_recipient_maps = unix:passwd.byname $alias_maps
 # with 450 (try again later) until you are certain that your
 # local_recipient_maps settings are OK.
 #
-unknown_local_recipient_reject_code = 450
+#unknown_local_recipient_reject_code = 450
+unknown_local_recipient_reject_code = 550
 
 # TRUST AND RELAY CONTROL