Re: [Exim] Copying all inbound and outbound messages for a h…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Paul Wickham
CC: 'exim-users@exim.org'
題目: Re: [Exim] Copying all inbound and outbound messages for a host/domain using a system filter
On Mon, 29 Jan 2001, Paul Wickham wrote:

> if $h_to: contains "testhost.domain.com" or
>         $h_from: contains "testhost.domain.com"
>         then unseen deliver testhostcopy@???
>         errors_to postmaster@???
> end if

>
> When I run exim -d 10, and send an email to user@??? the
> system tests the address but decides that there is no match.


What is the output? The filter looks OK at first glance.

However, shouldn't you really be testing $recipients and $sender_address?
There's no guarantee that the From: and To: fields reflect the contents
of the envelope.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.