SA Bugzilla – Bug 6003
whitelist_from_rcvd propagates to other users
Last modified: 2009-09-15 15:06:48 UTC
This looks to be along the same lines as bug # 4179 We are seeing whitelist_from_rcvd rules propagating to other users in the same spamd thread. Im not sure what sort of information if any you would need to help track this down.
hi William -- if you can come up with a test case that demos the bug, that'd be great...
Here is what I do to replicate it: user josh prefs: mysql> select * from userpref where preference='whitelist_from_rcvd' and username='josh'; +----------+---------------------+-----------------------+---------+ | username | preference | value | prefid | +----------+---------------------+-----------------------+---------+ | josh | whitelist_from_rcvd | * localdomain | 1182755 | | josh | whitelist_from_rcvd | * localhost | 1182772 | | josh | whitelist_from_rcvd | *.sonic.net sonic.net | 1233361 | | josh | whitelist_from_rcvd | *@sonic.net sonic.net | 1957930 | +----------+---------------------+-----------------------+---------+ user dms prefs: mysql> select * from userpref where preference='whitelist_from_rcvd' and username='dms'; Empty set (0.00 sec) cat foo.msg | /bin/spamc -u josh -t 180 -H -f -d a.ourspamserver.net -p 784 on a.ourspamserver I look for the pid from the message of user josh. I then grep for that pid and start sending these: cat foo.msg | /bin/spamc -u dms -t 180 -H -f -d a.ourspamserver.net -p 784 Until I catch the child that user josh used. I then see this from some debugging code I put into WLBLEval.pm in 'sub _check_whitelist_rcvd' HERE: if ($rdns =~ /(?:^|\.)\Q${domain}\E$/i) { log_message("info", "FOOBEE: rules: address $addr matches (def_)whitelist_from_rcvd $list->{$white_addr}{re} ${domain}"); dbg("rules: address $addr matches (def_)whitelist_from_rcvd $list->{$white_addr}{re} ${domain}"); return 1; } from message processed as user dms: Oct 29 09:39:51 c spamd[11329]: FOOBEE: rules: address prog-status-bounces+dms=corp.sonic.net@listman.sonic.net matches (def_)whitelist_from_rcvd ^.*\.sonic\.net$ sonic.net If you need more info please let me know.
Justin, Any luck at reproducing this ?
(In reply to comment #3) > Justin, > > Any luck at reproducing this ? hi William -- unfortunately I haven't had the time to look into this :(
bump... Had anytime to revist this yet ?
actually, I want to look at this after the alpha.
and fixed: : 288...; svn commit -m "bug 6003: fix leakage of 'whitelist_from_rcvd' entries between spamd users" Sending lib/Mail/SpamAssassin/Conf.pm Sending t/spamd_user_rules_leak.t Adding t/spamd_whitelist_leak.t Transmitting file data ... Committed revision 815516.