Need to archive received emails

Robert Schetterer robert at schetterer.org
Tue Oct 11 16:17:28 CEST 2011


Am 11.10.2011 16:06, schrieb Patrick Ben Koetter:
> * Sharma, Ashish <ashish.sharma3 at hp.com>:
>> Anyone,
>>
>> Any suggestions on the following?
> 
> Use this in amavis to send copies of all messages to another host:
> 
> $archive_quarantine_method = 'smtp:xxx.xxx.xxx.xxx:25';
> $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:
> 
> <BaseArchiveDirectory>/<UserEmailID>/<subjectOfEmail>.eml
> 
> p at rick
> 
Hi Patrick,
what is the sieve rule to produce .eml mail files ...?
i guess such is not existing, however as far i remember
with  mail files maildir format a rename to eml may work
anyway procmail might be better in use for such stuff
> 
> 
>>
>> Thanks in advance.
>> Ashish Sharma
>>
>> -----Original Message-----
>> From: amavis-users-bounces+ashish.sharma3=hp.com at amavis.org [mailto:amavis-users-bounces+ashish.sharma3=hp.com at amavis.org] On Behalf Of Sharma, Ashish
>> Sent: Monday, October 10, 2011 7:20 PM
>> To: amavis-users at amavis.org
>> 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
> 


-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


More information about the amavis-users mailing list