New functionality?

Kearney, Rob RKearney at AZERTY.COM
Tue Nov 18 20:30:05 GMT 2003


When I tested, MailScanner processes went defunct after trying to call
InitMyQueueDir,  However, the processes start working when these functions
are added.


-rob

-----Original Message-----
From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
Sent: Tuesday, November 18, 2003 3:23 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: New functionality?


At 20:16 18/11/2003, you wrote:
>Oh and on this topic..
>
>Dont forget the InitMyQueueDir() and EndMyQueueDir() functions... they can
>be empty.

If I remember correctly, it doesn't actually matter if these are missing.


>-rob
>
>-----Original Message-----
>From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
>Sent: Monday, November 17, 2003 11:58 AM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: New functionality?
>
>
>At 14:54 17/11/2003, you wrote:
> >After having some internal problems with my exchange server(cringe),
which
> >our MailScanner server, must forward all mail to afterwards, I thought of
> >some cleaver ideas, perhaps they are not original, but here is something
I
> >would like to see:
> >
> >MailScanner to have the ability to specify separate outbound directories,
> >and therefore Queue runners for the different levels of Mail:  1 for
> >Non-Spam, 1 for Spam, 1 for High-Scoring Spam.
> >
> >so.. i.e. (sendmail)
> >
> >                 /var/spool/mqueue for non-spam email
> >                 /var/spool/mqueue.spam for spam email
> >                 /var/spool/mqueue.highspam for high scoring email.
> >
> >And in addition, each queue directory would have a Queue Runner
associated
> >for it.
>
>You can do this already with a very simple Custom Function.
>Here is how you do it:
>
>In MailScanner.conf, set
>Outgoing Queue Dir = &MyQueueDir
>
>and then in CustomConfig.pm add this code.
>
>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';
>}
>
>Note: I haven't tested that at all, but it should work okay.
>
>Create the 2 new queue directories, restart MailScanner and run your new
>extra queue runners like this
>/usr/sbin/sendmail -q30m -OQueueDirectory=/var/spool/mqueue.highspam
>/usr/sbin/sendmail -q20m -OQueueDirectory=/var/spool/mqueue.spam
>
>--
>Julian Field
>www.MailScanner.info
>Professional Support Services at www.MailScanner.biz
>MailScanner thanks transtec Computers for their support
>PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654



More information about the MailScanner mailing list