On 18 Jul 2002 10:30, Jason Haar <[EMAIL PROTECTED]> wrote.

> On Wed, Jul 17, 2002 at 05:33:09PM +0200, tonix (Antonio Nati) wrote:
> > I have two requests:
> > 
> > 1a) would it be possible to add an option like --refuse-on-virus that 
> > should cheange Q-S behaviour?
> > In case of virus, Q-S should simply delete all temporary files, emit a
> >         "553 sorry, your message contains "blabla" virus and has been 
> > rejected",
> > then exit.
> > This would stop virus directly, and avoid a lot of work.
> 
> Can't be done. The "553" part is controlled by qmail-smtpd - not
> Qmail-Scanner. Otherwise I would have done that on day one :-)

  It can be done by patching qmail.c. E.g.:

--- qmail.c.old Fri Feb  9 13:51:14 2001
+++ qmail.c     Wed Jul  4 13:52:38 2001
@@ -107,6 +107,8 @@
   switch(exitcode) {
     case 115: /* compatibility */
     case 11: return "Denvelope address too long for qq (#5.1.3)";
+    case 20: return "Dbad sender address (#5.3.0)";
+    case 21: return "Da targy (subject) mezo kitoltese kotelezo (#5.3.0)";
     case 31: return "Dmail server permanently rejected message (#5.3.0)";
     case 51: return "Zqq out of memory (#4.3.0)";
     case 52: return "Zqq timeout (#4.3.0)";


Not that it makes a lot of sense in this case. 
1. You may not save much of your bandwidth.
2. In case of a forged sender address, it'd spread the malware to that address. :(

Of course, only constant messages are so easy to add.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to