Guy Hulbert wrote:
So the problem may be that $username is not being set from the To:
field, yep that seems to be it:
my $username = getpwuid($>);
This may take some rewriting of the spamassassin plugin since it needs
to know how 'spamd' was called.
I suspected that was the issue.
It get a bit more troublesome. Right now qpsmtpd calls spamd once per
message, which works fine if there is only one recipient. What happens
if there are two recipients, with different user prefs that could result
in different scores? Which username to you use to spamd? Which score
do you use to determine whether to bounce, tag or accept?
Maybe this is a can of worms we don't want to open....
Mark Farver