On 4/11/07, Tony Nguyen <Truong.Q.Nguyen at sun.com> wrote: > Gerard Henry wrote: > > hello all, > > i have to migrate a mail server from v120/solaris 9 to T2000/solaris 10, > > concerning sendmail+mailscanner+clamscan > > In the first time, i have only to move old binaries on the T2000. > > So i copied /lib/svc/method/smtp-sendmail into a new location, and here are > > the modifications: > > t2000-root% diff /lib/svc/method/smtp-sendmail /opt/smtp-sendmail > > 81c81,83 > > < /usr/lib/sendmail $MODE -q$QUEUEOPTION$QUEUEINTERVAL $OPTIONS & > > --- > > > >> /usr/lib/sendmail $MODE -ODeliveryMode=queueonly > >> -OQueueDirectory=/var/spool/mqueue.in & > >> /usr/lib/sendmail -q$QUEUEOPTION$QUEUEINTERVAL $OPTIONS & > > > > but when it launch, i got errors: > > mail1 console login: Apr 5 14:33:20 mail1 sendmail[9706]: unable to write > > pid to /var/run/sendmail.pid: file in use by another process > > > > and processes are: > > smmsp 9707 9469 0 14:33:20 ? 0:00 /usr/lib/sendmail -Ac > > -q15m > > root 9706 9469 0 14:33:20 ? 0:00 /usr/lib/sendmail -q15m > > root 9705 9469 0 14:33:20 ? 0:00 /usr/lib/sendmail -bd > > -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mque > > > > In solaris 9, this problem doesn't appear because there isn't a file > > /var/run/sendmail.pid > > > > How can i correct this problem? > > > > > The .pid file is used to track the pid of the service's processes. In > this case, sendmail.pid stores sendmail server's pid. It looks like your > change will cause two server processes to get started? Is this really > what you want?
In the case of someone running mailscanner, yes - the way it works (as I recall, being a postfix+amavis+spamassisin person) is that one copy of sendmail queues up the mail in one spool area, mailscanner scans them and if they're good moves them to the main spool area for the second sendmail to pick them up. In this case, don't you just want to set the PidFile option to some other pid file on the other sendmail? -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/