I am investigating Exim as a replacement for PP. If PP is asked to
rewrite headers for the users on a particular host then it has to be
"told" about all the users on that host. If mail is received from a user
which it does not know about then the mail is rejected. (That's how I
have it set up anyway.) I am trying to recreate the same behaviour with
Exim. I have done this by use of the following rules:
*@*.shef.ac.uk ${lookup{$2}dbm{/usr/exim/tables/rewrite_hosts}\
{$1@$2.rewrite}fail} bcfrF
*@*.rewrite ${lookup{$1@$2}dbm{/usr/exim/tables/invaliases}\
{$value}{unknown@???}} bcfrF
The first rule maps user@??? to user@??? only if host
is in the rewrite_hosts database. The second rule then does the rewriting
based on a complete list of user@host entries. If the lookup fails then
the address is rewritten as unknown@??? which is then rejected
because I am using sender verification.
As a newcomer to Exim I was wondering whether other people are already
doing the same thing and have other/better solutions (or whether people
think that the above is bad idea).
Richard
--
Richard Gilbert
Corporate Information and Computing Services
University of Sheffield, Sheffield, S10 2TN, UK
Phone: +44 114 222 3028 Fax: +44 114 222 3040