Re: [exim] Rewrites not working

Góra strony
Delete this message
Reply to this message
Autor: David S. Madole
Data:  
Dla: 'gshine@netlink.info', 'exim users'
Temat: Re: [exim] Rewrites not working
> From Shine, Gary on Friday, June 15, 2007 12:53 AM
>
> From David S. Madole on 15 June 2007 00:49
>
> > From Shine, Gary on Friday, June 15, 2007 12:42 AM
> >
> > > I believe you are perhaps looking for:
> > >
> > > *@domainx.co.uk     $1@???     Ffrs

> >
> > Tried that too --
> >
> > Did not work.
> >
> > Is there a way to debug the re-writes?
>
> See the "-d" (debug) option in the command-line options
> section of the documentation, specifically the rewrite
> argument to it. Exim has excellent documentation and very complete.
>
> Do you mean /usr/exim/bin/exim -bt -d gary@???


No, but here is one of several possibilities:

# exim -d-all+rewrite -f gary@??? david@???
From: <gary@???>
To: <david@???>

Which gives as debug output:

  LOG: address_rewrite MAIN
    "gary@???" from env-from rewritten as "gary@???" by rule 2
  rewritten sender = gary@???
  rewrite_one_header: type=F:
    From: <gary@???>
  LOG: address_rewrite MAIN
    "gary@???" from from: rewritten as "gary@???" by rule 2
  newlen=27 newtype=F newtext:
  From: <gary@???>
  remainder:
  rewrite_one_header: type=T:
    To: <david@???>


Did you put the line in the correct place in the file i.e. in the rewrite section? The above was produced with exactly the rewrite rule I gave you.

David