posts:postfix: make generic regexp rules more specific.
authorW. Trevor King <wking@tremily.us>
Fri, 14 Sep 2012 12:09:55 +0000 (08:09 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 14 Sep 2012 12:09:55 +0000 (08:09 -0400)
The earlier rule remapped *everything* (including the "To" addresses),
which made it hard to send email to anyone but myself ;).

posts/Postfix.mdwn

index cc41e7dd15e812e5b97804bfe947e240fad4ca22..9d25d828eef9fd98d25803f8d0d73bfd523913db 100644 (file)
@@ -23,7 +23,8 @@ free local port.
     smtp_sasl_password_maps = hash:/etc/postfix/saslpass
     …
     # cat /etc/postfix/generic
-    /^(.*)@(.*)$/ jdoe@example.com
+    /^jdoe@(.*)$/ jdoe@example.com
+    /^root@(.*)$/ jdoe@example.com
     # postmap /etc/postfix/generic
     # cat /etc/postfix/saslpass
     [127.0.0.1]:12345 jdoe@verizon.net:YOURPASS