Re: Rewriting problem

Top Page
Delete this message
Reply to this message
Author: Richard Gilbert
Date:  
To: exim-users
Subject: Re: Rewriting problem
> One of our users has just reported that his e-mail address is no longer
> being rewritten as it was when I was running PP. It reaches me unmodified
> as:
>
> From: njp@??? (Neil Powell)
>
> I can test this with exim -brw:
>
> pp2% exim -brw 'njp@??? (Neil Powell)'
>   sender: njp@??? (Neil Powell)
>     from: N.Powell@??? (Neil Powell)
>       to: njp@??? (Neil Powell)
>       cc: N.Powell@??? (Neil Powell)
>      bcc: N.Powell@??? (Neil Powell)
> reply-to: N.Powell@??? (Neil Powell)
> env-from: N.Powell@???
>   env-to: njp@???

>
> And the entries in the log for the message look OK:
>
> 1997-08-01 11:14:50 0wuEjS-0004be-00 <= N.Powell@???
>     H=topcat.shef.ac.uk [143.167.60.1] P=smtp S=1145
>     id=199708011014.LAA01150@???
> 1997-08-01 11:14:51 0wuEjS-0004be-00 => cs1jrg@???
>     <r.gilbert@???> R=lookuphost T=remote_smtp H=sunc.shef.ac.uk
>     [143.167.1.2]
> 1997-08-01 11:14:51 0wuEjS-0004be-00 Completed


Sorry, false alarm! The problem was caused by the message arriving with a
partially-qualified domain name, i.e njp@topcat, but that was not obvious
from the message as received by me, or from the log. I fixed it by adding
an extra rewrite rule before the others:

*@topcat    $1@???


There is probably a better way but this will have to do for now.

Richard
--
Richard Gilbert
Corporate Information and Computing Services
University of Sheffield, Sheffield, S10 2TN, UK
Phone: +44 114 222 3028 Fax: +44 114 222 3040