Dear Wayne Dunne,
Hi,

How do I release a spam message stored in the quarantine using postfix?
I have googled and looked on MailScanner site + Mailscanner archives and none of
the answers seem to work....

You can queue all the mails in their queue format itself, by
1)Setting "Quarantine Whole Messages As Queue Files = yes"  and "Quarantine Whole Message = yes" in /etc/MailScanner/MailScanner.conf,
2)Restart OpenProtect "openprotect restart" and you'll have quarantined mails as postfix queue files in /var/spool/MailScanner directory.

Then, if you need that mail again, you can re-inject the mail into the queue using the commands:
1)chown postfix:postfix full_path_to_queue_file
2)chmod +x full_path_to_queue_file
3)cp full_path_to_queue_file /var/spool/postfix/incoming/x/, if the queue file name starts with x. So, if the queue file name is E885B11640A, then the destination directory is "/var/spool/postfix/incoming/x/E885B11640A,".

Now, the quarantine mail will be delivered as if its not scanned by OpenProtect.

Hope that helps.

cheers,
Karthikeyan, S.
-- 
S.Karthikeyan | Ph: +91 (0) 44 52166646 Fax: +91 (0) 44 52079957
Opencomputing Technologies | http://opencompt.com 
Server Side E-Mail Protection.


Reply via email to