Friday, November 6, 2009

Restore spam email amavis with amavisd-release

To restore email marked as spam by amavis we going to use the command amavisd-release

Check the log file for the serial of the mail, eg:

amavis[29297]: (29297-01-6) Blocked SPAM, … <...> -> <...>,
quarantine: spam/U/UM3XM3XDbN52.gz,
^^^^^^^^^^^^^^^^^^^^^^
Message-ID:<...>, mail_id: UM3XM3XDbN52, Hits: 13.365,

and to recover that specific message run the command:

amavisd-release spam-UM3XM3XDbN52.gz mail@example.com

where mail@example.com is the recipient address that will receive the recovered email

2 comments: