Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CentOS Linode instance that I'm running as a LAMP stack. I'm also using Google Apps for email. I have my MX records pointing at google's servers and everything is working in terms of relaying my emails just fine.

However, sendmail on the box is not working correctly, which means that emails from PHP (wordpress) are not being delivered.

Looking at the local mail I can see these messages repeated in the logs -

   ----- Transcript of session follows -----
<my email addr>... Deferred: Connection refused by

I have no experience configuring sendmail - can anyone tell me where to start in working out this issue? I've done a lot of googling but to no avail.

share|improve this question
Perhaps the title should be edited to WordPress w/ Google Apps... to offer more relevancy, as this isn't only tied to Linode. – gekkz Feb 13 '10 at 11:13
@Alex see… for configuring Sendmail to relay via GMail. – user186340 Mar 12 '15 at 20:27
up vote 3 down vote accepted

You will probably want to use this WordPress addon:

It allows WP to send e-mail through smtp rather than the PHP mail() function.

SMTP Host:

SMTP Port: either 465 with SSL encryption or 587 with TLS Encryption

SSL Authentication: Yes


Password: ;)

share|improve this answer
Thanks that did the trick - I've since found that mail relay is only available if you are using the paid version of Google Apps, so I was never going to get it to word the way I expected anyhow :) – Richard Nichols Feb 13 '10 at 10:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.