Hi James!
> RedHat and Debian systems). What I've noticed with sendmail is that he
> can specify in /etc/mail/virtusertable something like:
> someone@??? bob
> person@??? jim
> anotherperson@??? jim
> some@??? some@???
Does bob get redirected to bob@??? or bob@????
> Is there any way to do similar in exim? /etc/aliases just seems to
> specify "user" (as in user@domain) to go to "local-part" - doesn't help
> with multiple domains!
That's right. You need a special router to do redirecting on fully
qualified addresses.
> I tried (in /etc/aliases):
> *: james
> (after modifying /etc/exim/exim.conf so that search_type is lsearch*
> instead of lsearch)
> But then bob@??? would get delivered to james instead of
> local-user bob, which isn't what I want at all!
It's maybe not what you want, but Exim does exactly what it's been
told in this case. The system_aliases router comes before the
localuser router in the default configuration. In that case bob will
get redirected by the "*" entry in the aliases file before the
localuser has had a chance to set up delivery to the local user.
Either set them up the other way round or include an entry for bob in
the aliases file: "bob: bob". And remember to use "exim -bt" to test
addresses when you change something in the configuration.
> Is there any way of doing this (easily) in exim at all? I'm currently
> contemplating moving to sendmail because I just can't see how to do it!
Debian has probably Exim 3, and I can speak only for Exim 4. Doing
the following in Exim 3 might prove difficult, because in that version
there is a certain separation between local and remote domains. My
system_aliases router has
data = ${lookup{$local_part}lsearch{/etc/aliases}}
If you make a copy of this router, put it before(!) system_aliases,
and replace the line above with
data = ${lookup{$local_part@$domain}lsearch{/etc/virtusertable}}
this should get you started. If you have Exim 4, you also need to
accept mail to the entries in virtusertable by adding this line to
your RCPT ACL:
accept recipients = lsearch;/etc/virtusertable
Andy
--
Andreas J. Mueller email: <andy@???>