Re: [EXIM] save /dev/null

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Ratkai Peter
CC: exim-users
Sujet: Re: [EXIM] save /dev/null
On Mon, 1 Mar 1999, Ratkai Peter wrote:

> I've been notified, that some folks sends viruses in email, so I started
> to make a real simple filter, that will send the message to /dev/null. But
> does not work, maybe there's another solution, or what am I doing wrong?
>
> # exim filter
> if $h_subject contains "PENPALS"
> then save /dev/null
> endif
>
> the appropriate log file entry:
>
> original recipients ignored (message_filter)
> 1999-03-01 11:08:00 10HPMT-0000kk-00 => /dev/null@??? <message
> filter> T=**bypassed**
> 1999-03-01 11:08:00 10HPMT-0000kk-00 Completed



But it does work! Delivery was bypassed because Exim recognizes
/dev/null specially and doesn't bother to actually write the message to
it. This saves you having to define a user to run the delivery under.

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



--
*** Exim information can be found at http://www.exim.org/ ***