unable to write pid to sendmail.pid

Kevin Miller Kevin_Miller at CI.JUNEAU.AK.US
Fri Oct 28 18:17:01 IST 2005


Julian Field wrote:

> I'll have time this weekend to give it a quick look, I would like to
> see what has been changed in SuSE 10 anyway, so I'll do a quick
> install in VMWare.
> Exactly what command did you type and exactly what output did you get?
> I don't like anything always producing an error, something must be
> wrong so I want to fix it. It shouldn't ever do that, it causes
> problems for novice users.

Running on a SuSE 9.3 box.  Command was "rcMailScanner restart" (stock
script from the install - not modified).  See the 12th line down for the
error.  I interjected ERROR ---> in case line wrap screws up the line count.
.
It looks like sendmail-out apparently starts, but there is no
sendmail-out.pid created.  It seems that startproc isn't honoring the -p
flag being passed in the script.  

Oct 28 08:31:08 mxl MailScanner[12290]: MailScanner child caught a SIGHUP
Oct 28 08:31:08 mxl MailScanner[13413]: MailScanner child caught a SIGHUP
Oct 28 08:31:08 mxl MailScanner[13407]: MailScanner child caught a SIGHUP
Oct 28 08:31:08 mxl MailScanner[12290]: Config: calling custom end function
MailWatchLogging
Oct 28 08:31:08 mxl MailScanner[11828]: MailScanner child caught a SIGHUP
Oct 28 08:31:08 mxl MailScanner[13413]: Config: calling custom end function
MailWatchLogging
Oct 28 08:31:08 mxl MailScanner[13407]: Config: calling custom end function
MailWatchLogging
Oct 28 08:31:08 mxl MailScanner[11828]: Config: calling custom end function
MailWatchLogging
Oct 28 08:31:22 mxl sendmail-in[13730]: starting daemon (8.13.3): SMTP
Oct 28 08:31:22 mxl sendmail-client[13731]: starting daemon (8.13.3):
persistent-queueing at 00:01:00
Oct 28 08:31:22 mxl sendmail-out[13735]: starting daemon (8.13.3):
queueing at 00:30:00
ERROR ---> Oct 28 08:31:22 mxl sendmail-out[13735]: unable to write pid to
/var/run/sendmail.pid: file in use by another process
Oct 28 08:31:25 mxl MailScanner[13755]: MailScanner E-Mail Virus Scanner
version 4.43.8 starting...
Oct 28 08:31:25 mxl MailScanner[13755]: Read 129 hostnames from the phishing
whitelist
Oct 28 08:31:25 mxl MailScanner[13755]: Config: calling custom init function
MailWatchLogging
Oct 28 08:31:26 mxl MailScanner[13755]: Started SQL Logging child
Oct 28 08:31:36 mxl MailScanner[13762]: MailScanner E-Mail Virus Scanner
version 4.43.8 starting...
Oct 28 08:31:36 mxl MailScanner[13762]: Read 129 hostnames from the phishing
whitelist
Oct 28 08:31:36 mxl MailScanner[13762]: Config: calling custom init function
MailWatchLogging
Oct 28 08:31:36 mxl MailScanner[13762]: Started SQL Logging child
Oct 28 08:31:37 mxl MailScanner[13755]: ClamAV scanner using unrar command
/usr/bin/unrar
Oct 28 08:31:37 mxl MailScanner[13755]: Using locktype = posix
Oct 28 08:31:37 mxl MailScanner[13755]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Oct 28 08:31:40 mxl MailScanner[13762]: ClamAV scanner using unrar command
/usr/bin/unrar
Oct 28 08:31:40 mxl MailScanner[13762]: Using locktype = posix
Oct 28 08:31:40 mxl MailScanner[13762]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Oct 28 08:31:47 mxl MailScanner[13767]: MailScanner E-Mail Virus Scanner
version 4.43.8 starting...
Oct 28 08:31:47 mxl MailScanner[13767]: Read 129 hostnames from the phishing
whitelist
Oct 28 08:31:47 mxl MailScanner[13767]: Config: calling custom init function
MailWatchLogging
Oct 28 08:31:48 mxl MailScanner[13767]: Started SQL Logging child
Oct 28 08:31:51 mxl MailScanner[13767]: ClamAV scanner using unrar command
/usr/bin/unrar
Oct 28 08:31:51 mxl MailScanner[13767]: Using locktype = posix
Oct 28 08:31:51 mxl MailScanner[13767]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Oct 28 08:31:58 mxl MailScanner[13772]: MailScanner E-Mail Virus Scanner
version 4.43.8 starting...
Oct 28 08:31:58 mxl MailScanner[13772]: Read 129 hostnames from the phishing
whitelist
Oct 28 08:31:58 mxl MailScanner[13772]: Config: calling custom init function
MailWatchLogging
Oct 28 08:31:59 mxl MailScanner[13772]: Started SQL Logging child
Oct 28 08:32:02 mxl MailScanner[13772]: ClamAV scanner using unrar command
/usr/bin/unrar
Oct 28 08:32:02 mxl MailScanner[13772]: Using locktype = posix
Oct 28 08:32:02 mxl MailScanner[13772]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)



On 5/17 I posted a note with the subject "sendmail-out.pid missing".  The
next release of MailScanner had some SuSE related fixes, but apparently not
this problem.  Or at least it didn't fix it for me.  

In my logs we can see that there's three processes: sendmail, sendmail-in
and MailScanner:

Oct 25 02:59:30 mxl sendmail[30007]: j9PAx45L029958:
to=<****@ci.juneau.ak.us>, delay=00:00:12, xdelay=00:00:00, mailer=esmtp,
pri=121247, relay=[19
9.58.55.120] [199.58.55.120], dsn=2.0.0, stat=Sent (OK)
Oct 25 02:59:34 mxl MailScanner[30006]: ClamAV scanner using unrar command
/usr/bin/unrar
Oct 25 02:59:34 mxl MailScanner[30006]: Using locktype = posix
Oct 25 02:59:34 mxl MailScanner[30006]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Oct 25 03:01:51 mxl sendmail-in[30044]: j9PB1WA8030044:
from=<somespammer at napanet.net>, size=248, class=0, nrcpts=5, msgid=<h[1,
proto=SMTP, daemon=MTA,
relay=12-219-68-163.client.mchsi.com [12.219.68.163]

I'm assuming that the sendmail pid is doing the sendmail-out duty...

...Kevin
-- 
Kevin Miller                Registered Linux User No: 307357
CBJ MIS Dept.               Network Systems Admin., Mail Admin.
155 South Seward Street     ph: (907) 586-0242
Juneau, Alaska 99801        fax: (907 586-4500

------------------------ 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