[Dspam-user] Possible Permissions issue when training dspam

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Dspam-user] Possible Permissions issue when training dspam

David Mehler
Hello,

I'm running dspam 3.10 on an fc20 machine with postfix and dovecot.

The order is postfix gets the mail, sends it to dspam, which checks
it, and then sends it to dovecot for delivery. My software versions
are:

root@xxx:~#rpm -q postfix

postfix-2.10.3-1.fc20.i686

root@xxx:~#rpm -q dovecot

dovecot-2.2.10-1.fc20.i686

root@xxx:~#rpm -q dspam

dspam-3.10.2-11.fc20.i686

I'm getting the below error. Googling seems to suggest a permissions
problem, I'm not seeing how that's possible, and the directory dspam
wants to create are already there, so permission denied is
understandable given that it's trying to create something already in
place.

Feb 18 10:32:15 xxx postfix/smtpd[15494]: connect from
xxx.example.com[127.0.0.1]
Feb 18 10:32:16 xxx postfix/smtpd[15494]: 01F0C1B56A:
client=xxx.example.com[127.0.0.1]
Feb 18 10:32:16 xxx postfix/cleanup[15484]: 01F0C1B56A:
message-id=<[hidden email]>
Feb 18 10:32:16 xxx opendkim[2966]: 01F0C1B56A: DKIM-Signature field
added (s=default, d=example.com)
Feb 18 10:32:16 xxx postfix/qmgr[3190]: 01F0C1B56A:
from=<[hidden email]>, size=6561, nrcpt=1 (queue active)
Feb 18 10:32:16 xxx postfix/smtpd[15494]: disconnect from
xxx.example.com[127.0.0.1]
Feb 18 10:32:16 xxx postfix/lmtp[15485]: 710FA1B567:
to=<[hidden email]>,
relay=mail.example.com[/var/run/dspam/dspam.sock], delay=0.69,
delays=0.11/0.01/0/0.56, dsn=2.6.0, status=sent (250 2.6.0
<[hidden email]> Message accepted for delivery)
Feb 18 10:32:16 xxx postfix/qmgr[3190]: 710FA1B567: removed
Feb 18 10:32:16 xxx dspam[15497]: Unable to create directory:
/var/lib/dspam/data: Permission denied
Feb 18 10:32:16 xxx dspam[15497]: Unable to open file for writing:
/var/lib/dspam/data/s/p/[hidden email]/[hidden email]:
Permission denied
Feb 18 10:32:16 xxx dspam[15497]: Unable to create directory:
/var/lib/dspam/data: Permission denied
Feb 18 10:32:16 xxx dspam[15497]: Unable to open file for reading:
/var/lib/dspam/txt/msgtag.spam: Permission denied
Feb 18 10:32:16 xxx dspam[15497]: process_message returned error -3.
dropping message.
Feb 18 10:32:16 xxx postfix/pipe[15496]: 01F0C1B56A:
to=<[hidden email]>, relay=dspam-spam, delay=0.29,
delays=0.16/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via
dspam-spam service)
Feb 18 10:32:16 xxx postfix/qmgr[3190]: 01F0C1B56A: removed

Here's permissions on /var/lib/dspam:
root@xxx:~#ls -la /var/lib/dspam
total 1228
drwxrwx---  6 dspam dspam    4096 Feb 18 09:38 ./
drwxr-xr-x 31 root  root     4096 Feb 18 09:25 ../
drwxrwx---  8 dspam dspam    4096 Aug  3  2013 data/
-rw-r--r--  1 dspam dspam      55 Feb 13 09:57 group
drwxrwx---  2 dspam dspam    4096 Aug  3  2013 opt-in/
drwxrwx---  2 dspam dspam    4096 Aug  3  2013 opt-out/
-rw-rw----  1 dspam dspam 1224632 Feb 18 10:32 system.log
drwxr-xr-x  2 dspam dspam    4096 Feb 17 12:51 txt/
root@xxx:~#id dspam
uid=996(dspam) gid=995(dspam) groups=995(dspam),12(mail),5000(vmail)

I would appreciate any suggestions as I'd like to get this fixed so I
can train my dspam. If my postfix/dovecot/dspam configuration would
help i'll provide them.

Suggestions welcome.

Thanks.
Dave.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspam-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Dspam-user] Possible Permissions issue when training dspam

Nathanael D. Noblet
On Wed, 2014-02-19 at 00:20 -0500, David Mehler wrote:
> Hello,
>
Hello

> Feb 18 10:32:16 xxx dspam[15497]: Unable to create directory:
> /var/lib/dspam/data: Permission denied
> Feb 18 10:32:16 xxx dspam[15497]: Unable to open file for writing:
> /var/lib/dspam/data/s/p/[hidden email]/[hidden email]:
> Permission denied
> Feb 18 10:32:16 xxx dspam[15497]: Unable to create directory:
> /var/lib/dspam/data: Permission denied
> Feb 18 10:32:16 xxx dspam[15497]: Unable to open file for reading:
> /var/lib/dspam/txt/msgtag.spam: Permission denied

Questions:

1) Is SELINUX Enforcing, if so do you have any avc denial messages?
2) What are the directory permissions/ownership of /var/lib/dspam
and /var/lib/dspam/data?
3) what does rpm -V dspam return?




------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspam-user
Loading...