Kyle D. Skrinak

GoDaddy, CentOS Virtual Server & Drupal Email Solved

by Kyle Skrinak on Mar.11, 2010, under Technology

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.

No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!