Outgoing Queue Dir

Chuck Foster chuck.foster at STREAMSHIELD.COM
Mon May 16 10:35:57 IST 2005


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Hi Bill,

Thanks for those messages. I would suspect at this moment that about the
only way to achieve this would be to use a custom function that worked out
which sendmail queue to put the message into at the time it's called (guess
will need some sort of hash to deal with multiple calls to the function).

Being able to specify the same queue format in the outgoing as incoming
would be rather useful ...
(grin)


Thanks for your help
Chuck


-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
Behalf Of William Burns
Sent: 13 May 2005 22:01
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Outgoing Queue Dir


Chuck Foster wrote:

>Hi,
>
>I think I need some clarification over what the "Outgoing Queue Dir"
>directive does, as the tests I've just done have confused me a bit.
>
>Is this meant to be a sendmail queue directory, or should it be something
>else? I've always assumed the former, but I might have misunderstood the
>comment in the configuration file.
>
>

Chuck:

Here's another re-posted bit...
Still looking for the perfect feature for you.

-Bill

>Hi Bill,
>
>We've done multiple outbound queues, but not inbound.
>It worked wonderfully. It gave us the ability to offset
>bottleneck loads to our M$ Exchange servers (that also run our A/V).
>We held up the mail in the spam queues and delivered the non-spam
>mail right through during difficult times.
>
>We received some help from Julian when we did this.
>Here is what we did for multiple outbound queues.
>
>In /etc/MailScanner/MailScanner.conf
>change the "Outgoing Queue Dir" setting to a custom function
>that get's placed in CustomConfig.pm.
>
>   Outgoing Queue Dir = &MyQueueDir
>
>
>Then in /usr/lib/MailScanner/MailScanner/CustomConfig.pm
>add the following functions:
>
>   sub InitMyQueueDir {
>           MailScanner::Log::InfoLog("Initialising Custom Queue
>Directories");
>   }
>
>   sub MyQueueDir {
>            my($message) = @_;
>
>            return '/var/spool/mqueue' unless $message; # catch-all if
>message is duff
>            return '/var/spool/mqueue.highspam' if $message->{ishigh};
>            return '/var/spool/mqueue.spam' if $message->{isspam};
>            return '/var/spool/mqueue';
>   }
>
>   sub EndMyQueueDir {
>            MailScanner::Log::InfoLog("Ending Custom Queue Directories");
>   }
>
>
>Now you need queue runners that get started up....
>in /etc/init.d/MailScanner inside the "StartOutSendmail()" function
>add the following lines to the "elif...MTA = sendmail" section.
>
>        $SENDMAIL -q1m -OPidFile=$OUTPID1 -L sm-spam
>-OQueueDirectory=/var/spool/mqueue.spam
>        $SENDMAIL -q5m -OPidFile=$OUTPID2 -L sm-highspam
>-OQueueDirectory=/var/spool/mqueue.highspam
>
>
>
>Set your queue times to your appropriate needs.
>
>This system worked great for us.
>I would imagine you should be able to the something similar for the inbound
>by
>modifying the "StartInSendmail" and writing a custom function.
>
>I hope this helps you out.
>Let me know how it works out for you.
>
>-k
>

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

--
This message has been scanned for viruses and potentially
harmful content by StreamShield Protector.


This message should be regarded as confidential. If you have received this
email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy
by an authorized signatory.


--
This message has been scanned for viruses and potentially
harmful content by StreamShield Protector.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list