[Maia-users] two forward host .
David Sims
dpsims at dpsims.com
Fri Apr 6 21:24:38 PDT 2007
Hi,
This isn't such a hard problem to solve... It just seems that way... Why
not run two instances of postfix.... and use the transport maps as
discussed... so mail comes in, gets scanned by maia (with some decisions
taken) and then re-injected at port 10025 to the second instance of
postfix.... This instance of postfix, having transport maps, will forward
the mail according to the domain.... It works for me.... Thanks to the
folks on the mailing list (like Ryan!)...
Dave
*********************************************************************
On Fri, 6 Apr 2007, Darrick Hartman wrote:
> Ryan Delany wrote:
> > Mail routing shouldn't be the responsibility of the virus scanning
> > component, it should be a function of your MTA. If you are using postfix,
> > this can be easily accomplished with a transport table. Go to
> > http://www.postfix.org and search for Transport.
> >
> > What you want to end up with is a transport file that looks something like
> > this:
> >
> > domain1.com smtp[x.x.x.x]:25
> > domain2.com smtp[x.x.x.x]:25
> > * smtp[y.y.y.y]:25
> >
>
> Ryan,
>
> I don't think this will satisfy Davide's needs. Currently (1.0.2) Maia
> injects mail back into Postfix on port 10025 (or whatever single entity
> you establish in the Maia configuration). What Davide is asking (and
> has been asked several times before--check the archives) is to have Maia
> do the scanning for a domain, but have the flexibility of re-injecting
> this mail different servers, depending on the domain.
>
> The simple answer is this is currently not possible in 1.0.2. I believe
> this is a feature that may be added in trunk. I would love to have this
> feature. It would simplify my life. Currently I filter mail for
> several of my clients. I then use getmail (or fetchmail) to retrieve
> the filtered messages from my server to their internal mail server. If
> a per-domain destination were possible, I could just open say port 10025
> on their local server and inject this mail directly.
>
> Darrick
> > Ryan
> >
> >
> >
> >> I would like amavisd-maia to forward the scanned mails to two different
> >> ip/port based on the following events:
> >>
> >> 1) if the domain match local domains, forward to
> >> $forward_host1:$forwarrd_port1
> >> 2) if the domain aren't local ( match @ account) foward to
> >> $foward_host2:foward_port2
> >>
> >> I know it's required to modify amavisd code, but is it easy to do ?
> >>
> >> Thx in adavance,
> >>
> >> Have fun,
> >> Davide .
> >>
> >>
> >> _______________________________________________
> >> Maia-users mailing list
> >> Maia-users at renaissoft.com
> >> http://www.renaissoft.com/mailman/listinfo/maia-users
> >>
> >>
> >
> >
> > _______________________________________________
> > Maia-users mailing list
> > Maia-users at renaissoft.com
> > http://www.renaissoft.com/mailman/listinfo/maia-users
> >
>
>
> --
> Darrick Hartman
> DJH Solutions, LLC
> http://www.djhsolutions.com
>
> _______________________________________________
> Maia-users mailing list
> Maia-users at renaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users
>
More information about the Maia-users
mailing list