Hi everyone, on a new installed efa5, Im getting this:
ec 5 12:25:07 efa02 postfix/master[183071]: daemon started -- version 3.5.25, configuration /etc/postfix
Dec 5 12:25:31 efa02 sendmail[183095]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/mqueue/): Permission denied
Dec 5 12:26:02 efa02 sendmail[183271]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/mqueue/): Permission denied
Dec 5 12:26:33 efa02 sendmail[183293]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/mqueue/): Permission denied
expected or needs to be fixed?
Edit:
I did ,
sudo chown -R postfix:postfix /var/spool/mqueue
sudo chmod 755 /var/spool/mqueue
but still getting this error
postfix chdir permission denied
- shawniverson
- Posts: 3777
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: postfix chdir permission denied
This could be MailWatch trying to monitor the queues, but I'm not sure why it would be trying to use sendmail for that. Does it only log when the MailWatch UI is open for about every 30 seconds?
Re: postfix chdir permission denied
Hi, indeed, only when MW UI open.
- shawniverson
- Posts: 3777
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: postfix chdir permission denied
I looked at the queue logic in MailWatch and can't figure out how you are getting this warning.
In /etc/MailScanner/MailScanner.conf, what is the value for the following:
MTA
Incoming Queue Dir
Outgoing Queue Dir
In /var/www/html/mailscanner/conf.php:
MS_CONFIG_DIR
In /etc/MailScanner/MailScanner.conf, what is the value for the following:
MTA
Incoming Queue Dir
Outgoing Queue Dir
In /var/www/html/mailscanner/conf.php:
MS_CONFIG_DIR
Re: postfix chdir permission denied
haven't change those,
Incoming Queue Dir = /var/spool/MailScanner/milterin
# Set location of outgoing mail queue.
# This can also be the filename of a ruleset.
Outgoing Queue Dir = /var/spool/MailScanner/milterout
// Paths
define('MAILWATCH_HOME', '/var/www/html/mailscanner');
define('MS_CONFIG_DIR', '/etc/MailScanner/');
define('MS_SHARE_DIR', '/usr/share/MailScanner/'); // Path for ConfigDefs.pl file
define('MS_LIB_DIR', '/usr/lib/MailScanner/'); // Path for sophos-wrapper file
define('MS_EXECUTABLE_PATH', '/usr/sbin/MailScanner');
define('IMAGES_DIR', '/images/'); // Both leading and trailing slash needed
define('SA_DIR', '/usr/bin/');
define('SA_RULES_DIR', '/etc/mail/spamassassin');
define('SA_PREFS', MS_CONFIG_DIR . 'spamassassin.conf'); // spam.assassin.prefs.conf in V4, spamassassin.conf in V5
define('TEMP_DIR', '/tmp/');
Incoming Queue Dir = /var/spool/MailScanner/milterin
# Set location of outgoing mail queue.
# This can also be the filename of a ruleset.
Outgoing Queue Dir = /var/spool/MailScanner/milterout
// Paths
define('MAILWATCH_HOME', '/var/www/html/mailscanner');
define('MS_CONFIG_DIR', '/etc/MailScanner/');
define('MS_SHARE_DIR', '/usr/share/MailScanner/'); // Path for ConfigDefs.pl file
define('MS_LIB_DIR', '/usr/lib/MailScanner/'); // Path for sophos-wrapper file
define('MS_EXECUTABLE_PATH', '/usr/sbin/MailScanner');
define('IMAGES_DIR', '/images/'); // Both leading and trailing slash needed
define('SA_DIR', '/usr/bin/');
define('SA_RULES_DIR', '/etc/mail/spamassassin');
define('SA_PREFS', MS_CONFIG_DIR . 'spamassassin.conf'); // spam.assassin.prefs.conf in V4, spamassassin.conf in V5
define('TEMP_DIR', '/tmp/');