<p>Do<br>
service MailScanner stop<br>
This is, of course, to stop both MS and your MTA. Check that all Sendmail processes have ended, with ps. Then do<br>
service MailScanner startin<br>
Which will only start the mta. Send a message to it... If it flows through, then you&#39;ve got a bad Sendmail setup. If not, then do<br>
service MailScanner startout<br>
If the mail get delivered now, then your outgoing instance picks up mail from the wrong queue dir.</p>
<p>Cheers&amp;Merry Xmas<br>
-- <br>
-- Glenn</p>
<div class="gmail_quote">Den 23 dec 2011 00:26 skrev &quot;Tony Arcus&quot; &lt;<a href="mailto:tony@ai.net.nz">tony@ai.net.nz</a>&gt;:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;d look very carefully at the sendmail setup<br>
(<a href="http://www.mailscanner.info/sendmail.html" target="_blank">http://www.mailscanner.info/<u></u>sendmail.html</a>)<br>
<br>
and make sure that mail doesnot flow with MS turned off.<br>
<br>
--<br>
Martin Hepworth<br>
Oxford, UK<br>
<br>
<br>
On 21 December 2011 23:29, Tony Arcus &lt;<a href="mailto:tony@ai.net.nz" target="_blank">tony@ai.net.nz</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Dec 19, 2011 at 11:31 PM, Martin Hepworth &lt;<a href="mailto:maxsec@gmail.com" target="_blank">maxsec@gmail.com</a>&gt;<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FYI in centos 6 the default mta could be postfix if it&#39;s like red hat !<br>
So<br>
you may need to disable postfix if u want to get this going..<br>
<br>
</blockquote>
<br>
Good point<br>
<br>
Tony - if you telnet to the server on port 25, do you get the sendmail<br>
or postfix banner?<br>
<br>
<br>
Chris<br>
--<br>
MailScanner mailing list<br>
mailscanner@lists.mailscanner.<u></u>**info&lt;<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.<u></u>mailscanner.info</a>&gt;<br>
<a href="http://lists.mailscanner.info/**mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>**mailman/listinfo/mailscanner</a><u></u>&lt;<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.<u></u>info/mailman/listinfo/<u></u>mailscanner</a>&gt;<br>

<br>
Before posting, read <a href="http://wiki.mailscanner.info/**posting" target="_blank">http://wiki.mailscanner.info/*<u></u>*posting</a>&lt;<a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.<u></u>mailscanner.info/posting</a>&gt;<br>

<br>
Support MailScanner development - buy the book off the website!<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
<br>
</blockquote>
Thanks Martin and Chris for that tip, I had already discovered that and<br>
uninstalled postfix. No luck<br>
<br>
It got me thinking... what else could be delivering the mail from<br>
/var/spool/<a href="http://mqueue.in" target="_blank">mqueue.in</a>? Other than sendmail?<br>
<br>
 Thanks to a lot of people with suggestions.<br>
</blockquote>
<br>
This is what I believe is happening.<br>
Being Centos 6<br>
<br>
Postfix was installed but not running.<br>
Postfix has been uninstalled and the server restarted<br>
Telnet in and you get:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Trying 202.xxx.xxx.124...<br>
Connected to <a href="http://mail.xxxxx.co.nz" target="_blank">mail.xxxxx.co.nz</a> (202.xxx.xxx.124).<br>
Escape character is &#39;^]&#39;.<br>
220 <a href="http://mail.xxxxxx.co.nz" target="_blank">mail.xxxxxx.co.nz</a> ESMTP Sendmail 8.14.4/8.14.4; Thu, 22 Dec 2011 &gt;<br>
11:20:06 +1300<br>
<br>
</blockquote>
<br>
looking at chkconfig, this appears clean and unless some one wants<br>
something specific from it I wont report my findings.<br>
<br>
SO<br>
<br>
It would appear that emails come in on the sendmail MTA<br>
They get put in the /var/spool/<a href="http://mqueue.in" target="_blank">mqueue.in</a> directory<br>
THEN sendmail straight away picks them back up and delivers them before.<br>
MailScanner can ever get a change to process them.<br>
<br>
My reason for thinking this:<br>
<br>
I sent a number of emails from a different server.<br>
Here is sendmail getting the email as we would expect, and as emails are<br>
also received on other sendmail/MailScanner servers that are operating<br>
correctly.<br>
<br>
root     16583  0.0  0.3  10848  3952 ?        D    11:34   0:00 sendmail:<br>
pBLMYFqF016583 ip-202-174-161-37.wizbiz.net.*<u></u>*nz&lt;<a href="http://ip-202-174-161-37.wizbiz.net.nz" target="_blank">http://ip-202-174-161-37.<u></u>wizbiz.net.nz</a>&gt;<br>
[202.174.161.37]: DATA<br>
<br>
<br>
INSTANTLY though I also see this<br>
root     16585  0.0  0.3  10668  3200 ?        S    11:34   0:00 sendmail:<br>
./pBLMYFqD016583 from queue<br>
<br>
sendmail picks the email back up and delivers it, MailScanner never get a<br>
change to poll the this message.<br>
<br>
How do I stop sendmail from doing this?<br>
<br>
</blockquote></blockquote>
<br>
I agree with you Martin, and am looking closely at sendmail.<br>
With MailScanner turned off no emails flow.<br>
<br>
I have even checked to make sure there is no other stray process that is running when MailScanner is running that might be activating a sendmail process to deliver emails.<br>
<br>
Turn MailScanner on emails are accepted but delivered right away.<br>
The process<br>
root     30934  0.0  0.1  10032  2012 ?        Ss   11:32   0:00 sendmail: accepting connections<br>
Is accepting the connection to receive an email.<br>
A process is started to receive this email<br>
Something like:<br>
sendmail: pBMLiEI2027891 <a href="http://ip-202-xxx-xxx-37.wizbiz.net.nz" target="_blank">ip-202-xxx-xxx-37.wizbiz.net.<u></u>nz</a> [202.xxx.xxx.37]:<br>
Then a third process is started to deliver this message.<br>
<br>
It is this last step that I DO NOT what happening.<br>
<br>
Configurations between this system and other systems seem the same, except this is a different version of send mail, 8.14.4-8.el6 as apposite to 8.12.8-8.1el5_7<br>
<br>
Checked the process for accepting emails<br>
/usr/sbin/sendmail -bd -OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/<a href="http://mqueue.in" target="_blank">mq<u></u>ueue.in</a> -OPidFile=/var/run/sendmail.<u></u>in.pid<br>
<br>
It should only put the emails in the queue not also deliver them.<br>
<br>
Even changing <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> to O DeliveryMode=queueonly does not help.<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----<br>
This message was sent using IMP, the Internet Messaging Program.<br>
<br>
<br>
-- <br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<u></u>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/<u></u>posting</a><br>
<br>
Support MailScanner development - buy the book off the website!</blockquote></div>