<div dir="ltr">DISCARD instructs postfix to silently drop the message without a REJECT. This is required so that MailScanner can proceed with scanning.<div><br></div><div>Did you also try setting Debug = no and starting MailScanner?</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 7:24 AM Koby Peleg Hen <<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yes ,<br>
<br>
BTW it is all started with my upgrade to 5.1.2<br>
why it keed DISCARD message ?<br>
<br>
<br>
here is part of my conf...<br>
<br>
# This is the version number of the MailScanner distribution that created<br>
# this configuration file. Please do not change this value.<br>
MailScanner Version Number = 5.1.2<br>
<br>
# Do not change this unless you absolutely have to, these numbers have<br>
# been carefully calculated.<br>
# They affect the length of time that different types of message are<br>
# stored in the SpamAssassin cache which can be configured earlier in<br>
# this file (look for "Cache").<br>
# The numbers are all set in seconds. They are:<br>
# 1. Non-Spam cache lifetime = 30 minutes<br>
# 2. Spam (low scoring) cache lifetime = 5 minutes<br>
# 3. High-Scoring spam cache lifetime = 3 hours<br>
# 4. Viruses cache lifetime = 2 days<br>
# 5. How often to check the cache for expired messages = 10 minutes<br>
SpamAssassin Cache Timings = 1800,300,10800,172800,600<br>
<br>
# Set Debug to "yes" to stop it running as a daemon and just process<br>
# one batch of messages and then exit.<br>
Debug = yes<br>
<br>
# Do you want to debug SpamAssassin from within MailScanner?<br>
Debug SpamAssassin = no<br>
<br>
# Set Run In Foreground to "yes" if you want MailScanner to operate<br>
# normally in foreground (and not as a background daemon).<br>
# Use this if you are controlling the execution of MailScanner<br>
# with a tool like DJB's 'supervise' (see <a href="http://cr.yp.to/daemontools.html" rel="noreferrer" target="_blank">http://cr.yp.to/daemontools.html</a>).<br>
Run In Foreground = no<br>
<br>
<br>
<br>
<br>
<br>
<br>
> Koby,<br>
> <br>
> Yes, that is correct, as it should. Did you run /usr/sbin/MailScanner <br>
> with Debug = yes ?<br>
> <br>
> <br>
> <br>
> On Thu, Oct 25, 2018 at 7:06 AM Koby Peleg Hen <<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a> <br>
> <mailto:<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>>> wrote:<br>
> <br>
> It seem that it always<br>
> <br>
> do : milter triggers DISCARD<br>
> <br>
> <br>
> Oct 25 14:03:32 lab postfix/cleanup[23487]: E4206419CC:<br>
> milter-discard: END-OF-MESSAGE from <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a><br>
> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]: milter triggers DISCARD a<br>
> <br>
> ction; from=<<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>> <mailto:<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>><br>
> to=<<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>> <mailto:<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>><br>
> proto=ESMTP helo=<<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>><br>
> Oct 25 14:03:32 lab postfix/smtpd[23484]: disconnect from<br>
> <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126] ehlo=1<br>
> mail=1 rcpt=1 data=1 quit=1 commands=5<br>
> <br>
> Here is the full log<br>
> <br>
> Oct 25 14:03:31 lab MSMilter[23469]: connect_callback: ip =<br>
> 199.203.52.126<br>
> Oct 25 14:03:31 lab MSMilter[23469]: helo_callback: Received: from<br>
> <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>><br>
> Oct 25 14:03:31 lab MSMilter[23469]: msmailqueuetype = long<br>
> Oct 25 14:03:31 lab MSMilter[23469]: envrcpt_callback: no client<br>
> certificate requested<br>
> Oct 25 14:03:31 lab MSMilter[23469]: envrcpt_callback: id =<br>
> 42gkkq6cnMz750Q datestring = Thu, 25 Oct 2018 14:03:31 +0300 (IDT)<br>
> Oct 25 14:03:31 lab postfix/smtpd[23484]: E4206419CC:<br>
> client=<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]<br>
> Oct 25 14:03:31 lab postfix/cleanup[23487]: E4206419CC:<br>
> message-id=<<a href="mailto:d0577bf9-22b8-f8ea-2525-16ca68a7b62e@mksoft.co.il" target="_blank">d0577bf9-22b8-f8ea-2525-16ca68a7b62e@mksoft.co.il</a>><br>
> <mailto:<a href="mailto:d0577bf9-22b8-f8ea-2525-16ca68a7b62e@mksoft.co.il" target="_blank">d0577bf9-22b8-f8ea-2525-16ca68a7b62e@mksoft.co.il</a>><br>
> Oct 25 14:03:32 lab MSMilter[23469]: eom_callback: scannermode = yes<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: to =<br>
> <a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a> <mailto:<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>><br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: ip = 199.203.52.126<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: id = 42gkkq6cnMz750Q<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: incoming =<br>
> /var/spool/MailScanner/milterin<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: file =<br>
> /var/spool/MailScanner/milterin/temp-42gkkq6cnMz750Q<br>
> Oct 25 14:03:32 lab MSMilter[23469]: Not locking spool file<br>
> >>/var/spool/MailScanner/milterin/temp-42gkkq6cnMz750Q<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eom_callback: scanner mode enabled<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eom_callback: no whitelist<br>
> match, proceeding to blacklist test<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eoh_callback: End of Header<br>
> detected<br>
> Oct 25 14:03:32 lab MSMilter[23469]: body_callback: incoming =<br>
> /var/spool/MailScanner/milterin<br>
> Oct 25 14:03:32 lab MSMilter[23469]: body_callback: file =<br>
> /var/spool/MailScanner/milterin/temp-42gkkq6cnMz750Q<br>
> Oct 25 14:03:32 lab MSMilter[23469]: Not locking spool file<br>
> >>/var/spool/MailScanner/milterin/temp-42gkkq6cnMz750Q<br>
> Oct 25 14:03:32 lab MSMilter[23469]: eom_callback: incoming =<br>
> /var/spool/MailScanner/milterin<br>
> Oct 25 14:03:32 lab postfix/cleanup[23487]: E4206419CC:<br>
> *milter-discard: END-OF-MESSAGE from <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a><br>
> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]: milter triggers DISCARD *a<br>
> ction; from=<<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>> <mailto:<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>><br>
> to=<<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>> <mailto:<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>><br>
> proto=ESMTP helo=<<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>><br>
> Oct 25 14:03:32 lab postfix/smtpd[23484]: disconnect from<br>
> <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126] ehlo=1<br>
> mail=1 rcpt=1 data=1 quit=1 commands=5<br>
> <br>
> <br>
> <br>
> <br>
> <br>
>> Hello Koby,<br>
>><br>
>> It looks like the milter is functioning fine. We need to focus on<br>
>> MailScanner itself. The next step would be for MailScanner to<br>
>> pick up the messages and scan them.<br>
>><br>
>> With Debug on, what do you see in the log when your run<br>
>> "/usr/sbin/MailScanner" one time?<br>
>><br>
>><br>
>><br>
>> On Thu, Oct 25, 2018 at 4:46 AM Koby Peleg Hen <<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a><br>
>> <mailto:<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>>> wrote:<br>
>><br>
>> I fix all permission on /Mailscanner > chown -R postfix:mtagroup<br>
>><br>
>><br>
>> But ,<br>
>><br>
>> It is seems that all the mail stuck in the<br>
>> /var/spool/mailscanner/milterin<br>
>><br>
>> They are not send out to target...<br>
>><br>
>><br>
>> here is the log from debug<br>
>><br>
>><br>
>> Oct 25 11:40:28 lab postfix/smtpd[10203]: connect from<br>
>> <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]<br>
>> Oct 25 11:40:28 lab MSMilter[9849]: connect_callback: ip =<br>
>> 199.203.52.126<br>
>> Oct 25 11:40:28 lab MSMilter[9849]: helo_callback: Received:<br>
>> from <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>><br>
>> Oct 25 11:40:28 lab MSMilter[9849]: msmailqueuetype = long<br>
>> Oct 25 11:40:28 lab MSMilter[9849]: envrcpt_callback: no<br>
>> client certificate requested<br>
>> Oct 25 11:40:28 lab MSMilter[9849]: envrcpt_callback: id =<br>
>> 42ggYm3nHjz4TLC datestring = Thu, 25 Oct 2018 11:40:28 +0300 (IDT)<br>
>> Oct 25 11:40:28 lab postfix/smtpd[10203]: 841DE40068:<br>
>> client=<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a><br>
>> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]<br>
>> Oct 25 11:40:28 lab postfix/cleanup[10206]: 841DE40068:<br>
>> message-id=<<a href="mailto:0f84b726-ba58-998c-175e-73f5763034f6@mksoft.co.il" target="_blank">0f84b726-ba58-998c-175e-73f5763034f6@mksoft.co.il</a>><br>
>> <mailto:<a href="mailto:0f84b726-ba58-998c-175e-73f5763034f6@mksoft.co.il" target="_blank">0f84b726-ba58-998c-175e-73f5763034f6@mksoft.co.il</a>><br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eom_callback: scannermode<br>
>> = yes<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: to =<br>
>> <a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a> <mailto:<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>><br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: ip =<br>
>> 199.203.52.126<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: id =<br>
>> 42ggYm3nHjz4TLC<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: incoming =<br>
>> /var/spool/MailScanner/milterin<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: file =<br>
>> /var/spool/MailScanner/milterin/temp-42ggYm3nHjz4TLC<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: Not locking spool file<br>
>> >>/var/spool/MailScanner/milterin/temp-42ggYm3nHjz4TLC<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eom_callback: scanner mode<br>
>> enabled<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eom_callback: no whitelist<br>
>> match, proceeding to blacklist test<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eoh_callback: End of<br>
>> Header detected<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: body_callback: incoming =<br>
>> /var/spool/MailScanner/milterin<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: body_callback: file =<br>
>> /var/spool/MailScanner/milterin/temp-42ggYm3nHjz4TLC<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: Not locking spool file<br>
>> >>/var/spool/MailScanner/milterin/temp-42ggYm3nHjz4TLC<br>
>> Oct 25 11:40:29 lab MSMilter[9849]: eom_callback: incoming =<br>
>> /var/spool/MailScanner/milterin<br>
>> Oct 25 11:40:29 lab postfix/cleanup[10206]: 841DE40068:<br>
>> milter-discard: END-OF-MESSAGE from <a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a><br>
>> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>[199.203.52.126]: milter triggers<br>
>> DISCARD a<br>
>> ction; from=<<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>> <mailto:<a href="mailto:koby@mksoft.co.il" target="_blank">koby@mksoft.co.il</a>><br>
>> to=<<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>> <mailto:<a href="mailto:admin@ofc.mksoft.co.il" target="_blank">admin@ofc.mksoft.co.il</a>><br>
>> proto=ESMTP helo=<<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">mail.mksoft.co.il</a> <<a href="http://mail.mksoft.co.il" rel="noreferrer" target="_blank">http://mail.mksoft.co.il</a>>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> נכתב על ידי Conz, ב־25.10.2018 בשעה 10:36:<br>
>><br>
>>> Is there anything in the maillog ?<br>
>>><br>
>>> Is your MTA delivering the emails or just keeping them in the<br>
>>> hold queue ?<br>
>>><br>
>>><br>
>>> *usually* when MS stops picking up new messages it means it<br>
>>> cannot access the mail queue (permissions) or is looking in<br>
>>> the wrong location.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> On 10/25/18 9:16 AM, Koby Peleg Hen wrote:<br>
>>>><br>
>>>> Hello All ,<br>
>>>><br>
>>>> Since my upgrade to 5.1.2 (yesterday) my mailscanner stop<br>
>>>> function (not scanning)<br>
>>>><br>
>>>> I did not change my mailscanner.conf which run as a milter<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Here is the load process :<br>
>>>><br>
>>>><br>
>>>> postfix 4628 1 0 Oct20 ? 00:00:00 MailScanner:<br>
>>>> starting child<br>
>>>> postfix 5740 1 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 5744 5740 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 5745 5740 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 5746 5740 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 5747 5740 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 5748 5740 0 16:10 ? 00:00:00 MSMilter Daemon<br>
>>>> postfix 7309 2463 0 16:26 ? 00:00:00 anvil -l -t<br>
>>>> unix -u -c<br>
>>>> root 7784 7464 0 16:39 pts/1 00:00:00 grep<br>
>>>> --color=auto post*<br>
>>>> postfix 22102 4628 0 13:07 ? 00:00:34 MailScanner:<br>
>>>> waiting for messages<br>
>>>> postfix 28635 2463 0 13:46 ? 00:00:00 qmgr -l -t<br>
>>>> unix -u<br>
>>>> postfix 30060 2463 0 15:32 ? 00:00:00 pickup -l -t<br>
>>>> unix -u -c<br>
>>>> postfix 30150 2463 0 15:36 ? 00:00:00 tlsmgr -l -t<br>
>>>> unix -u -c<br>
>>>> postfix 30775 4628 0 15:41 ? 00:00:34 MailScanner:<br>
>>>> waiting for messages<br>
>>>><br>
>>>><br>
>>>><br>
>>>> It is seen that some thing went wrong<br>
>>>><br>
>>>><br>
>>>> Any clue...<br>
>>>><br>
>>>><br>
>>>> Koby Peleg Hen<br>
>>>><br>
>>>><br>
>>><br>
>><br>
>><br>
>> -- <br>
>> MailScanner mailing list<br>
>> <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
>> <mailto:<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a>><br>
>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
>><br>
>><br>
>><br>
>> -- <br>
>> Shawn Iverson, CETL<br>
>> Director of Technology<br>
>> Rush County Schools<br>
>> 765-932-3901 option 7<br>
>> <a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a> <mailto:<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>><br>
>><br>
>><br>
>><br>
> <br>
> <br>
> -- <br>
> MailScanner mailing list<br>
> <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
> <mailto:<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a>><br>
> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
> <br>
> <br>
> <br>
> -- <br>
> Shawn Iverson, CETL<br>
> Director of Technology<br>
> Rush County Schools<br>
> 765-932-3901 option 7<br>
> <a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a> <mailto:<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>><br>
> <br>
> <br>
> <br>
> <br>
> <br>
<br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_1724872103410149380gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson, CETL<div>Director of Technology</div><div>Rush County Schools</div><div>765-932-3901 option 7</div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ" width="89" height="96"></div><div><img src="https://docs.google.com/uc?export=download&id=1aBrlQou4gjB04FY-twHN_0Dn3GHVNxqa&revid=0Bw5iD0ToYvs_RnQ0eDhHcm95WHBFdkNRbXhQRXpoYkR6SEEwPQ" style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>