Last change
on this file since 1900 was
1452,
checked in by mitchb, 15 years ago
|
Speed up postfix acceptance of mail to foo@scripts.mit.edu
Postfix does virtual alias expansion on *all* addresses, both
virtual/remote and local, which means that even mail to a
normal scripts user will be looked up in not only the regular
aliases file, but the virtual maps we set up. If we don't
match those addresses in either the hashed virtual file or
the regexp virtual file, then an LDAP query will occur instead
of quickly accepting the RCPT address. Short-circuit that
by matching *@scripts.mit.edu as a regexp and mapping it with
no change. If we rewrite it as the unqualified user, then
a recursive virtual match happens (all virtual rewrites are
subject to recursive matching). Simple, eh?
|
File size:
122 bytes
|
Line | |
---|
1 | /^(.*)@scripts.mit.edu$/ $1@scripts.mit.edu |
---|
2 | /^(.*)@([^@]*)\.scripts\.mit\.edu$/ $2+$1 |
---|
3 | /^([^@]*)\.scripts\.mit\.edu$/ true |
---|
Note: See
TracBrowser
for help on using the repository browser.