FYI in centos 6 the default mta could be postfix if it&#39;s like red hat ! So you may need to disable postfix if u want to get this going..<br><br>Martin<br><br><br>On Tuesday, 20 December 2011, Tony Arcus &lt;<a href="mailto:tony@ai.net.nz">tony@ai.net.nz</a>&gt; wrote:<br>
&gt;<br>&gt; Quoting Chris Stone &lt;<a href="mailto:axisml@gmail.com">axisml@gmail.com</a>&gt;:<br>&gt;<br>&gt;&gt; Tony,<br>&gt;&gt;<br>&gt;&gt; On Mon, Dec 19, 2011 at 3:05 PM, Tony Arcus &lt;<a href="mailto:tony@ai.net.nz">tony@ai.net.nz</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; Sendmail is:<br>&gt;&gt;&gt; service sendmail stop<br>&gt;&gt;&gt; chkconfig sendmail off<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Mailscanner is on<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; When I do a<br>&gt;&gt;&gt; /etc/init.d/MailScanner status<br>
&gt;&gt;&gt; Checking MailScanner daemons:<br>&gt;&gt;&gt;         MailScanner:                                      [  OK  ]<br>&gt;&gt;&gt;         incoming sendmail:                                [  OK  ]<br>&gt;&gt;&gt;         outgoing sendmail:                                [  OK  ]<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; All looks good and as I would expect,<br>&gt;&gt;&gt; but when I do a<br>&gt;&gt;&gt; /etc/init.d/sendmail status<br>&gt;&gt;&gt; sendmail is stopped<br>&gt;&gt;&gt; sm-client (pid  19322) is running...<br>
&gt;&gt;<br>&gt;&gt; You turned off the sendmail init scripts with your chkconfig - as you<br>&gt;&gt; should have. That sendmail init script is going to be looking at<br>&gt;&gt; /var/spool/mqueue not /var/spool/<a href="http://mqueue.in">mqueue.in</a>. The sendmail daemon you<br>
&gt;&gt; are seeing with the /etc/init.d/MailScanner status (or service<br>&gt;&gt; MailScanner status) is the one that is using /var/spool/<a href="http://mqueue.in">mqueue.in</a> as<br>&gt;&gt; the incoming queue and /var/spool/mqueue as the outbound queue. You<br>
&gt;&gt; should only use the MailScanner init script to see the status of the<br>&gt;&gt; daemons rather than the sendmail init script.<br>&gt;&gt;<br>&gt;&gt; The sm-client indicates that your local sendmail client is running,<br>
&gt;&gt; which you do not need. Do a &#39;service sendmail stop&#39; and then a<br>&gt;&gt; &#39;service MailScanner restart&#39; to clean up and make sure only the<br>&gt;&gt; sendmail daemons you need are running. The &#39;chkconfig sendmail off&#39;<br>
&gt;&gt; will keep that init script from running on boot.<br>&gt;&gt;<br>&gt;&gt;&gt; Still nothing here that causes me to think things are wrong.<br>&gt;&gt;&gt; What I can confirm is that emails are entering the queue<br>
&gt;&gt;&gt; /var/spool/<a href="http://mqueue.in/">mqueue.in/</a>, but immediately get processed (by something) directly<br>&gt;&gt;&gt; to the user. MailScanner never gets to process them.<br>&gt;&gt;<br>&gt;&gt; Take a look at the &#39;Incoming Queue Dir&#39; setting in your<br>
&gt;&gt; /etc/MailScanner/MailScanner.conf file. You should have:<br>&gt;&gt;<br>&gt;&gt; Incoming Queue Dir = /var/spool/<a href="http://mqueue.in">mqueue.in</a><br>&gt;&gt;<br>&gt;&gt; but, I am guessing, you probably have:<br>
&gt;&gt;<br>&gt;&gt; Incoming Queue Dir = /var/spool/mqueue<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Chris<br>&gt;&gt; --<br>&gt;&gt; MailScanner mailing list<br>&gt;&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt;&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>&gt;&gt;<br>&gt;&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
&gt;&gt;<br>&gt;&gt; Support MailScanner development - buy the book off the website!<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; This message has been scanned for viruses and<br>&gt;&gt; dangerous content by MailScanner, and is<br>
&gt;&gt; believed to be clean.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt; Thanks Chris for your suggestions.<br>&gt;<br>&gt; What you have suggested is what I have so far been trying to trouble shoot.<br>&gt; No sendmail process is running as a result of running<br>
&gt; /etc/init.d/sendmail start<br>&gt;<br>&gt; The sendmail processes I currently have running are as a result of starting MailScanner.<br>&gt; ps aux|grep send<br>&gt; root      1328  0.0  0.1  10028  2008 ?        Ss   12:10   0:00 sendmail: accepting connections<br>
&gt; smmsp     1332  0.0  0.1   9792  1532 ?        Ss   12:10   0:00 sendmail: Queue runner@00:15:00 for<br>&gt; /var/spool/clientmqueue<br>&gt; root      1336  0.0  0.1   9784  1620 ?        Ss   12:10   0:00 sendmail: Queue runner@00:15:00 for /var/spool/mqueue<br>
&gt;<br>&gt; Even on systems that are running correctly there is a running sm-client.<br>&gt; I looked in /var/run/sm-client.pid on my good systems where everything is operational and:<br>&gt;<br>&gt; cat /var/run/sm-client.pid<br>
&gt; 1332<br>&gt; /usr/sbin/sendmail -L sm-msp-queue -Ac -q15m -OPidFile=/var/run/sm-client.pid<br>&gt; [root@mail strider]# ps aux|grep 1332<br>&gt; smmsp     1332  0.0  0.1   9792  1532 ?        Ss   12:10   0:00 sendmail: Queue runner@00:15:00 for<br>
&gt; /var/spool/clientmqueue<br>&gt;<br>&gt; So unless I am mistaken (always possible) this is okay.<br>&gt;<br>&gt; As for /etc/MailScanner/MailScanner.conf<br>&gt; cat /etc/MailScanner/MailScanner.conf|grep &quot;Queue Dir&quot;<br>
&gt; Incoming Queue Dir = /var/spool/<a href="http://mqueue.in">mqueue.in</a><br>&gt; Outgoing Queue Dir = /var/spool/mqueue<br>&gt;<br>&gt; So everything would seem to be set up correctly, the incoming emails are going in to /var/spool/<a href="http://mqueue.in">mqueue.in</a> (not some where else) and instantly on to the user, so MailScanner never gets them to process.<br>
&gt;<br>&gt; So what is getting the messages out of /var/spool/<a href="http://mqueue.in">mqueue.in</a>, and how to stop this so MailScanner does them 5 seconds later.<br>&gt;<br>&gt; PS<br>&gt; Centos 6<br>&gt; Mailscanner 4.84.3<br>
&gt; sendmail-cf-8.14.4-8.el6.noarch<br>&gt; sendmail-8.14.4-8.el6.i686<br>&gt;<br>&gt; 1 gig ram<br>&gt;<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------<br>&gt; This message was sent using IMP, the Internet Messaging Program.<br>
&gt;<br>&gt; --<br>&gt; This message has been scanned for viruses and<br>&gt; dangerous content by MailScanner, and is<br>&gt; believed to be clean.<br>&gt;<br>&gt; --<br>&gt; MailScanner mailing list<br>&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>&gt;<br>&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
&gt;<br>&gt; Support MailScanner development - buy the book off the website!<br><br>-- <br>-- <br>Martin Hepworth<br>Oxford, UK<br>