| rsc | 5cdb179 | 2005-10-29 16:26:44 +0000 | [diff] [blame] | 1 | # case conversion for postmaster |
| 2 | pOsTmAsTeR alias postmaster |
| 3 | |
| 4 | # local mail |
| rsc | b5f6592 | 2006-02-11 23:38:55 +0000 | [diff] [blame] | 5 | [^!@]+ translate "upas/aliasmail '&'" |
| 6 | local!(.*) >> $PLAN9/mail/box/\1/mbox |
| rsc | 5cdb179 | 2005-10-29 16:26:44 +0000 | [diff] [blame] | 7 | \l!(.*) alias \1 |
| 8 | (helix|helix.bell-labs.com)!(.*) alias \2 |
| 9 | |
| 10 | # we can be just as complicated as BSD sendmail... |
| 11 | # convert source domain address to a chain a@b@c@d... |
| 12 | @([^@!,]*):([^!@]*)@([^!]*) alias \2@\3@\1 |
| 13 | @([^@!]*),([^!@,]*):([^!@]*)@([^!]*) alias @\1:\3@\4@\2 |
| 14 | |
| 15 | # convert a chain a@b@c@d... to ...d!c!b!a |
| 16 | ([^@]+)@([^@]+)@(.+) alias \2!\1@\3 |
| 17 | ([^@]+)@([^@]+) alias \2!\1 |
| 18 | |
| 19 | # /mail/lib/remotemail will take care of gating to systems we don't know |
| rsc | b5f6592 | 2006-02-11 23:38:55 +0000 | [diff] [blame] | 20 | ([^!]*)!(.*) | "$PLAN9/mail/lib/qmail '\s' 'net!\1'" "'\2'" |