Re: [Exim] Weird (stupid?) rewrite question

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Peter Radcliffe
Data:  
Para: exim-users
Asunto: Re: [Exim] Weird (stupid?) rewrite question
Corin Hartland-Swann <cdhs@???> probably said:
> What you probably need is to specify each sub-domain on a seperate line:


Er, yuck.

> or similar. This is probably the best way to do this, and it pretty easy
> to do with a OneLinePerlScript (TM), ie:
>
> perl -e 'foreach (1..254) { print "*\@mg$_.my.domain\t\tbob\@mg.domain\n" }'


Yuck more.

Rewrite matching can be done by regexp.

^(?i)[^@]+@mg[^.]+.my.domain bob@???
^(?i)[^@]+@bp[^.]+.my.domain bob@???

I rarely recommend using rewrites to push mail elsewhere, though,
unless you _really_ need all of it rewritten. This isn't sendmail,
there are better ways to do it (smartuser directors, normally).

P.

-- 
pir                  pir@???                    pir@???