At 18:20 +0200 2-06-2006, Kai Gülzau wrote: >The patched (st) version of qmail-scanner does have an option >(--sa-reject) to reject certain mails during smtp communication. > >Are there any plans to support qmail "custom error msg" patches >like https://no-way.org/software ? > >I like the way simscan rejects messages: >"Your email was rejected because it contains the Worm.Bagle.AU virus" >"Your email is considered spam (53.5 spam-hits)" >
Hi Kai I have no plans to add this feature. I don't like it for viruses, they almost always have faked return-path and it will cause a lot of traffic for the remote server that is not guilty, for the spam is near the same but if all the servers where properly configured they won't allow spam, so the sa-reject feature will cause them some traffic so the admin may configure properly his server or not... I think it will be easy to modify the routine reject_email to pass a custom error msg, maybe the only modification is to change the reject check in the spamassassin routine, something like this: from &reject_email("We have reasons to believe this mail is SPAM",31); to &reject_email("We have reasons to believe this mail is SPAM","553 Your email is considered spam ($sa_score spam-hits)"); The first field is passed to the logs the second to qmail-smtpd, but I don't now how the custom error patch works, so you will have to understad what it is needed to pass back to qmail-smtpd For the virus you can add a call with the proper msg to the reject_email routine some lines after the line &debug("There be a virus! ($quarantine_description)"); that is present in all the AV routines. Regards ST _______________________________________________ Qmail-scanner-general mailing list Qmail-scanner-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general