I installed SpamAssassin on my system and started the dameon process and
verified that is it running.  I moved qmail-queue to be qmail-queue.orig
and put a script in place to invoke Spamassassin and then pipe the
output to qmail-queue.orig.  My problem arises that when
qmail-queue.orig executes it gets the permissions of qmailq:nofiles. 
Well on my system the /var/qmail/queue/mess files are all qmailq:qmail, 
so when it writes the files it is owned by qmailq but the wrong group. 
I am stumped as to how to get spamc to invoke qmail-queue.orig with the
correct perms. I would prefer not to use sudo, but if I must I would do
that as a last resort.  Any ideas greatly appreciated.

Here are my perms now:
-rws--x--x    1 qmailq   qmail       17300 Aug 25 14:11 qmail-queue
-rws--x--x    1 qmailq   qmail       17300 Aug 25 19:54 qmail-queue.orig
-rws--x--x    1 qmailq   qmail          59 Aug 25 14:21 qmail-queue.temp

Heres my script to invoke SpamAssassin and pipe to qmail-queue.orig

mail bin # cat qmail-queue.temp
#!/bin/sh
/usr/bin/spamc | /var/qmail/bin/qmail-queue.orig

/etc/passwd
qmaild:x:201:200::/var/qmail:/bin/false
qmaill:x:202:200::/var/qmail:/bin/false
qmailp:x:203:200::/var/qmail:/bin/false
qmailq:x:204:201::/var/qmail:/bin/false
qmailr:x:205:201::/var/qmail:/bin/false
qmails:x:206:201::/var/qmail:/bin/false

/etc/group
nofiles:x:200:
qmail:x:201:

btw: this is a gentoo linux 1.4 system.





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to