Double sendmail processes

Arthur Sherman arturs at netvision.net.il
Wed Oct 11 12:55:35 IST 2006


Hope so.

Thanks, Anthony!


Best,

--
Arthur Sherman

+972-52-4878851
CPTeam  

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Anthony Peacock
> Sent: Tuesday, October 10, 2006 12:51 PM
> To: MailScanner discussion
> Subject: Re: Double sendmail processes
> 
> Hi Arthur,
> 
> Yes, after I sent my message I saw your reply to Jules.
> 
> Sorry, I don't have detailed experience with your OS, so I am out of 
> ideas now.  I am sure someone else on this list will pop up sooner or 
> later...
> 
> Arthur Sherman wrote:
> > Hi Anthony,
> > 
> > It is the Mailscanner script that starts from rc.d. It has 
> been renamed to
> > 'sendmail' - several apps needed this, since it is CentOS 
> based BlueQuartz
> > appliance.
> > So it is just what you say it should be.
> > 
> > I am still wondering what would cause double sendmail processes...
> > 
> > 
> > Best,
> > 
> > --
> > Arthur Sherman
> > 
> > +972-52-4878851
> > CPTeam  
> > 
> >> -----Original Message-----
> >> From: mailscanner-bounces at lists.mailscanner.info 
> >> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> >> Of Anthony Peacock
> >> Sent: Tuesday, October 10, 2006 11:55 AM
> >> To: MailScanner discussion
> >> Subject: Re: Double sendmail processes
> >>
> >> Hi Arthur,
> >>
> >> Someone who knows your OS better than I will probably be able 
> >> to help more.
> >>
> >> The standard mailscanner install creates a startup script for 
> >> mailscanner that also starts sendmail.  In this instance you 
> >> would need 
> >> to stop sendmail starting as well.
> >>
> >> It looks like you are doing in the other way round, ie the 
> sendmail 
> >> script starts mailscanner.
> >>
> >> Arthur Sherman wrote:
> >>> Hi Anthony,
> >>>
> >>> I didn't find anything.
> >>>
> >>> Here are starting services:
> >>> ---
> >>> [root at ns1 init.d]# chkconfig --list | grep on
> >>> autofs          0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> haldaemon       0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> poprelayd       0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> readahead       0:off   1:off   2:off   3:off   4:off   
> >> 5:on    6:off
> >>> syslog          0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> xinetd          0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> DCC             0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> netfs           0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> sendmail        0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> mysqld          0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> dbrecover       0:off   1:on    2:on    3:on    4:on    
> >> 5:on    6:off
> >>> bluequartz      0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> microcode_ctl   0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> saslauthd       0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> clamav-milter   0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> lm_sensors      0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> admserv         0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> network         0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> kudzu           0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> iptables        0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> irqbalance      0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> named           0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> mdmonitor       0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> crond           0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> httpd           0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> dovecot         0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> clamd           0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> gpm             0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> readahead_early 0:off   1:off   2:off   3:off   4:off   
> >> 5:on    6:off
> >>> cpuspeed        0:off   1:on    2:on    3:on    4:on    
> >> 5:on    6:off
> >>> messagebus      0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> mdchk           0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> sshd            0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> smartd          0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> cced.init       0:off   1:off   2:on    3:on    4:on    
> >> 5:on    6:off
> >>> rawdevices      0:off   1:off   2:off   3:on    4:on    
> >> 5:on    6:off
> >>> ---
> >>>
> >>> Then I grepped for sendmail pattern:
> >>> ---
> >>> [root at ns1 init.d]# grep sendmail *
> >>> clamav-milter:# description: clamav-milter is a daemon 
> >> which hooks into
> >>> sendmail \
> >>> DCC:# dccm must be started before sendmail and stopped 
> >> after sendmail to
> >>> avoid
> >>> DCC:#   complaints from sendmail
> >>> DCC:#   can be added to /etc/rc just before sendmail is 
> >> started and a line
> >>> like
> >>> diskdump:SENDMAIL="/usr/sbin/sendmail"
> >>> poprelayd:#             the pop-log-scrubber and sendmail relay db
> >>> population tool.
> >>> sendmail:#               MailScanner, and its associated 
> >> copies of sendmail.
> >>> sendmail:# If you are using sendmail, Exim or Postfix, 
> >> please try to avoid
> >>> editing
> >>> sendmail:MTA=sendmail
> >>> sendmail:INPID=/var/run/sendmail.in.pid
> >>> sendmail:OUTPID=/var/run/sendmail.out.pid
> >>> sendmail:SENDMAIL=/usr/sbin/sendmail
> >>> sendmail:# Start both the sendmail processes
> >>> sendmail:      elif [ $MTA = 'sendmail' ]; then
> >>> sendmail:      elif [ $MTA = 'sendmail' ]; then
> >>> sendmail:       # Start just incoming sendmail
> >>> sendmail:       # Start just outgoing sendmail
> >>> sendmail:        elif [ $MTA = "sendmail" ]; then
> >>> sendmail:          #killproc sendmail 2>/dev/null
> >>> sendmail:        elif [ $MTA = "sendmail" ]; then
> >>> sendmail:          #killproc /usr/sbin/sendmail 2>/dev/null
> >>> sendmail:       if [ $MTA = "sendmail" ]; then
> >>> sendmail:          # Now the incoming sendmail
> >>> sendmail:          echo -n '         incoming sendmail: '
> >>> sendmail:          #pid=`ps ax | egrep 
> >> '\[sendmail\]|sendmai[l]: accepting
> >>> connections'`
> >>> sendmail:          # Now the outgoing sendmail
> >>> sendmail:          echo -n '         outgoing sendmail: '
> >>> sendmail:          #pid=`ps ax | egrep '\[sendmail\]|sendmai[l]
> >>> -q[0-9]*[mhd]|sendmail: Queue runner' | grep -v grep`
> >>> ---
> >>>
> >>> Did I miss something?
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> Best,
> >>>
> >>> --
> >>> Arthur Sherman
> >>>
> >>> +972-52-4878851
> >>> CPTeam  
> >>>
> >>>> -----Original Message-----
> >>>> From: mailscanner-bounces at lists.mailscanner.info 
> >>>> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> >>>> Of Anthony Peacock
> >>>> Sent: Tuesday, October 10, 2006 10:05 AM
> >>>> To: MailScanner discussion
> >>>> Subject: Re: Double sendmail processes
> >>>>
> >>>> Hi Arthur,
> >>>>
> >>>> Check all of the files on the init directory to see if any of 
> >>>> the others 
> >>>> start sendmail as well.  Do you have a mailscanner 
> script in there?
> >>>>
> >>>> Arthur Sherman wrote:
> >>>>> Hello,
> >>>>>
> >>>>> On my server, Mailscanner is started as 
> /etc/rc.d/init.d/sendmail.
> >>>>> Every time the server is restarted, I see double sendmail 
> >>>> processes, i.e. 2
> >>>>> of /var/spool/clientmqueue, and 2 of /var/spool/mqueue.
> >>>>> After I manually restart Mailscanner, it starts only one pair.
> >>>>>
> >>>>> Q1: why are double processes started?
> >>>>> Q2: how could I fix this?
> >>>>>
> >>>>> Thanks!
> >>>>>
> >>>>>
> >>>>> Best,
> >>>>>
> >>>>> --
> >>>>> Arthur Sherman
> >>>>>
> >>>>> +972-52-4878851
> >>>>> CPTeam 
> >>>>>
> >>>> -- 
> >>>> Anthony Peacock
> >>>> CHIME, Royal Free & University College Medical School
> >>>> WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> >>>> "If you have an apple and I have  an apple and we  
> exchange apples
> >>>> then you and I will still each have  one apple. But  if 
> you have an
> >>>> idea and I have an idea and we exchange these ideas, then 
> >> each of us
> >>>> will have two ideas." -- George Bernard Shaw
> >>>> -- 
> >>>> MailScanner mailing list
> >>>> mailscanner at lists.mailscanner.info
> >>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >>>>
> >>>> Before posting, read http://wiki.mailscanner.info/posting
> >>>>
> >>>> Support MailScanner development - buy the book off the website! 
> >>
> >> -- 
> >> Anthony Peacock
> >> CHIME, Royal Free & University College Medical School
> >> WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> >> "If you have an apple and I have  an apple and we  exchange apples
> >> then you and I will still each have  one apple. But  if you have an
> >> idea and I have an idea and we exchange these ideas, then 
> each of us
> >> will have two ideas." -- George Bernard Shaw
> >> -- 
> >> MailScanner mailing list
> >> mailscanner at lists.mailscanner.info
> >> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >>
> >> Before posting, read http://wiki.mailscanner.info/posting
> >>
> >> Support MailScanner development - buy the book off the website! 
> >>
> > 
> 
> 
> -- 
> Anthony Peacock
> CHIME, Royal Free & University College Medical School
> WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> "If you have an apple and I have  an apple and we  exchange apples
> then you and I will still each have  one apple. But  if you have an
> idea and I have an idea and we exchange these ideas, then each of us
> will have two ideas." -- George Bernard Shaw
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 
> 



More information about the MailScanner mailing list