On 9 Jun 2004, [EMAIL PROTECTED] wrote:

> That is rewriting and for that we have virtualhosts. Probably you need to
> tune it a bit, I don't know. I never had to do that. Especially just do a
> replace with `cat me` is not very powerful. It is easy but suddenly you
> need to rewrite a new domain to something else.

I see what you mean.

> Henning told me once about a idea to do rewriting in a very powerful
> manner but he never came up with some code. Note: this is a hint for
> Henning because he should start again writing code for qmail-ldap
> :-)

Why not use /var/qmail/control/rewrite?  I already use it with
new-inject; the logic should not be too hard to implement for
rewriting envelope recipients' domains as well BEFORE they are checked
in the LDAP directory.  My "rewrite" is simple:

*.:
=:bwh.harvard.edu
?:.bwh.harvard.edu
-.bwh.harvard.edu:bwh.harvard.edu
-.spl.harvard.edu:bwh.harvard.edu

and it's already known to be correct.  The whole thing is not
applicable to the specific problem I had, only the last two lines
really, but it wouldn't hurt to have the generic rewriting available.

Ted

Reply via email to