Feature Idea: MailScanner process name
Martin Hepworth
martinh at SOLID-STATE-LOGIC.COM
Thu Dec 8 16:41:21 GMT 2005
Hi Steve
Have you tested this on non-linux systems?
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Steve Freegard
> Sent: 08 December 2005 16:37
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: [MAILSCANNER] Feature Idea: MailScanner process name
>
> 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!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
------------------------ 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