Archiving to MailArchiva
Michael Mansour
micoots at yahoo.com
Wed Aug 26 10:03:49 IST 2009
Hi Eduardo,
--- On Tue, 25/8/09, Eduardo Casarero <ecasarero at gmail.com> wrote:
> From: Eduardo Casarero <ecasarero at gmail.com>
> Subject: Re: Archiving to MailArchiva
> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
> Received: Tuesday, 25 August, 2009, 10:59 PM
>
>
> 2009/8/25 Michael Mansour <micoots at yahoo.com>
>
>
> Hi Eduardo,
>
>
>
> --- On Tue, 25/8/09, Eduardo Casarero <ecasarero at gmail.com>
> wrote:
>
>
>
> > From: Eduardo Casarero <ecasarero at gmail.com>
>
> > Subject: Re: Archiving to MailArchiva
>
> > To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>
> > Received: Tuesday, 25 August, 2009, 1:13 PM
>
> >
>
> > 2009/8/24 Michael Mansour <micoots at yahoo.com>
>
> >
>
> > Hi,
>
> >
>
> > I've setup a mailarchiva server (OSE) and now want
> to
>
> > archive mail from mailscanner into that server (only
> for a
>
> > specific domain though).
>
> >
>
> > The server itself, by default, listens on these
> ports:
>
> >
>
> > 8090 - http web console port (e.g. http://localhost:8090/mailarchiva)
>
> > 8091 - smtp port
>
> > 8092 - smtp milter port
>
> > 8009 - tomcat ajp port
>
> > 8010 - tomcat shutdown port
>
> >
>
> > so it can accept smtp connections to archive the
> mail.
>
> >
>
> > It also has a tool (ex2mailarchiva) which can import
> mail
>
> > into the archive using various formats like mbox.
>
> >
>
> > I've looked at the Archive mail options in
> MailScanner
>
> > and not sure about the best way to approach this.
> I've
>
> > tested the MailScanner archive system and using dated
>
> > directories, it produces "queue" files which
> I
>
> > could use with sendmail I guess to re-send those
> emails?
>
> >
>
> > If anyone's used mailarchiva before with
> MailScanner
>
> > I'd be interested in how you finally decided to
> make it
>
> > work. Or if anyone has other suggestions please chime
> in.
>
> >
>
> >> I've a mailarchiva OSE in testing. i've
> configured
>
> >> sendmail to have mailarchiva as milter and works
> ok. its
>
> >> very simple to configure.
>
>
>
> How did you do that?
>
>
> you have to add this to your sendmail.cf
>
> O InputMailFilters= mailarchiva
> Xmailarchiva, S=inet:8092 at 192.168.123.123
> (ip and port of mailarchiva)
>
> (i dont remember the sintax to add it to sendmail.mc
> and then run m4)
Oh ok, that makes sense now but it also means I have to run their "sendmailpostfixagent.pl" script on each MX server to be able to use the INPUT_MAIL_FILTERS feature.
Note that the sendmail.mc addition is documented in their KB and in the setup guide, it's better to do it from the .mc also than from the .cf. It's just one line in the .mc
INPUT_MAIL_FILTER(`mailarchiva', `S=inet:8092 at 127.0.0.1')dnl
and then a make.
> In earlier versions on sourceforge I see they have a perl
> script:
>
> sendmailpostfixagent.pl
>
> which can be used on sendmail hosts as a milter which can
> be used to "pipe" emails from the MX servers into
> the mailarchiva server, but I'm only interested in
> archiving one hosted domain and not all of them.
>
> I'm unsure whether mailarchiva only archives messages
> from domains that it knows about from it's config, or
> just accepts everything that's sent to it to archive
> it.
>> I've just checked an only stores emails from domains
>> that it knwos about. for example all localhost emails
>> (logwatch, crontab notifications, etc) were not stored in my
>> config.
That's excellent, thank you for spending the time to check this, I may simply go this route now if I can get the perl script above working on the MX servers.
> That's why I'm taking a serious look at the
> "Archive Mail" feature of MailScanner. Since what
> I should be able to do is tell it to Archive all for a
> domain to mbox files, and then run a process of
> ex2mailarchiva to import those mbox files into the
> mailarchive server.
>
> I've also thought about getting MailScanner to
> "forward" copies of the emails to/from a domain to
> another email account and have procmail recipes to take
> action on those items, which I might be able to send to the
> mailarchiva server via smtp.
>
> I'm after something elegant though which is why I'm
> asking here. I've also asked on the mailarchiva forums
> and have yet to receive a reply.
> mmm you get a complex setup doing that, i rather preffer
> the milter solution, it just works.
>
>> Their online KB is little help here also.
Thanks again for your help.
Michael.
__________________________________________________________________________________
Find local businesses and services in your area with Yahoo!7 Local.
Get started: http://local.yahoo.com.au
More information about the MailScanner
mailing list