Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Possible Duplicate:
Recommended SMTP Relay Service

I am using a VPS server at Linode to host a few Drupal websites.

For web I am using Nginx, and all email is hosted with Google Apps.

I need to be able to allow Drupal to send out emails, but is installing postfix the best method, or can I get away with something smaller since all I need on the server is outgoing email?

Thank you

share|improve this question

marked as duplicate by mailq, John Gardeniers, Smudge, pauska, ThatGraemeGuy Oct 6 '11 at 13:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@mailq: no. Out of the box Drupal/PHP on Linux requires a command line mail client - a relay service is not the same thing. – symcbean Oct 6 '11 at 13:06
@symcbean Yes, sendmail has a (the!) command line mail client and can be configured as a SMTP relay. – mailq Oct 6 '11 at 13:19

I'd go with sSMTP; "extremely simple MTA to get mail off the system to a mail hub". Surely Google Apps has an SMTP gateway.

share|improve this answer
Sorry for the slow response, but I will check this solution out today. – Shane Grant Oct 6 '11 at 15:57

As per my comment elsewhere, by default, Drupal provides a wrapper around php's mail() function. On non-MSWindows boxes the PHP mail() system works by invoking a program on the local system to send the email. In the case of MSWindows, you simply tell PHP where there is an SMTP server to use (but it does not provide for sSMTP/startTLS/authentication).

So an obvious solution is to install a simple MTA which provides a CLI client. nullmailer is a fairly obvious choice.

Alternatively you can configure Drupal to use an SMTP handler instead of 'mail()'. Drupal now offer such a module based on phpmailer.

But if your connection to the SMTP relay is not VERY reliable, or if you'll never need to perform anything more complex to your emails (e.g. tying to SPF, adding signatures, metering) then a proper queuing MTA would be the way to go.

share|improve this answer

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