[Dovecot] Input and suggestions: Mail mirror setup
Hello, everyone.
To make life for our operations team easier I am looking at setting up a mail mirror of any email which gets sent from certain machines. My current ideas go along the following lines:
Each machine will use the Postfix "always_bcc" option and set it to an address like mailmirror@mailmirror.openlane.com.
On mailmirror I am looking at setting up Dovecot with public folders and a number of users, which probably will authenticate via Active Directory. I intend to create a main public folder called MailMirror and then underneath sub folders based on the sender email address in a format of like "<sender>_<domain>".
Now the sub folders need to be created automatically when it doesn't exist yet.
I think the best way to tie this in between Postfix and Dovecot is to use an alias in Postfix for mailmirror@mailmirror.openlane.com which will check if a public folder exist or not. It will create the folder and then deliver the message to the folder (maybe via safecat http://www.dovecot.org/list/dovecot/2007-November/026661.html)
Anyone got input or suggestion about my plans?
Ulf Zimmermann | Senior System Architect
OPENLANE 4600 Bohannon Drive, Suite 100 Menlo Park, CA 94025
O: 650-532-6382 M: (510) 396-1764 F: (510) 580-0929
Email: ulf@openlane.com | Web: www.openlane.com
Ulf Zimmermann wrote:
Hello, everyone.
To make life for our operations team easier I am looking at setting up a mail mirror of any email which gets sent from certain machines. [snip]
If you really want a "mirror" use rsync.
What you outline is not a "mirror" at all, but a secondary mailhub, with a rather convoluted and inappropriate setup. If you wish to create distributed mailstores use postfix transports.
Read: http://www.postfix.org/transport.5.html
-- Kind Regards, :: http://www.cjbuckley.net/ Chris Buckley :: http://photos.cjbuckley.net/
-----Original Message----- From: dovecot-bounces+ulf=openlane.com@dovecot.org [mailto:dovecot- bounces+ulf=openlane.com@dovecot.org] On Behalf Of Christopher J. Buckley Sent: 08/30/2008 16:19 To: dovecot@dovecot.org Subject: Re: [Dovecot] Input and suggestions: Mail mirror setup
Ulf Zimmermann wrote:
Hello, everyone.
To make life for our operations team easier I am looking at setting up a mail mirror of any email which gets sent from certain machines. [snip]
If you really want a "mirror" use rsync.
What you outline is not a "mirror" at all, but a secondary mailhub, with a rather convoluted and inappropriate setup. If you wish to create distributed mailstores use postfix transports.
No, I am really talking about a copy of any email sent from a number of machines. Our developers use all kind of different ways to generate emails and reports and well, sometimes emails get lost (to outside customers) and we are getting asked to resend those reports. Unfortunately too often these emails or reports are not easy to reproduce and the developers didn't think of creating copies of the attached files.
So I am really looking at a copy of any email sent, to be stored at a central location, which a retention time of maybe 1 week.
Read: http://www.postfix.org/transport.5.html
-- Kind Regards, :: http://www.cjbuckley.net/ Chris Buckley :: http://photos.cjbuckley.net/
Ulf Zimmermann | Senior System Architect
OPENLANE 4600 Bohannon Drive, Suite 100 Menlo Park, CA 94025
O: 650-532-6382 M: (510) 396-1764 F: (510) 580-0929
Email: ulf@openlane.com | Web: www.openlane.com
Ulf Zimmermann wrote:
What you outline is not a "mirror" at all, but a secondary mailhub, with a rather convoluted and inappropriate setup. If you wish to create distributed mailstores use postfix transports.
No, I am really talking about a copy of any email sent from a number of machines. Our developers use all kind of different ways to generate emails and reports and well, sometimes emails get lost (to outside customers) and we are getting asked to resend those reports.
So that isn't a mirror at all, is it?
You need an archiving facility. I suggest either looking at a commercial supported option or giving MailScanner [http://mailscanner.info] a look. Read up on the 'Archive Mail' setting, and then incorporate MailScanner with MailWatch (search sourceforge). You can then easily search and retrieve messages sent from your MTA's. I am sure you can take care of the database clustering requirements for your separate locations [hint: use a Multi Master setup].
So I am really looking at a copy of any email sent, to be stored at a central location, which a retention time of maybe 1 week.
See above.
HTH
-- Kind Regards, :: http://www.cjbuckley.net/ Chris Buckley :: http://photos.cjbuckley.net/
participants (2)
-
Christopher J. Buckley
-
Ulf Zimmermann