I am testing a new server, which has the same user and auth data as the 
production server.  I need a way to make sure that mail for my beta 
testers stays on the beta server, while everything else goes over to the 
production server.  Since I am currently the only user, this rewrite 
rule has done the trick:

[EMAIL PROTECTED] "${if !match {$1}{^soccio} [EMAIL PROTECTED]"

Where psuvax1.cse.psu.edu is the production server.  I am at the point 
where I need to start adding my beta users, so I would like this to be a 
file lookup, but I am having problems figuring out how to rewrite upon a 
failed lookup.  I'd much rather keep a small list of users that don't 
need to be rewritten, than have to keep a list of all users on the 
production server minus a handful of beta testers.  I am implementing 
plus addressing, so I need be able to match even if $1 contains "+foo".

Some things that I have tried, but do not work, assuming 
/etc/exim/betausers contains ^soccio:

[EMAIL PROTECTED] "${lookup{$1}wildlsearch{/etc/exim/betausers} {} 
[EMAIL PROTECTED]
[EMAIL PROTECTED] "${!lookup{$1}wildlsearch{/etc/exim/betausers} 
[EMAIL PROTECTED] < I've moved that "!" just about 
everywhere I can try.
[EMAIL PROTECTED] "${lookup{$1}wildlsearch{/etc/exim/betausers} 
[EMAIL PROTECTED]

Can anyone help with the syntax to fail upon an *lsearch lookup match 
for rewrites?

Thanks

Matt

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to