Announcement

Collapse
No announcement yet.

vbmail - sendmail not working with vBulletin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vbmail - sendmail not working with vBulletin

    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.

  • #2
    Thank you for sharing this

    Comment


    • #3
      Originally posted by VanHalen View Post
      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.
      it's not SElinux that needs to mature but how things are coded..

      Comment


      • #4
        Neither of these statements are accurate. PHP mail is doing what it's supposed to do and so is SELinux. SELinux will not assume it's automatically OK to allow PHP to send mail until you explicitly tell it that you are OK with allowing it.

        See the following thread to fix the problem:

        http://www.vbulletin.com/forum/showt...13#post1749813
        Help Desk / Asset Management Software
        K12Advantage.com. Collaboration in K-12 Education

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X