Not receiving e-mail notifications | OS: Debian


#1

OS: Debian
Kernel: Linux MHHMON 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux

I haven’t been able to get the e-mail notifications to work properly. If I check the /var/log/mail.err file I’m seeing these entries:

F*]eb 12 14:49:23 MHHMON postfix/sendmail[4195]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 14:49:33 MHHMON postfix/sendmail[4255]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 14:50:13 MHHMON postfix/sendmail[4421]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 14:50:13 MHHMON postfix/sendmail[4426]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 14:56:36 MHHMON postfix/sendmail[5355]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 14:56:36 MHHMON postfix/sendmail[5356]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 15:15:21 MHHMON postfix/sendmail[8562]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 15:15:21 MHHMON postfix/sendmail[8564]: fatal: chdir /var/spool/postfix: Permission denied
Feb 12 15:43:24 MHHMON postfix/master[2052]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied

Then I looked at the permissions:
/var/spool/postfix
drwxrwxrwx 20 postfix root 4096 2010-01-06 00:53 postfix

Server:/var/mail# ls -l /var/lib/postfix
-rw------- 1 postfix postfix 17 2010-01-06 00:53 master.lock

MHHMON:/var/mail#

I’m currently using the ‘command_line /usr/bin/mailx’ as a means to send mail.

I can do a SMTP test to my mailserver fine via telnet and send e-mail messages.

Any Ideas? I’m sure its a permissions problem but I’m not sure what I’m missing here.


#2

Please direct these questions to Postfix support channels.

Firstly local delivery methods(sendmail/mailx/ect) rarely connect to inet sockets. For some servers(I’m thinking sendmail?) they will connect to a daemon via a unix socket, however in this case it looks like Postfix is attempting to deliver directly into the mail spool, I believe it’s one of the sub folders… incoming is one folder for sure, but I feel there is a local or mailq folder specifically for local delivery.

In any case the permissions may be too open as well as two closed, only a Postfix guru would know what you needed to do for sure.


#3

ADMIN:

Please move this post to the Postfix support forum, my apologies!