Matus UHLAR - fantomas wrote:
> On 25.05.09 00:56, martinnitram wrote:
>>   We found that at clamav 0.95.1, the virus mail will direct drop to user
>> mailbox when milter sock dead. At previous (0.94.2 - ), milter dead will
>> cause a send mail standard error (5.x.x or something like server not
>> available to sender) and then the mail rejected.
> 
>>    At /etc/clamav-milter.conf, it had default option 'OnFail Defer'  but
>> seem no help on this case.
> 
> I'd say that's sendmail/postfix business. If milter is dead, it can't tell
> sendmail/postfix, what to do with e-mail.
> 

Excerpt from http://www.sendmail.org/doc/sendmail-current/doc/op/op.pdf 
section "5.11. X — Mail Filter (Milter) Definitions":

...
The first two describe an IPv4 or IPv6 socket listening on a certain 
port at a given host or IP
address. The final form describes a named socket on the filesystem at 
the given path.
The following flags may be set in the filter description.
R Reject connection if filter unavailable.
T Temporary fail connection if filter unavailable.
If neither F=R nor F=T is specified, the message is passed through 
sendmail in case of filter
errors as if the failing filters were not present.
...

It seems that also postfix implements some sort of milter error handling 
(excerpt from postfix README http://www.postfix.org/MILTER_README.html)

Milter error handling

The milter_default_action parameter specifies how Postfix handles Milter 
application errors. The default action is to respond with a temporary 
error status, so that the client will try again later. Specify "accept" 
if you want to receive mail as if the filter does not exist, and 
"reject" to reject mail with a permanent status. The "quarantine" action 
is like "accept" but freezes the message in the "hold" queue, and is 
available with Postfix 2.6 or later.

     /etc/postfix/main.cf:
         # What to do in case of errors? Specify accept, reject, tempfail,
         # or quarantine (Postfix 2.6 or later).
         milter_default_action = tempfail


WBR
G

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to