diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2013-01-18 21:47:49 -0600 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2013-01-18 21:47:49 -0600 |
commit | 275b5e2fb3009a9e5f98d6e624b50427f797d2b3 (patch) | |
tree | ce09aa0ad0ec3243fefd0efb8d1ba7b862270034 /sys/lib | |
parent | 8cafbf318476ae13d118aa55427136f647718169 (diff) |
rewrite.direct: rewrite aliases before delivering to local users to avoid re-sending the message
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/dist/mail/lib/rewrite.direct | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/dist/mail/lib/rewrite.direct b/sys/lib/dist/mail/lib/rewrite.direct index f3ff838de..db0f366be 100644 --- a/sys/lib/dist/mail/lib/rewrite.direct +++ b/sys/lib/dist/mail/lib/rewrite.direct @@ -12,14 +12,14 @@ \"(.+)\" 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 @([^@!]*),@([^!@,]*):([^!@]*)@([^!]*) alias @\1:\3@\4@\2 |