Hello everyone, i was reading the dovecot-lda documentation as i'm using LDA as a delivery agent on my current mailserver configuration. I was curious to know if there are some options for having a message to be delivered to a "twin mailbox" upon delivery. this twin mailbox would work as a backup archive for recovering emails in case the user accidentally deletes them. so if i have a user which is alice i would create a second mailbox named backup_alice or whatever respecting a predictable schema and then every mail delivered to alice would also be delivered to backup_alice. do you know if this can be done? have any example? i was also planning to use shared folders + ACLS to have backup_alice accessible as a read only mailbox directly from the alice imap account. thanks in advance Francesco
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 23 Feb 2014, Francesco wrote:> i was reading the dovecot-lda documentation as i'm using LDA as a > delivery agent on my current mailserver configuration. > > I was curious to know if there are some options for having a message to > be delivered to a "twin mailbox" upon delivery. > this twin mailbox would work as a backup archive for recovering emails > in case the user accidentally deletes them. > > so if i have a user which is alice i would create a second mailbox named > backup_alice or whatever respecting a predictable schema and then every > mail delivered to alice would also be delivered to backup_alice. > > do you know if this can be done? have any example?I would add a BCC recipient in the MTA. It's more save in such situation. See the thread about qmail and multiple recipients for one mail address.> i was also planning to use shared folders + ACLS to have backup_alice > accessible as a read only mailbox directly from the alice imap account.If posting (appending a new message) would be OK: Add a global Sieve script and let each message: fileinto :copy "backup"; Otherwise, use a shell wrapper: file stdin into temp file, call Dovecot LDA with original recipient exit with LDA's exit code on error call Dovecot LDA with backup recipient exit 0 # ignores error to prevent repetitive delivery to recipient I've posted a shell wrapper a few days ago in above mentioned thread. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwsJuHD1/YhP6VMHAQIaGwf/S0Wypw98TklEf/NjH2wxb6hKaGndKZOs GMrVyo2VZCaxphu3TpanxSYiPqm3fhi9Ruax2QDulaOkDrm9CgGQrl+Q2lJqzaJD GQhowSzHi2fXswjTES4lAoMxB1JcvS7f9tEmVS2+xcv6ptVtro4HUcMC9ho39AvS mKnyx8NP+sy8Cp5CU7gTaLGaDR5pVpGS1CHu7ijQj8P0nRceP4jHo4p2yrxUbsMs lool4VVBnWLIhbgkKwoxYUF9ydnVSLMQ3dXnTgQIjAQTsRc5FvID1kuKbN5rLZGw CaOCc+kM33bYCk2++KwlDCpeFH8pOrayQFzDKPequN8TWkUm/sidKQ==mul3 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 23 Feb 2014, Francesco wrote:> i was reading the dovecot-lda documentation as i'm using LDA as a > delivery agent on my current mailserver configuration. > > I was curious to know if there are some options for having a message to > be delivered to a "twin mailbox" upon delivery. > this twin mailbox would work as a backup archive for recovering emails > in case the user accidentally deletes them. > > so if i have a user which is alice i would create a second mailbox named > backup_alice or whatever respecting a predictable schema and then every > mail delivered to alice would also be delivered to backup_alice. > > do you know if this can be done? have any example?I would add a BCC recipient in the MTA. It's more save in such situation. See the thread about qmail and multiple recipients for one mail address.> i was also planning to use shared folders + ACLS to have backup_alice > accessible as a read only mailbox directly from the alice imap account.If posting (appending a new message) would be OK: Add a global Sieve script and let each message: fileinto :copy "backup"; Otherwise, use a shell wrapper: file stdin into temp file, call Dovecot LDA with original recipient exit with LDA's exit code on error call Dovecot LDA with backup recipient exit 0 # ignores error to prevent repetitive delivery to recipient I've posted a shell wrapper a few days ago in above mentioned thread. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwsJuHD1/YhP6VMHAQIaGwf/S0Wypw98TklEf/NjH2wxb6hKaGndKZOs GMrVyo2VZCaxphu3TpanxSYiPqm3fhi9Ruax2QDulaOkDrm9CgGQrl+Q2lJqzaJD GQhowSzHi2fXswjTES4lAoMxB1JcvS7f9tEmVS2+xcv6ptVtro4HUcMC9ho39AvS mKnyx8NP+sy8Cp5CU7gTaLGaDR5pVpGS1CHu7ijQj8P0nRceP4jHo4p2yrxUbsMs lool4VVBnWLIhbgkKwoxYUF9ydnVSLMQ3dXnTgQIjAQTsRc5FvID1kuKbN5rLZGw CaOCc+kM33bYCk2++KwlDCpeFH8pOrayQFzDKPequN8TWkUm/sidKQ==mul3 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 24 Feb 2014, Steffen Kaiser wrote:> On Sun, 23 Feb 2014, Francesco wrote: >> i was reading the dovecot-lda documentation as i'm using LDA as a >> delivery agent on my current mailserver configuration. >> >> I was curious to know if there are some options for having a message to >> be delivered to a "twin mailbox" upon delivery. >> this twin mailbox would work as a backup archive for recovering emails >> in case the user accidentally deletes them. >> >> so if i have a user which is alice i would create a second mailbox named >> backup_alice or whatever respecting a predictable schema and then every >> mail delivered to alice would also be delivered to backup_alice. >> >> do you know if this can be done? have any example? > > I would add a BCC recipient in the MTA. It's more save in such situation. > See the thread about qmail and multiple recipients for one mail address.Just to emphaze my intention: Use the MTA's ability of aliases, forwards or whatever it is called. In sendmail you could create ".forward" files for each recipient, to forward a message to the user without further forward/aliasing and to other user(s). Or one could use sendmail's alias feature to split a message.>> i was also planning to use shared folders + ACLS to have backup_alice >> accessible as a read only mailbox directly from the alice imap account. > > If posting (appending a new message) would be OK: Add a global Sieve > script and let each message: fileinto :copy "backup"; > > Otherwise, use a shell wrapper: > > file stdin into temp file, > call Dovecot LDA with original recipient > exit with LDA's exit code on error > call Dovecot LDA with backup recipient > exit 0 # ignores error to prevent repetitive delivery to recipient > > I've posted a shell wrapper a few days ago in above mentioned thread.- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwsnVHD1/YhP6VMHAQLG6QgAjymUpQdJ1jfX5hGJVfsn8EDGsDCxP+vL NgyMARd1jqh6psI7tMHl+nR8MU2X+/+Cp6QmPsg9aGld3hVaFSFTO39xtAqycwPo 3wIARrmqJ6Tk85jj/M6sxGyA200UN+qq+uQ+B2imwYuUJQsMqBrf5vfPQ3MTHVKy ZBFaMZZb6wcMwN7w45qVzR88NBlzlAfsRNgwaPM2QpBW4Zkkh/ph4mpZ50JunAN5 DZxrodVQOsp8KNdlSeI+4Zb20RUmxosg6bkqUbrwHtwiGBLIic71ohhgSBBatG5d DDLR66SAqykENFwVviXlNVJ0KLgJ2kkXvreSvPaKajf7tVUvhrO98w==EQ7V -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 24 Feb 2014, Steffen Kaiser wrote:> On Sun, 23 Feb 2014, Francesco wrote: >> i was reading the dovecot-lda documentation as i'm using LDA as a >> delivery agent on my current mailserver configuration. >> >> I was curious to know if there are some options for having a message to >> be delivered to a "twin mailbox" upon delivery. >> this twin mailbox would work as a backup archive for recovering emails >> in case the user accidentally deletes them. >> >> so if i have a user which is alice i would create a second mailbox named >> backup_alice or whatever respecting a predictable schema and then every >> mail delivered to alice would also be delivered to backup_alice. >> >> do you know if this can be done? have any example? > > I would add a BCC recipient in the MTA. It's more save in such situation. > See the thread about qmail and multiple recipients for one mail address.Just to emphaze my intention: Use the MTA's ability of aliases, forwards or whatever it is called. In sendmail you could create ".forward" files for each recipient, to forward a message to the user without further forward/aliasing and to other user(s). Or one could use sendmail's alias feature to split a message.>> i was also planning to use shared folders + ACLS to have backup_alice >> accessible as a read only mailbox directly from the alice imap account. > > If posting (appending a new message) would be OK: Add a global Sieve > script and let each message: fileinto :copy "backup"; > > Otherwise, use a shell wrapper: > > file stdin into temp file, > call Dovecot LDA with original recipient > exit with LDA's exit code on error > call Dovecot LDA with backup recipient > exit 0 # ignores error to prevent repetitive delivery to recipient > > I've posted a shell wrapper a few days ago in above mentioned thread.- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUwsnVHD1/YhP6VMHAQLG6QgAjymUpQdJ1jfX5hGJVfsn8EDGsDCxP+vL NgyMARd1jqh6psI7tMHl+nR8MU2X+/+Cp6QmPsg9aGld3hVaFSFTO39xtAqycwPo 3wIARrmqJ6Tk85jj/M6sxGyA200UN+qq+uQ+B2imwYuUJQsMqBrf5vfPQ3MTHVKy ZBFaMZZb6wcMwN7w45qVzR88NBlzlAfsRNgwaPM2QpBW4Zkkh/ph4mpZ50JunAN5 DZxrodVQOsp8KNdlSeI+4Zb20RUmxosg6bkqUbrwHtwiGBLIic71ohhgSBBatG5d DDLR66SAqykENFwVviXlNVJ0KLgJ2kkXvreSvPaKajf7tVUvhrO98w==EQ7V -----END PGP SIGNATURE-----
On 2/24/2014 3:58 AM, Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:> I would add a BCC recipient in the MTA. It's more save in such > situation. See the thread about qmail and multiple recipients for one > mail address.The only downside to this is all of the original headers are *not* preserved in the BCC copy. I too would very much like to see a way to 'split' the mail delivery transaction so that an *identical* copy of the message is delivered to two different places simultaneously. On 2/24/2014 3:58 AM, Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:> If posting (appending a new message) would be OK: Add a global Sieve > script and let each message: fileinto :copy "backup";So... it looks like this would work as I described above? An identical copy, preserving all of the original headers? Thanks! Best regards, */Charles/*
On 2/23/2014 9:07 AM, Francesco <mailinglists at easy-mail.it> wrote:> i was also planning to use shared folders + ACLS to have backup_alice > accessible as a read only mailbox directly from the alice imap account.Hi Francesco, I would be *very* interested in seeing what you come up with, as I have been wanting to do the exact same thing - but it is very important that the users have *only* read-only access to these, as you specified... Thanks, -- Best regards, */Charles/*