I am trying to run SA site-wide. That sounds far grander than it
actually is. I am running fetchmail -> procmail -> clamav -> SA on a FC6
platform which acts as a server for my home system.

What I am trying to achieve is as follows:
fetchmail scoops up all the mail for all the various POP3 accounts and
passes it to procmail which (running as root) first scans it for viruses
and then for spam (using SA). Only if the mail is clean does it then put
mail for my wife in /var/spool/mail/wifey, for my children
in /var/spool/mail/kiddies and anything else gets sorted for mailing
lists (e.g. this one) etc and what remains is put
into /var/spool/mail/me.

The problem is that (running procmail as root) if I follow the
instructions I have found on various setup guides (including the SA
wiki) I am supposed to put "DROPPRIVS=yes" into /etc/procmailrc. If I do
that SA works fine, but procmail is unable to put mail for my other
users in their /var/spool/mail directories.

If I leave out DROPPRIVS=yes the direction of mail works fine but I get
these entries in /var/log/maillog:

Aug  7 14:45:20 mydomain spamd[1541]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp
lockfile /.spamassassin/auto-whitelist.lock.mydomain.org.uk.1541
for /.spamassassin/auto-whitelist.lock: No such file or directory 
Aug  7 14:45:20 mydomain spamd[1541]: spamd: clean message (-2.5/5.0)
for root:99 in 16.1 seconds, 5626 bytes. 
Aug  7 14:45:20 mydomain spamd[1541]: spamd: result: . -2 -
BAYES_00,RDNS_NONE
scantime=16.1,size=5626,user=root,uid=99,required_score=5.0,rhost=localhost.localdomain,
raddr=127.0.0.1,rport=39103,mid=<[EMAIL PROTECTED]>,bayes=0.000000,autolearn=no 
Aug  7 14:45:20 mydomain spamd[1541]: bayes: expire_old_tokens: locker:
safe_lock: cannot create tmp
lockfile /etc/mail/spamassassin/bayes.lock.mydomain.org.uk.1541
for /etc/mail/spamassassin/bayes.lock: Permission denied 
Aug  7 14:45:21 mydomain sendmail[589]: l77Dj1H2000588:
to=<[EMAIL PROTECTED]>, delay=00:00:20, xdelay=00:00:20, mailer=local,
pri=143287, dsn=2.0.0, stat=Sent
Aug  7 14:45:21 mydomain spamd[1539]: prefork: child states: II

How do I set up procmail / SA to achieve what I want?

Thanks in advance for your help...

Mark


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to