Feature Idea: MailScanner process name
Steve Freegard
smf at F2S.COM
Thu Dec 8 16:36:47 GMT 2005
Hi Julian,
I was looking at a live system recently when I came up with the idea of
changing the MailScanner process name according to what it is doing
(similar to sendmail - where you can see exactly what it is doing by
running 'ps').
For example - in the current version a 'ps -o pid,state,command -xf' on
a Linux-based MailScanner system will give you something like:
6089 S sendmail: accepting connections
6098 S sendmail: Queue runner at 00:15:00 for /var/spool/mqueue
6116 S /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc
4402 S \_ /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner
10084 S \_ /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner
14729 S \_ /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner
21996 S \_ /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner
28135 S \_ /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner
So I modified several files to set the process name according to the
action being taken - which then gives:
3353 S sendmail: accepting connections
3362 S sendmail: Queue runner at 00:15:00 for /var/spool/mqueue
3413 S MailScanner
3486 S \_ MailScanner: Waiting for messages
3497 S \_ MailScanner: Waiting for messages
3509 S \_ MailScanner: Waiting for messages
3518 S \_ MailScanner: Waiting for messages
3528 S \_ MailScanner: Waiting for messages
and when a batch is being processed:
3413 S MailScanner
3486 S \_ MailScanner: Waiting for messages
3497 S \_ MailScanner: Waiting for messages
3509 S \_ MailScanner: Waiting for messages
3518 S \_ MailScanner: Virus Scanning
3547 Ss | \_ /bin/sh /usr/lib/MailScanner/clamav-wrapper /
3552 R | \_ /usr/bin/clamscan --unzip --jar --tar --t
3528 S \_ MailScanner: Waiting for messages
I'm not sure how portable this is across systems or if anyone other than
me might find this useful (plus a lot of testing would be needed as
check_MailScanner needed modification), but I've attached the diffs each
of the modified files again the current stable release.
What do you think??
Cheers,
Steve.
------------------------ 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!
[ Part 2, Application/X-COMPRESSED-TAR 3.6KB. ]
[ Unable to print this part. ]
More information about the MailScanner
mailing list