vbmail - sendmail not working with vBulletin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VanHalen
    New Member
    • Sep 2005
    • 1
    • 3.0.7

    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.
  • Boxy
    Senior Member
    • Oct 2002
    • 3139

    #2
    Thank you for sharing this

    Comment

    • hescominsoon
      Senior Member
      • Jan 2005
      • 235
      • 3.0.6

      #3
      Originally posted by VanHalen
      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

      • ErnestA
        Senior Member
        • Jan 2009
        • 133
        • 4.1.x

        #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:

        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...