Results 1 to 8 of 8
Thread: Problems with Postfix
-
07-06-2007, 11:13 AM #1
Junior Guru Wannabe
- Join Date
- Mar 2004
- Posts
- 34
Problems with Postfix
I tried following the directions about 'The Perfect Setup' for SuSE 10.1 for my email server and finally got it to work, but now I am having issues with error messages!!
In my /var/log/mail file I get tons of:
Jul 6 18:15:17 <server> postfix/qmgr[8226]: warning: connect to transport error: Operation not permitted
and in my /var/log/messages file I get tons of:
Jul 6 18:19:17 <server> kernel: audit(1183738757.049:122): REJECTING w access to /var/spool/postfix/private/error (qmgr(8226) profile /usr/lib/postfix
/qmgr active /usr/lib/postfix/qmgr)
I tried looking around on Google for some help, but I can't find anyone having issues with the 'error' part of postfix.
Anyone that can offer some advice would be greatly appreciated!
Thanks,
Brian
-
07-06-2007, 12:13 PM #2
Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
Seems likely to be an ownership/permissions issue. Are you running postfix as a specific user? (eg: postfix). Who owns the directory (and those below it) /var/spool/postfix ?
“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
07-06-2007, 01:18 PM #3
Junior Guru Wannabe
- Join Date
- Mar 2004
- Posts
- 34
The user is postfix in group postfix.
I tried:
chown -R postfix private
chgrp -R postfix private
And I get:
Jul 6 20:22:11 <server> kernel: audit(1183746131.482:251): REJECTING access to capability 'dac_override' (postqueue(12006) profile /usr/sbin/postqueue
active /usr/sbin/postqueue)
Jul 6 20:22:11 <server> kernel:
Jul 6 20:22:11 <server> kernel: audit(1183746131.482:252): REJECTING access to capability 'dac_read_search' (postqueue(12006) profile /usr/sbin/postqu
eue active /usr/sbin/postqueue)
Jul 6 20:22:11 <server> kernel:
Jul 6 20:22:11 <server> kernel: audit(1183746131.578:253): REJECTING w access to /var/spool/postfix/private/error (qmgr(12002) profile /usr/lib/postfi
x/qmgr active /usr/lib/postfix/qmgr)
-
07-06-2007, 01:53 PM #4
Junior Guru Wannabe
- Join Date
- Mar 2004
- Posts
- 34
Interesting!
I can get it to work by stopping AppArmor (not even sure what that is!!).
rcapparmor stop - restart postfix, and no more error messages!
-
07-06-2007, 02:28 PM #5
Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
AppArmor - not familiar with it - ought to permit the postfix user to access files it owns.
Perhaps you should double check that Postfix is indeed running as the postfix user. Try this:
% ps axu | grep qmgr
If postfix is in the first column, then it is indeed running as that user. If not, there's something to follow up on.Code:postfix 97645 0.0 0.1 3804 1612 ?? S 28Jun07 0:06.19 qmgr -l -t fifo -u
“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
07-06-2007, 02:30 PM #6
Junior Guru Wannabe
- Join Date
- Mar 2004
- Posts
- 34
postfix 14249 0.0 0.1 24080 2256 ? S 20:54 0:00 qmgr -l -t fifo -u
It is running with the postfix user...
I found another thread on a website that suggested the AppArmor fix. It seems it is something that comes with SuSE.
-
07-06-2007, 02:37 PM #7
Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
Perhaps its a localized permissions issue then. Looking at one of the error messages you posted, we could start looking at the private/error dir and related. What are the file permissions and ownership of /var/spool/private/ and below? Mine:
The user postfix belongs to both postfix and mail groups on my systems.Code:... srw-rw-rw- 1 postfix wheel 0 Jun 25 06:52 discard srw-rw-rw- 1 postfix wheel 0 Jun 25 06:52 error srw-rw-rw- 1 postfix wheel 0 Jun 25 06:52 ifmail srw-rw-rw- 1 postfix wheel 0 Jun 25 06:52 lmtp srw-rw-rw- 1 postfix wheel 0 Jun 25 06:52 local ...
If that isn't it, then I guess you'll have to chase down the apparmour folks.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
07-06-2007, 03:09 PM #8
Junior Guru Wannabe
- Join Date
- Mar 2004
- Posts
- 34
All of mine are:
srw-rw-rw- 1 postfix postfix 0 2007-07-06 20:54 error
*shrug* - I don't pretend to understand sometimes


Reply With Quote




