|
Prev: problems with bounce_template_file
Next: SASL
From: mailmesuf on 23 Oct 2006 10:52 Hi, I currently have a setup with Exim where i have two extra folders, incoming and outgoing, in every virtual-user's Maildir for archiving purposes. So If Joe was to send a message to Jill, the message by default will be delivered to: /var/mail/vhost/example.org/Jill/new/ and two copies delivered to: /var/mail/vhost/example.org/Jill/incoming/ /var/mail/vhost/example.com/Joe/outgoing/ Can this be done in Postfix? Here are the Exim setup details of the outgoing and incoming delivery: http://www.devco.net/archives/2006/03/24/saving_copies_of_all_email_using_exim.php My Postfix configuration is similair to the one described on the Postfix website: http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox On a side note, Postfix will be enabled with secure athentication and email will be retrieved by secure pop3. Grtz.
From: Greg Hackney on 23 Oct 2006 19:49 mailmesuf(a)gmail.com wrote: > Hi, > > I currently have a setup with Exim where i have two extra folders, > incoming and outgoing, in every virtual-user's Maildir for archiving > purposes. > > So If Joe was to send a message to Jill, the message by default will be > delivered to: > > /var/mail/vhost/example.org/Jill/new/ > > and two copies delivered to: > > /var/mail/vhost/example.org/Jill/incoming/ > /var/mail/vhost/example.com/Joe/outgoing/ > > Can this be done in Postfix? > > Here are the Exim setup details of the outgoing and incoming delivery: > http://www.devco.net/archives/2006/03/24/saving_copies_of_all_email_using_exim.php > > My Postfix configuration is similair to the one described on the > Postfix website: > http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox > > On a side note, Postfix will be enabled with secure athentication and > email will be retrieved by secure pop3. > > Grtz. > I think it would be fairly easy to to if UNIX style mailboxes were used; but the Maildir format style mailboxes make it more problematic. One solution might be to use a global procmailrc file, something like this: ================================================== :0 c * $^To:.*${LOGNAME}@example.org /var/mail/vhost/example.org/${LOGNAME}/incoming/ :0 A /var/mail/vhost/example.org/${LOGNAME}/new/ :0 c * $^From:.*${LOGNAME}@example.org /var/mail/vhost/example.org/${LOGNAME}/outgoing/ :0 A /var/mail/vhost/example.org/${LOGNAME}/new/ :0 E /var/mail/vhost/example.org/${LOGNAME}/new/ =================================================== The problem is that procmail tries to build a sub-tree under the incoming/outgoing directories, for new, cur, tmp, etc. But if you named those directories something else, and then make a link to outgoing and incoming, that might work. For example, use this as the real directory: /var/mail/vhost/example.org/${LOGNAME}/.inc/ and ln -s /var/mail/vhost/example.org/${LOGNAME}/.inc/new \ /var/mail/vhost/example.org/${LOGNAME}/incoming Postfix also has the sender_bcc_maps and recipient_bcc_maps feature, but again you end up with the Maildir issue, and a whole lot of complicated configurations. Or perhaps there's a stand-alone program out there somewhere that writes Maildir style folders, which could be invoked by the procmailrc script. In summary: Postfix can deliver in the Maildir format, and create the new, tmp. and cur directories. But AFAIK it has no notion of an "incoming" or "outgoing" directory, or ability to directly configure that. -- Greg
From: mailmesuf on 24 Oct 2006 03:07 Greg Hackney wrote: > mailmesuf(a)gmail.com wrote: > > Hi, > > > > I currently have a setup with Exim where i have two extra folders, > > incoming and outgoing, in every virtual-user's Maildir for archiving > > purposes. > > > > So If Joe was to send a message to Jill, the message by default will be > > delivered to: > > > > /var/mail/vhost/example.org/Jill/new/ > > > > and two copies delivered to: > > > > /var/mail/vhost/example.org/Jill/incoming/ > > /var/mail/vhost/example.com/Joe/outgoing/ > > > > Can this be done in Postfix? > > > > Here are the Exim setup details of the outgoing and incoming delivery: > > http://www.devco.net/archives/2006/03/24/saving_copies_of_all_email_using_exim.php > > > > My Postfix configuration is similair to the one described on the > > Postfix website: > > http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox > > > > On a side note, Postfix will be enabled with secure athentication and > > email will be retrieved by secure pop3. > > > > Grtz. > > > > > I think it would be fairly easy to to if UNIX style mailboxes were used; > but the Maildir format style mailboxes make it more problematic. > > One solution might be to use a global procmailrc file, something like this: > > ================================================== > :0 c > * $^To:.*${LOGNAME}@example.org > /var/mail/vhost/example.org/${LOGNAME}/incoming/ > > :0 A > /var/mail/vhost/example.org/${LOGNAME}/new/ > > :0 c > * $^From:.*${LOGNAME}@example.org > /var/mail/vhost/example.org/${LOGNAME}/outgoing/ > > :0 A > /var/mail/vhost/example.org/${LOGNAME}/new/ > > :0 E > /var/mail/vhost/example.org/${LOGNAME}/new/ > > =================================================== > > > The problem is that procmail tries to build a sub-tree > under the incoming/outgoing directories, for new, cur, > tmp, etc. But if you named those directories something else, > and then make a link to outgoing and incoming, that might work. > > For example, use this as the real directory: > /var/mail/vhost/example.org/${LOGNAME}/.inc/ > > and > > ln -s /var/mail/vhost/example.org/${LOGNAME}/.inc/new \ > /var/mail/vhost/example.org/${LOGNAME}/incoming > > > Postfix also has the sender_bcc_maps and recipient_bcc_maps > feature, but again you end up with the Maildir issue, and > a whole lot of complicated configurations. > > Or perhaps there's a stand-alone program out there somewhere > that writes Maildir style folders, which could be invoked by > the procmailrc script. > > In summary: > Postfix can deliver in the Maildir format, and create the > new, tmp. and cur directories. But AFAIK it has no notion > of an "incoming" or "outgoing" directory, or ability to > directly configure that. > -- > Greg Thanks Greg, i was afraid Postfix was lacking this feature because i couldn't find anything on this subject except for the sender_bcc_maps, recipient_bcc_maps and always_bcc options which are often mentioned for archiving mail but are more of a catch-all solution. And the unix style mailboxes aren't really an option, these tend to get pretty big in a short time when used for archiving. I was leaning towards Postfix for the simplicity of the configuration but your Procmail hack would make the configuration too hacky when using many domains. Grtz.
From: Greg Hackney on 24 Oct 2006 10:29 mailmesuf(a)gmail.com wrote: > I was leaning towards Postfix for the simplicity of the configuration > but your Procmail hack would make the configuration too hacky when > using many domains. I'm not familiar with Exim. Does it have the capability to just perform the mailbox delivery, whereby Postfix could be the primary MTA, and Exim is listed as the Postfix mailbox delivery transport ? -- Greg
From: mailmesuf on 24 Oct 2006 14:57
Greg Hackney wrote: > mailmesuf(a)gmail.com wrote: > > > I was leaning towards Postfix for the simplicity of the configuration > > but your Procmail hack would make the configuration too hacky when > > using many domains. > > I'm not familiar with Exim. Does it have the capability to just > perform the mailbox delivery, whereby Postfix could be the primary > MTA, and Exim is listed as the Postfix mailbox delivery transport ? > > -- > Greg I want to get rid of Exim in the first place and running two MTAs is a bad idea, it can't even be done on my linux distro using the package manager because one uninstalls the other. I'm somewhat flabbergasted such a populair MTA doesn't have this feature. Thanks for thinking out loud Greg. Grtz. |