I wrote the nice long e-mail below before I did some more experimentation and
log-watching. Hopefully this solution will help someone in the future.
For the impatient: You need to add "nobody" to the trusted user list for dspam
as that is the user postfix uses to fire off pipe commands.
Original e-mail follows --------------------------------------------------
As we move our mail system to postfix/dspam, I am attempting to set up aliases
that can be forwarded to by our existing mail system to train dspam [No, they
aren't on the same box, so I can't just add dspam to the chain. Nor would I
want to: it would require messing with the very fragile sendmail
config...which is why we're moving to postfix. But I digress.]
I set up the group file in /var/spool/dspam as described in the docs:
groupname:classification:*globaluser
I then added these lines to my aliases file:
train-spam: "|/usr/bin/dspam --user
globaluser --class=spam --source=corpus --mode=teft"
train-notspam: "|/usr/bin/dspam --user
globaluser --class=innocent --source=corpus --mode=teft"
Forwarding to them, however, gets bounced saying:
<train-notspam@host.name.com>: Command died with status 1:
"/usr/bin/dspam --user globaluser --class=innocent --source=corpus
--mode=teft"
However, running this command as the postfix user works, so I don't think it's
a permissions problem:
cat message | /usr/bin/dspam --user
globaluser --class=innocent --source=corpus --mode=teft
--------------------------------------
But see the opening of the message for my solution. :)
j
-- Joshua Kugler Lead System Admin -- Senior Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111Received on Wed Jun 21 17:20:54 2006
This archive was generated by hypermail 2.1.8 : Fri Jun 23 2006 - 00:00:03 EDT