Re: [Mimedefang] Timeouts and message_contains_virus

2010-01-27 Thread Petra Humann
Am 26.01.2010 um 15:08 schrieb Jan-Pieter Cornet: Op 26 jan 2010, om 10:47 heeft Petra Humann het volgende geschreven: I'm using message_contains_virus_sophie for virus checking. Sometimes (rarely) the sophie daemon dies, but the socket file persists. Because of this mimedefang-filter can't

[Mimedefang] Timeouts and message_contains_virus

2010-01-26 Thread Petra Humann
Hello, I'm using message_contains_virus_sophie for virus checking. Sometimes (rarely) the sophie daemon dies, but the socket file persists. Because of this mimedefang-filter can't get results from the subroutine and the mail server is temp failing any mail. ... sm-mta[15124]: o0PFjX0p015124:

Re: [Mimedefang] Timeouts and message_contains_virus

2010-01-26 Thread David F. Skoll
Petra Humann wrote: Is it possible to set a timeout value for getting the result of virus scanning in message_contains_virus_sophie? Well, not directly, but you could do something like: eval { local $SIG{'ALRM'} = sub { die Timeout\n; }; alarm(10); # Do your virus scanning

Re: [Mimedefang] Timeouts and message_contains_virus

2010-01-26 Thread Jan-Pieter Cornet
Op 26 jan 2010, om 10:47 heeft Petra Humann het volgende geschreven: I'm using message_contains_virus_sophie for virus checking. Sometimes (rarely) the sophie daemon dies, but the socket file persists. Because of this mimedefang-filter can't get results from the subroutine and the mail