On Mon, 20 Sep 2010, Chuck Campbell wrote: > > enabled). Is SA integrated in your mail system in a way that it "knows" > > Not sure where to enable this. Will dig more in the docs. > > > the user name of the recipient? (some integration methods do not make that > > info avaialble to SA so the per-user prefs don't work). > > Have you checked to make sure that your user_prefs are available/readable > > to the SA daemon? > > How do I test this?
Assuming you're running spamd with standard logging enabled, look at the spamd logs. You should see the username associated in each log entry. EG: Sep 20 17:39:24 server33 spamd[20757]: spamd: connection from s-l104.engr.uiowa.edu [128.255.17.210] at port 36478 Sep 20 17:39:24 server33 spamd[20757]: spamd: checking message <20100920163923.oyqyrtl...@mx1.whitebeek.com> for astockda:115 Sep 20 17:39:25 server33 spamd[20757]: spamd: identified spam (29.1/6.0) for astockda:115 in 1.2 seconds, 19513 bytes. Sep 20 17:39:25 server33 spamd[20757]: spamd: result: Y 29 - BAYES_99,COMBINED_FROM,FS_DEGREE,FVGT_m_MULTI_ODD2,HTML_90_100,HTML_MESSAGE,HTML_TAG_BALANCE_BODY,HTML_TINY_FONT,L_CLAMAV,MY_CLAMAV,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,SPF_PASS,T__BOTNET_NOTRUST,T__MY_CLAMAV,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_WS_SURBL scantime=1.2,size=19513,user=astockda,uid=115,required_score=6.0,rhost=s-l104.engr.uiowa.edu,raddr=128.255.17.210,rport=36478,mid=<20100920163923.oyqyrtl...@mx1.whitebeek.com>,bayes=1,autolearn=spam That "for astockda" and "user=astockda" part is the username that spamd received from the milter that I use to connect sendmail to spamd To check user_prefs readablilty, do this: 1) on the machine running spamd (or what ever SA mechanism) login (or su) to the user in question. 2) create or obtain a test mail message, store in a text file. 3) run it thru spamassassin in debug mode: % spamassassin -D < test-message.txt > /tmp/test.out 2>&1 Then grep for 'user' in the output file: % grep user /tmp/test.out [21751] dbg: config: using "/home/bill/.spamassassin" for user state dir [21751] dbg: config: using "/home/bill/.spamassassin/user_prefs" for user prefs file [21751] dbg: config: read file /home/bill/.spamassassin/user_prefs [21751] dbg: Botnet: adding (\b|\d)user(\b|\d) to botnet_clientwords Note the line that says "read file /home/bill/.spamassassin/user_prefs" that file should exist and be readable by your spamd process AND be the file that you've put the user config stuff in. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{