0

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

Shane Grant
  • 305
  • 1
  • 3
  • 12
  • @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 06 '11 at 13:06
  • 2
    @symcbean Yes, sendmail has a (the!) command line mail client and can be configured as a SMTP relay. – mailq Oct 06 '11 at 13:19

2 Answers2

2

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.

Teddy
  • 5,204
  • 1
  • 23
  • 27
0

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.

symcbean
  • 21,009
  • 1
  • 31
  • 52