Bug Tracker item #3027321, was opened at 2010-07-09 12:52
Message generated for change (Comment added) made by sbajic
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3027321&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: v3.9.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Stéphane Berthelot (sberthelot)
>Assigned to: Stevan Bajic (sbajic)
Summary: Wrong user when sending notifications after retrain

Initial Comment:
If I retrain the first spam of an account using postfix and this master.cf 
config, the signature is read and user context switched correctly.
In the firstspam.txt the $u variable is even remplaced by the correct user.
But when going to do_notification function, ATX->recipient is still set to the 
user that was on the retrain commandline.
The proposed patch switch recipient accordingly. (We may not know it before 
reading the signature since it may be another aliased user sending a retrain 
for one of its account (different username) ...)

dspam-retrain  unix  -   n       n       -       -      pipe
  flags=Rhq user=dspam argv=/usr/bin/dspam --user dspam --class=$nexthop 
--source=error --process

(there is a dspam unix account, and it is in Trusted users in dspam.conf so it 
can change to the user in signature on retrain)

----------------------------------------------------------------------

>Comment By: Stevan Bajic (sbajic)
Date: 2010-08-22 20:06

Message:
Thanks for reporting this issue. It's fixed now in GIT.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3027321&group_id=250683

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to