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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Paul Wickham
CC: 'exim-users@exim.org'
Tárgy: 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.