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