Re: [exim] Making 'warn' errors fatal

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Brian Candler
Date:  
À: Jonathan Gonzalez
CC: exim-users
Sujet: Re: [exim] Making 'warn' errors fatal
On Mon, Jul 18, 2005 at 02:54:38PM +0200, Jonathan Gonzalez wrote:
> Maybe a defer message would be needed then as Allan pointed ;)


No, I don't understand what he's suggesting.

Perhaps I can make my requirements clearer:

1. At the DATA phase, the body is passed to the virus scanner.
2. If the virus scanner says message is clean: accept with 250
3. If the virus scanner says message is dirty: accept with 250, but add an
X-Virus-Warning: header
4. If the virus scanner is not running: reject with 4xx temporary fail

This works:

  warn
    message = X-Virus-Warning: This message contains malware ($malware_name)
    malware = *


  deny
    malware = *
    condition = 0


(note the 'condition = 0' which prevents the message being rejected; however
if the virus scanner is not running, this generates a 4xx temporary failure)

I was just wondering if there's a simpler way to get this result.

Thanks,

Brian.