På 1999-Sep-21 klokka 12:51:55 -0400 skrivet Dave C.:
: > Quoting Ray Vermey (Tue, Sep 21, 1999 at 02:05:50PM +0100)
: > > Hi exim-users,
: > >
: > > i have an urgent matter on hands,
: > >
: > > i have the following question:
: > >
: > > all mail to all possible user on domain mydomain.com have to be
: > > forwarded/redirected to jdoe@??? and jdoe2@???
: >
: > Main filter file:
[...]
Filters aren't necessary for doing this; it can be done using simple
aliasing:
Somewhere in the directors section of exim.conf, add:
virtusertable_aliases:
driver = aliasfile
file = /etc/virtusertable
search_type = lsearch*@
user = nobody
group = nobody
file_transport = address_file
pipe_transport = address_pipe
Then in /etc/virtusertable:
*@mydomain.com: joe@???,joe2@???
Using a filename of `/etc/virtusertable' enables your lookup table to
be compatible with sendmail's feature of the same name. If you wish to
use a different filename (e.g., /etc/virtual-domain-aliases), feel
free.
If you have a lot of such redirections, you might consider using a
lookup type of `dbm*@' or `cdb*@' and using the appropriate tools to
build the dbm or cdb file.
: It might work better if you used $recipients instead of $header_to,
: since the To: header doesn't always contain the address that is being
: delivered (Eg,. Bcc, mailing lists, spam(ugh), .forward files, etc...)
None of the headers have to contain the address the message is being
sent to; it only has to appear in the envelope. Aliasfile directors
deal with that sort of thing implicitly, and they can take less
processing time than filters, since the aliasfile only gets processed
when the appropriate director is reached. Filters usually apply to all
messages.
--jim
%%%%%%%%%%%%%%% jim knoble %%%%%%%% jmknoble@??? %%%%%%%%%%%%%%%%%