Amavisd-new – release items from MySQL quarantine

A crude way to release e-mails from amavisd-new quarantine.
As amavisd-release works well for file based quarantines, but sometimes just a plain telnet is all You’ve got.
First find email id from logs. Something like ChRQj9iij3-V is probably ok. Then more data can be found from MySQL, where msgs is a table in standard amavisd-new MySQL schema.
select mail_id,secret_id,quar_type from msgs where mail_id="ChRQj9iij3-V";

After collectig all this information, releasing an item from quarantine is simple:
telnet localhost 9998
Connected to localhost
Escape character is '^]'.


If all goes well, e-mail is released.

Leave a comment

Your email address will not be published. Required fields are marked *