I discovered through the silent scream of no updates from my drupal installation that drupal’s mail wasn’t working. I fired up google and found this excellent post that gets you nearly there. What’s missing, of course, is the enabling binary called “sendmail.”

Here’s how to enable a GoDaddy CentOS Virtual Server’s sendmail so that Drupal can send email:

  • Confirm whether senmail is working
    • service --status-all | grep sendmail
  • Install sendmail and sendmail-cf
    • yum install 'sendmail sendmail-cf'
  • Edit with your favorite editor (vim, no doubt):
    • vim /etc/mail/sendmail.mc
    • Search for ‘SMART_HOST’ and insert the line below just below it. Comment it for clarity’s sake.
    • define(`SMART_HOST',`k2smtpout.secureserver.net')dnl
    • Save and close file.
  • Run this command:
    • m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
  • Finally, start or restart your sendmail service:
    • service start sendmail

That did it for me.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Performance Optimization WordPress Plugins by W3 EDGE