postfix permissions error since installing spamassassin

General support questions
navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/25 14:57:58

Hi There,
I am pretty inexperienced with linux and centos as a server software. I have had centOS 6 running on my VPS for a few months just fine but wanted to add a spam filter to my email so I followed a tutorial here http://tinyurl.com/pj2w9pe and since then I can neither receive or send any email.
postfix check gives me nothing (im not sure how to access my mail log ?) but I have recied fail notifications in my inbox which contains information like...
This is the mail system at host mail.myvps.net.

####################################################################
# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
####################################################################

Your message could not be delivered for more than 4 hour(s).
It will be retried until it is 5 day(s) old.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<me@myemail.co.uk>: Command time limit exceeded: "/usr/bin/spamc".
Command output: postdrop: warning: mail_queue_enter: create file
maildrop/286098.3135: Permission denied postdrop: warning:
mail_queue_enter: create file maildrop/287027.3135: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/290967.3135:
Permission denied postdrop: warning: mail_queue_enter: create file
maildrop/291369.3135: Permission denied postdrop: warning:
mail_queue_enter: create file maildrop/291757.3135: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/292407.3135:
Permission denied postdrop: warning: mail_queue_enter: create file
maildrop/292744.3135: Permission denied postdrop: warning:
mail_queue_enter: create file maildrop/293098.3135: Permission denied

<truncated it goes on some>

Reporting-MTA: dns; mail.vps140253.ovh.net
X-Postfix-Queue-ID: ECDDEC20FDF
X-Postfix-Sender: rfc822; me@anemail.co.uk
Arrival-Date: Wed, 24 Jun 2015 17:17:58 +0200 (CEST)

Final-Recipient: rfc822; me@myemail.co.uk
Original-Recipient: rfc822;me@myemail.co.uk
Action: delayed
Status: 4.3.0
Diagnostic-Code: x-unix; postdrop: warning: mail_queue_enter: create file
maildrop/286098.3135: Permission denied postdrop: warning:
mail_queue_enter: create file maildrop/287027.3135: Permission denied
postdrop: warning: mail_queue_enter: create file maildrop/290967.3135:
Permission denied postdrop: warning: mail_queue_enter: create file
maildrop/291369.3135: Permission denied...

and so on
I'm guessing it's screwed up my permissions somehow but i'm unclear how to fix this.
Any ideas ?

Cheers
Jim

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: postfix permissions error since installing spamassassin

Post by TrevorH » 2015/06/25 15:34:53

What are the permissions on /var/spool/postfix/maildrop? What user does your spamc process run as and is it a member of the group that owns that directory?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/25 15:48:42

Not sure how to find the permissions of maildrop or the info of spamc :oops: pretty vacuous on my use of ssh and commands :(

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/25 15:52:04

maildrop shows as
drwxr-xr-x 2 postfix postdrop 4.0K Jun 25 09:09 maildrop

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/26 09:54:23

I've tried postfix set-permissions but it's had no effect.
and as postfix check shows no errors maybe it's not permissions?

I'm starting to get a large mail queue bulding up..
If I tried reinstalling would it delete all queued emails ?

Cheers
Jim

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/26 10:50:00

Oh and the spamc reports as..

-rwxr-xr-x 1 root root 29572 Dec 5 2013 spamassassin
-rwxr-xr-x 1 root root 45200 Dec 5 2013 spamc
-rwxr-xr-x 1 root root 108240 Dec 5 2013 spamd

To answer an earlier question

JIm

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/26 14:27:13

haha ok back again but to report that I have fixed the issues :)
when I # postfix set-permissions
I always got an error
chown: cannot access `/usr/share/doc/postfix-2.2.2/README_FILES': No such file or directory
I figured, well it's only a readme file and that all the permissions elsewhere were set correctly as no other error was reported.
It would seem that's not the case.

#locate README_FILES showed me this
/usr/share/doc/postfix-2.6.6/README_FILES
It seems an upgrade perhaps has left things a bit screwy
# nano /etc/postfix/main.cf
showed me the readme_directory needed changing to reflect the actual location
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
all sorted now :)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: postfix permissions error since installing spamassassin

Post by gerald_clark » 2015/06/26 14:44:39

What control panel are you using on your VPS?

navcrowds
Posts: 11
Joined: 2015/06/25 10:26:10

Re: postfix permissions error since installing spamassassin

Post by navcrowds » 2015/06/26 15:14:57

Zpanel, although I have been looking around at others today. Froxlor looks interesting.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: postfix permissions error since installing spamassassin

Post by gerald_clark » 2015/06/26 15:23:57

The problem with panels is that they replace core CentOS programs with their own.
Then normal CentOS updates and advice further break the system.
People running panels need to get their support from the panel provider.

Post Reply