Bug Tracker item #3027321, was opened at 2010-07-09 12:52
Message generated for change (Tracker Item Submitted) made by sberthelot
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stéphane Berthelot (sberthelot)
Assigned to: Nobody/Anonymous (nobody)
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)

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

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 Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to