[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more than one SMTP channel

In previous versions (and I'd suspect the current too), you could add some 
parallelism of the transports by:
modifying rrouter.cf routes_spec function to "channelize"  by router 
process id (and run multiple routers),
pseudo code (I've got the actual mods someplace)

routes_spec ...
     ssift $$ in
         .*[01234]  return (((smtp channel1.yourdomain.com "$address" $a A)))
         .*[56789]$  return (((smtp channel2.yourdomain.com "$address" 
$a        A)))

and then add an explicit entry in your scheduler.conf for 
smtp!channel1.yourdomain.com and smtp!channel2.yourdomain.com, and a line 
in the routes file/db for the domain.

I can dig it up if anyone is interested.  We were handling around half a 
million messages incoming to our secondary MX per day, and the 
"channellizing" increase throughput significantly.

Shawn Robinson

At 12:31 AM 2000/05/04 +0300, Matti Aarnio wrote:
>On Wed, May 03, 2000 at 10:00:37AM +0200, Robert Hanzlik wrote:
> > Hello,
> >
> > it's possible to open more than one SMTP channel at the same time to the
> > same host? I was looking to documentation, but there seems to be nothing
> > regarding this. We need it on our secondary MX, because of high traffic
> > and sendmail on the primary MX :-(
> > The host is daily exchanging more then 100000 e-mail messages and for the
> > one host, for which I need more then one SMTP channel for transfering
> > messages is it 3/4 of this number.
>         Recent CVS version contains a way to run parallel
>         transport-agent sessions, however there seem to be
>         some "submit same task more than once" problem,
>         which appears at the scheduler logfile as warnings
>         about rescanning a task file.
>         The method is to use  maxthr=N  where N > 1
>         parameter at channel/host clause parameters.
>         It is not perfect implementation, but might help you.
> > Regards
> >                           Robi
> > Robert Hanzlik              editor in chief of JUNyKS server
> > e-mail: robi@junyks.cz      http://www.junyks.cz
>/Matti Aarnio   <mea@nic.funet.fi>