192.168.1.124 ss
gw, dns
192.168.1.254
поломалась почта после обновления
Oct 9 11:42:03 localhost sendmail[3080]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied
–
First you have to check if permission are correct. Here is the permission below in my system
# ls -l /usr/sbin/sendmail.sendmail -r-xr-sr-x root smmsp /usr/sbin/sendmail.sendmail
# ls -l /var/spool/clientmqueue drwxrwx— smmsp smmsp /var/spool/clientmqueue
If your permissions or ownership is wrong then change it using chown and chmod.
If the above is right then disable selinux or if you want selinux enabled use chcon to set the correct selinux context.
Selinux may cause the issue, to verify run:
getsebool -a | grep mail
If it displays as bellow it is selinux:
allow_postfix_local_write_mail_spool –> off
You may disabled it, but if you want to keep it (and you should as it provides an extra layer of security) you should do something else:
setsebool -P httpd_can_sendmail on
This will allow the httpd to send emails, as when you use php mail().
И починилась
Hate to necro this, but none of the solutions here worked for me. I know very little about SELinux, but I ended up discovering the problem with this (on CentOS 6):
getsebool httpd_can_sendmail
Which told me it's disabled. Fixed with
setsebool httpd_can_sendmail 1
Инструменты страницы
