On Sat, Dec 16, 2006 at 07:37:11PM -0600, Vijay Sankar wrote: > Good day, > > I am trying out the package dspam-3.6.8p1-mysql and ran into the > following problem -- not able to get any answers after days of searching > the dspam lists, various archives, etc. Apologize in advance for sending > this to the OBSD list but am hoping someone here can help. > > All the various features seem to work (spam is being quarantined for the > most part). However, if I attempt to train by forwarding an unsolicited > message to [EMAIL PROTECTED], (forwarding to the [EMAIL PROTECTED] by root > works) I get the following error: > > Dec 16 19:18:33 mx1 sendmail[5394]: kBH1IX53005394: from=vsankar, > size=2773, class=0, nrcpts=1, > msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > Dec 16 19:18:34 mx1 sm-mta[30713]: kBH1IXA2030713: > from=<[EMAIL PROTECTED]>, size=2934, class=0, nrcpts=1, > msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA, > relay=localhost.sankars.com [127.0.0.1] > > Dec 16 19:18:34 mx1 sendmail[5394]: kBH1IX53005394: > [EMAIL PROTECTED], ctladdr=vsankar (1002/1002), delay=00:00:01, > xdelay=00:00:01, mailer=relay, pri=32773, relay=[127.0.0.1] [127.0.0.1], > dsn=2.0.0, stat=Sent (kBH1IXA2030713 Message accepted for delivery)
Looks good, so far. > Dec 16 19:18:34 mx1 dspam[20346]: Unable to create > directory: /var/dspam/data: Permission denied > > Dec 16 19:18:34 mx1 dspam[20346]: Unable to open file for > writing: /var/dspam/data/vsankar/vsankar.stats: Permission denied > > Dec 16 19:18:34 mx1 dspam[20346]: Unable to create > directory: /var/dspam/data: Permission denied > > Dec 16 19:18:34 mx1 sm-mta[4842]: kBH1IXA2030713: > to="|/usr/local/bin/dspam --user root --class=spam --source=error", > ctladdr=<[EMAIL PROTECTED]> (1/0), delay=00:00:01, xdelay=00:00:00, > mailer=prog, pri=33163, dsn=2.0.0, stat=Sent > > I had set the ownership of all files in /var/dspam to _dspam:_dspam > initially. But you don't have a directory /var/dspam/data? I got that one by just installing dspam (on -current, admittedly). After install, I have $ ls -laR /var/dspam/ total 12 drwxr-xr-x 3 _dspam _dspam 512 Dec 16 16:29 . drwxr-xr-x 26 root wheel 512 Dec 16 16:29 .. drwxr-xr-x 2 _dspam _dspam 512 Dec 16 16:29 data /var/dspam/data: total 8 drwxr-xr-x 2 _dspam _dspam 512 Dec 16 16:29 . drwxr-xr-x 3 _dspam _dspam 512 Dec 16 16:29 .. > After these errors, I tried various combinations of users and > groups (root:wheel, _dspam:wheel, smmsp:smmsp and also tried chmod 777. > I get the same errors regardless. > > Please let me know if you have any suggestions. Create /var/dspam/data and set the permissions as above. Do _NOT_, under any circumstance, try to solve this by running dspam as root. Yes, I mean you. Also, check mount options and such. If you still can't get it to work, please post the results of 'ls -laR /var/dspam'. Joachim