shithub: riscv

Download patch

ref: 275b5e2fb3009a9e5f98d6e624b50427f797d2b3
parent: 8cafbf318476ae13d118aa55427136f647718169
author: stanley lieber <[email protected]>
date: Fri Jan 18 16:47:49 EST 2013

rewrite.direct: rewrite aliases before delivering to local users to avoid re-sending the message

--- a/sys/lib/dist/mail/lib/rewrite.direct
+++ b/sys/lib/dist/mail/lib/rewrite.direct
@@ -12,13 +12,13 @@
 \"(.+)\"		translate	"/bin/upas/aliasmail '\1'"
 [^!@.]+			translate	"/bin/upas/aliasmail '&'"
 
-# deliver mail without a domain locally
-local!"(.+)"		>>		/mail/box/\1/mbox
-local!(.*)		>>		/mail/box/\1/mbox
-
 # your local names
 \l!(.*)					alias		\1
 \l\.YOURDOMAIN\.DOM!(.*)		alias		\1
+
+# deliver mail without a domain locally
+local!"(.+)"		>>		/mail/box/\1/mbox
+local!(.*)		>>		/mail/box/\1/mbox
 
 # convert source domain address to a chain a@b@c@d...
 @([^@!,]*):([^!@]*)@([^!]*)		alias	\2@\3@\1