Dallas L. Engelken wrote:

>> 
>> So why don't we change qmail-scanner to return
>> a 5xx SMTP error code and a short message when a
>> virus email is quarantined?
>> 
>> That way, a legitimate sender will instantly
>> know that there is a problem with his email,
>> instead of believing that the email was delivered
>> successfully. If the email does not really
>> contain a virus (i.e. false positive) then he
>> can contact the mail server's administrator
>> and have the problem fixed.
>> 
> 
> I have already done this on my servers.   I'll try and put together a
> small patch here soon for it.  I'm getting ready to send a different
> patch to the list here in a few minutes..
> 
> I still like having notifications, so I actually do generate
> notifications for admin, but after notifications are sent, I
> error_condition() with a code of 33.  For spam, I reject with a code of
> 32
> 
>      if ($REJECT_VIRUS && $quarantine_event && $destring =~ m/^virus/) {
>        &error_condition("Virus detected, send SMTP error code...",33);
>      }
> 
>      if ($REJECT_SPAM && $spam_event) {
>        &error_condition("Spam detected, send SMTP error code...",32);
>      }


I'm eager to hear what Jason Haar has to say about this. I don't know
how error codes are generated in q-s so I can't really comment on the
usability of the above code, but in concept it looks like what I'm
suggesting.


> In order to get error codes that mean something, instead of '451 qq temp
> fail', you'll need to recompile qmail/netqmail.

Yeah, what a shame. I think it would be a good idea to include your
qmail.c patch in contrib.


-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to