| Dieser Inhalt in deutsch |

Debian Lenny - Amavis - send email from quarantine

Situation

An email is classified as spam an stored in quarantine.
Assume the email ist stored in /var/lib/amavis/virusmails/0 and its name is spam-0zUi3BKrmZeo.gz

This email has to be released from quarantine and send to a specific mail address.

Go to the directory /var/lib/amavis/virusmails.

amavis - check configuration

/etc/amavis/conf.d/25-amavis_helpers

Abstract start

$unix_socketname = "/var/lib/amavis/amavisd.sock";

$interface_policy{'SOCK'} = 'AM.PDP-SOCK';
$policy_bank{'AM.PDP-SOCK'} = {
protocol => 'AM.PDP',
auth_required_release => 0, # don't require secret-id for release
};

1; # ensure a defined return

Abstract end

Release E-Mail

Email ist stored in: /var/lib/amavis/virusmails/0

Name of the email: spam-0zUi3BKrmZeo.gz

Enter as root (the email will be send to the given mail address):

mailserver:/# cd /var/lib/amavais/virusmails
mailserver:/# amavisd-release 0/spam-0zUi3BKrmZeo.gz email-at-domain.com

Message

250 2.0.0 Ok, id=rel-0zUi3BKrmZeo, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9228D294001