--
Hi folks. I've got a site using sendmail, and I'm trying to duplicate
some weird rewriting and redirecting that it does in Exim 4.20.
Basically, the mail server in question is nothing but a relay. There
are no local mailboxes. Mail addressed too user@domain is redirected
based on a 1-to-1 mapping in a dbm file, basically just like
/etc/mail/aliases, with one exception: We pass the sendmail "+ hack"
through to the recipient of the redirected message.
So, assume the aliases file contains
foo: foo@???
mail to foo@domain will be redirected to foo@???, including
envelope recipient rewriting. The hard part is that foo+bar@domain will
be redirected to foo+bar@???, and the envelope recipient will
be rewritten to foo+bar@???. That's for any value of bar; we
don't know it in advance.
The sendmail.cf to make this work is evil, but it does work. I think
Exim can accomplish what I need, and probably be less evil that
sendmail, but I'm fairly inexperienced with Exim's rewriting
capabilities.
The example
*@hitch.fict.example ${lookup{$1}dbm{/etc/realnames}\
{$value}fail}@??? bctfrF
From the section 30.9 in the Exim spec is a good start. If the local
part matched *\+*, then we can look up $1 in a dbm file. The only hard
part then is appending +$2 to the local part in the dbm value.
Any help would be greatly appreciated! Thanks!
noah
--
[ Content of type application/pgp-signature deleted ]
--