FYI - Thought this might be helpful for others trying to get sendmail to work with vBulletin on Fedora Linux.
Ran - Diagnostics --> Email:
Pertinent PHP Settings
SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i
Results
The mailing function returned an error while trying to send the mail. Check your mail server to ensure it is configured correctly to allow PHP to send mail from it. You should also check your mail server's error log for more diagnostic information.
Verified the following
- php.ini file setup correctly for mail
- Nothing logged to the /var/log/maillog
- Following in the /var/log/message file:
Sep 7 10:51:31 forum kernel: audit(1126104691.457:0): avc: denied { read } for pid=4578 exe=/usr/sbin/httpd name=sh dev=dm-0 ino=768553 scontext=root:system_r:httpd_t tcontext=system_ubject_r:bin_t tclass=lnk_file
Proceedure to fix
The above error in the message log is caused by the SELinux http://www.nsa.gov/selinux/ features being turned on which is perventing the httpd from accessing sendmail.
You can run the 'system-config-securitylevel' [Fedora] program from the Linux GUI and either 'Disable' SELinux [reboot required] or turn off 'Enforcing' which will still log the activity but not enforce it.
As suggested in other posts, disabling SELinux is your best bet until it matures.
Ran - Diagnostics --> Email:
Pertinent PHP Settings
SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i
Results
The mailing function returned an error while trying to send the mail. Check your mail server to ensure it is configured correctly to allow PHP to send mail from it. You should also check your mail server's error log for more diagnostic information.
Verified the following
- php.ini file setup correctly for mail
- Nothing logged to the /var/log/maillog
- Following in the /var/log/message file:
Sep 7 10:51:31 forum kernel: audit(1126104691.457:0): avc: denied { read } for pid=4578 exe=/usr/sbin/httpd name=sh dev=dm-0 ino=768553 scontext=root:system_r:httpd_t tcontext=system_ubject_r:bin_t tclass=lnk_file
Proceedure to fix
The above error in the message log is caused by the SELinux http://www.nsa.gov/selinux/ features being turned on which is perventing the httpd from accessing sendmail.
You can run the 'system-config-securitylevel' [Fedora] program from the Linux GUI and either 'Disable' SELinux [reboot required] or turn off 'Enforcing' which will still log the activity but not enforce it.
As suggested in other posts, disabling SELinux is your best bet until it matures.
Comment