On 2/12/2015 2:26 PM, LuKreme wrote: > I believe I have the spams-milter working with postfix > > main.cf > milter_default_action = accept > smtpd_milters = unix:/var/run/spamass-milter.sock > > The spams-milter is running: > spamd 32770 0.2 3.3 82164 67496 ?? S 1:14PM 0:11.22 spamd > child (perl) > root 32769 0.0 3.0 73972 61176 ?? Ss 1:14PM 0:02.95 > /usr/local/bin/spamd -u spamd -H /var/spool/spamd -d -r > /var/run/spamd/spamd.pid (perl) > spamd 32771 0.0 3.1 78068 63020 ?? I 1:14PM 0:00.79 spamd > child (perl) > root 52035 0.0 0.5 30704 9608 ?? Is 4Feb15 0:10.49 > /usr/local/sbin/spamass-milter -f -p /var/run/spamass-milter.sock > > And messages are getting tagged as spam. > > Feb 12 13:17:10 mail spamd[32769]: prefork: child states: II > Feb 12 13:17:10 mail spamd[32770]: spamd: connection from localhost > [::1]:35582 to port 783, fd 6 > Feb 12 13:17:10 mail spamd[32770]: spamd: processing message > <75d769e5b2e49dd09bd8c43836b66aaf.13392617.20035...@nicesexytummy.us> for > kreme:58 > Feb 12 13:17:11 mail spamd[32770]: spamd: identified spam (9.7/5.0) for > kreme:58 in 0.7 seconds, 9260 bytes. > Feb 12 13:17:11 mail spamd[32770]: spamd: result: Y 9 - > BAYES_99,BAYES_999,HTML_FONT_LOW_CONTRAST,HTML_IMAGE_ONLY_32,HTML_MESSAGE,MPART_ALT_DIFF,RCVD_IN_BRBL_LASTEXT,SPF_HELO_PASS,SPF_PASS,T_REMOTE_IMAGE,T_RP_MATCHES_RCVD,URI_TRY_USME > > scantime=0.7,size=9260,user=kreme,uid=58,required_score=5.0,rhost=localhost,raddr=::1,rport=35582,mid=<75d769e5b2e49dd09bd8c43836b66aaf.13392617.20035...@nicesexytummy.us>,bayes=1.000000,autolearn=no > autolearn_force=no > > Two questions. Wouldn’t the log show the milter instead of spamd? And now > that this is working, how do I reject incoming messages based on their score > (for example, say I wanted to reject all spam scoring 9.0 or higher)?
spamass-milter uses the standard spamassassin spamc/spamd interface. I believe you can enable additional spamass-milter logging on its startup command line. There are startup flags you can add to spamass-milter to reject mail over a certain score. See the spamass-milter man page for further info. -- Noel Jones