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

Top Page
Delete this message
Reply to this message
Author: Mike Bacher
Date:  
To: Odhiambo G. Washington
CC: exim-users
Subject: Re: [Exim] Proper SMTP-time rewrite syntax?

Odhiambo G. Washington wrote:

> * 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 ;)


Hi,

I tried what you recommend above, but for some reason it doesn't appear
to show any rejected rcpt's for "domain1.com" or "domaain2.com" in the
mainlog log file afterwards (which is what I expect to happen if
everything is working properly). If I use my original syntax, it seems
to be working fine. I think it has something to do with the < > since
the "S" SMTP rewrite special flag is getting the data before anything
else gets ahold of it.

--

-----------------------------------------
Mike Bacher / isp-list@???
TCIS - TulsaConnect Internet Services
Phone: 918-584-1100x110 Fax: 918-582-5776
-----------------------------------------