[Dovecot] Keep a copy of email.
Can dovecot-lda, keep a copy of any email that it receives in a diferente folder ?
Like if user@domain.com get an email. It goes to user@domain.com inbox and goes to other folder..diferente that his mailboxes ?
I want this with all users. Can it be done ?
If not, does any one have any ideia how could it be done ?
We are having serius problems with backups, with this we gona be able to at least save one or two days of each emails, than rotate them again.
I though about using postfix always_bcc, but would be everyones emails only in one account. Though in migh use sieve for filter this acount and separete it for each folder.. but i don't guess sieve could get a parameter from the email to make a filter.. or can it ?
like, if email from user2@domain.com it goes to user2 folder, but this user2 would be variable, otherwise i have to create a sieve too bigm and would work i guess.
Well, i am open to ideas.
Thanks!
[]'sf.rique
On 11/5/2010 11:02 AM, Henrique Fernandes wrote:
- not sure what this accomplishes for you).
If not, does any one have any ideia how could it be done ?
We are having serius problems with backups, with this we gona be able to at least save one or two days of each emails, than rotate them again. Sounds like you're trying to fix the wrong problem - what's the issue with your backups? I've got an simple script using rsync that copies our mail spool nightly - I've got a daily backup for a year's worth.
Can dovecot-lda, keep a copy of any email that it receives in a diferente folder ?
Like if user@domain.com get an email. It goes to user@domain.com inbox and goes to other folder..diferente that his mailboxes ?
I want this with all users. Can it be done ? I would think you could do this via sieve. Under 2.0, you can define a system-wide sieve script that could implement this. So you'd tell it to copy the mail to folder (which would still be within the user's mailbox
-- Daniel
Le 05/11/2010 19:02, Henrique Fernandes a écrit :
Can dovecot-lda, keep a copy of any email that it receives in a diferente folder ?
Like if user@domain.com get an email. It goes to user@domain.com inbox and goes to other folder..diferente that his mailboxes ?
I want this with all users. Can it be done ?
If not, does any one have any ideia how could it be done ?
We are having serius problems with backups, with this we gona be able to at least save one or two days of each emails, than rotate them again.
I though about using postfix always_bcc, but would be everyones emails only in one account.
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc.pcre
== recipient_bcc.pcre /^(.*)@(example\.com)/ $1=$2@bcc.example.org
Though in migh use sieve for filter this acount and separete it for each folder.. but i don't guess sieve could get a parameter from the email to make a filter.. or can it ?
like, if email from user2@domain.com it goes to user2 folder, but this user2 would be variable, otherwise i have to create a sieve too bigm and would work i guess.
Well, i am open to ideas.
Thanks!
[]'sf.rique
participants (3)
-
Daniel L. Miller
-
Henrique Fernandes
-
mouss