Advertisements

Postfix starting in Suse Linux but never really starts

Starting Postfix

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) done

But checking with ps I see that no processes are running. I check /var/log/mail and see that a file is with the wrong permission

root@suse11sp2:~ # tail /var/log/mail
Jan 31 17:56:35 suse11sp2 postfix/postqueue[22058]: warning: Mail system is down — accessing queue directly
Jan 31 17:58:10 suse11sp2 postfix/postqueue[22556]: warning: Mail system is down — accessing queue directly
Jan 31 17:58:12 suse11sp2 postfix/postqueue[22567]: warning: Mail system is down — accessing queue directly
Jan 31 17:59:47 suse11sp2 postfix/postqueue[22941]: warning: Mail system is down — accessing queue directly
Jan 31 18:00:12 suse11sp2 postfix/postqueue[23245]: warning: Mail system is down — accessing queue directly
Jan 31 18:00:15 suse11sp2 postfix/postqueue[23257]: warning: Mail system is down — accessing queue directly
Jan 31 16:00:32 suse11sp2 postfix/postfix-script[23399]: warning: not owned by postfix: /var/lib/postfix/./master.lock
Jan 31 16:00:32 suse11sp2 postfix/postfix-script[23415]: starting the Postfix mail system
Jan 31 16:00:32 suse11sp2 postfix/master[23419]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
Jan 31 18:01:35 suse11sp2 postfix/postqueue[23847]: fatal: Cannot flush mail queue – mail system is down

Change the permission

root@suse11sp2:~ # ls -lR /var/lib/postfix
/var/lib/postfix:
total 4
-rw——- 1 root admin 33 Feb 28 2013 master.lock

root@suse11sp2:~ # chown postfix:postfix /var/lib/postfix/master.lock

And start Postfix

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) done

Advertisements
%d bloggers like this: