Thanks Paolo,


In MailScanner I have to instances of postfix running. The first instance accepts incoming SMTP connection and deferrs all the mails. The MailScanner then picks up the Mails from deferred queue does and spam and virus check and puts it in the queue of second instance of postfix (outgoing postfix).


Now here is what i am planning to do. In the outgoing postfix I will have smtpd_recipient_restriction classes to look into a regex file. In the regex file i will check for X-Spam-Status header and if found to a spam I will put it on the hold queue.

Inthis case releasing the particular mail will be quite easier for with postfix and i will mark a always bcc for such mails on one of my email id which basically a wrapper to do ham learn.

The pain point over will be to display the mails in the queue in a web interface for different domains. Just let me know what you think on this and in the mean time i will try to work out the way you have said

Thanks and regards
Rakesh

Paolo Cravero as2594 wrote:

Rakesh wrote:

Hi,
using Postfix+SA here. Hope what follows will help you in any case.

I am using Postfix+MailScanner+SpamAssassin+SpamCopURI+Razor and having a good time catching spam. Is it possible to quaratine spam messages when detected by SpamAssassin, I understand that SpamAssassin is just a detector and tagger, the actions in this case is decided by MailScanner.


Don't know MailScanner, but as long as you have access to the filesystem where SA & Postfix store temporary messages you can grep for X-Spam-Status header and decide upon that.

over here. And if i am able to make such kind of quaratine system and suppose i need to release a particular mail detected as spam then how do i do it, simultaneously at the time of release the SpamAssassin has to be informed about the mail as a Ham.


You store quarantined messages on the filesystem using a tree like:

domain1/user1
domain1/user2
..
domainN/userM

(check filesystem permissions!)

When you need to release a message you need a script that reads the path and composes [EMAIL PROTECTED], then requeues it for delivery. If you want to tell spamassassin the .EML is ham you do a sa-learn on the file before forwarding (again check who runs the script and how this affects Bayes.db files permissions).

You might want to use a web-file-browser in order to check what is in quarantine (google for "drall", free and with customizable filters).

HTH,
Paolo



----------------------------------------------------------
Netcore seeks Explorers, Inventors, Builders and Marketers http://www.emergic.org/nc-opps.html
----------------------------------------------------------

Reply via email to