Re: [Exim] Proper SMTP-time rewrite syntax?

Pàgina inicial
Delete this message
Reply to this message
Autor: Odhiambo G. Washington
Data:  
A: Mike Bacher
CC: exim-users
Assumpte: Re: [Exim] Proper SMTP-time rewrite syntax?
* Mike Bacher <isp-list@???> [20040528 06:28]: wrote:
> Forgive my ignorance regarding regexps, but is this an appropriate one
> to use to change domain1.com -> domain2.com at SMTP time? I need to do
> this so the rewrite will occur before $domain is passed to one of my ACL's.
>
> ######################################################################
> #                      REWRITE CONFIGURATION                         #
> ######################################################################

>
> begin rewrite
>
> \N^<(.*)@domain1.com>$\N $1@??? SEh


Make it like

\N^(.*)@domain1\.com$         $1@???   STh


In the future, your question will be easily answered by yourself when
you test it out:

exim -brw user@???

will tell you what happens ;)



        cheers
       - wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington                     . WANANCHI ONLINE LTD (Nairobi, KE)  |
<wash at wananchi dot com>              . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223                 . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121                 . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
                         --from a /. post