Need to archive received emails

Patrick Ben Koetter p at
Tue Oct 11 16:06:35 CEST 2011

* Sharma, Ashish <ashish.sharma3 at>:
> Anyone,
> Any suggestions on the following?

Use this in amavis to send copies of all messages to another host:

$archive_quarantine_method = '';
$archive_quarantine_to = '%a';
@archive_quarantine_to_maps = (\$archive_quarantine_to);

On the remote host use Postfix and Dovecot's LDA deliver. Let deliver use
SIEVE rules to store the message at a location as you requested:


p at rick

> Thanks in advance.
> Ashish Sharma
> -----Original Message-----
> From: at [ at] On Behalf Of Sharma, Ashish
> Sent: Monday, October 10, 2011 7:20 PM
> To: amavis-users at
> Subject: Need to archive received emails
> Hi,
> I have a mail receiving setup where in Postfix (2.6.6) is the MTA and then I have amavisd-new (with spamassassin and CLamAV) as content filter.
> I have enabled spam report header in my amavisd-new conf file.
> I want to archive the files on local storage in maildir format. Is it possible via amavisd-new conf file?
> In effect I want my archives to be created in following format or similar to one for each email received:
> <BaseArchiveDirectory>/<UserEmailID>/<subjectOfEmail>.eml
> Thanks
> Ashish Sharma

All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and

saslfinger (debugging SMTP AUTH):

More information about the amavis-users mailing list