Re: [exim] Rewrites not working

トップ ページ
このメッセージを削除
このメッセージに返信
著者: David S. Madole
日付:  
To: 'gshine@netlink.info', 'exim users'
題目: 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