This is needed, but better still would be to change the code and deliver the messages, by SMTP, directly into port 25, instead of calling "sendmail" itself.
This would be a better solution because :-
1) by calling "sendmail" directly, these "I found a virus" messages are by passing any other milters that are running on the box (e.g. we run a mail logging milter and so these messages aren't getting logged).
2) by calling "sendmail" directly, sendmail will try and deliver the message immediately, this can cause problems is the recipient's mailbox is on a different mail server and there is a problem getting through to that server - i.e. the milter will jam up - we have also seen this problem.
I have sent Nigel some suitable "smtp client" code, but I'm not sure if he intends to make this change.
> 4xx code - see change above.
Any 4xx code means "temp file, please try again later". I'm sure you don't really want this on an e-mail that you know has a virus in it ?
Although the option to change the return code would be nice. I change it (in the source) from "550" to "553", that way I can tell fetchmail (using its "antispam 553" option) to drop all messages that fail with code 553. Otherwise my POP mailboxes get filled up with e-mail that contain viruses that fetchmail can't collect because sendmail won't accept them.
James
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Clamav-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-devel
