How can I use Google Apps for users, but vps for apps?

I currently have Google Apps set up for my email needs. Unfortunately, it doesn't seem like my web apps can send emails. I had to manually configure Project Pier to send email via Google, and my Drupal installs don't seem to send mail at all.

So, how do I set my VPS to make apps send emails through it, and still let my Google Apps email work?

Thanks!

Oh, I'm running on Ubuntu 10.04. And I have postfix installed according to: http://library.linode.com/email/postfix … 0.04-lucid">http://library.linode.com/email/postfix/gateway-ubuntu-10.04-lucid Though it's been a while since I configured it and I might have missed something.

5 Replies

This is easy. Linode Library has a exim-based solution, you need a "send only" mail server.

You can also install postfix and set it to loopback-only, I believe. I use exim on my server, via ppardis.

@Talman:

This is easy. Linode Library has a exim-based solution, you need a "send only" mail server.

You can also install postfix and set it to loopback-only, I believe. I use exim on my server, via ppardis.
As in this? http://library.linode.com/email/exim/se … 0.04-lucid">http://library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid

Postfix should work fine, automatically with Drupal. And you definitely need to make sure you have a working MTA for all sorts of server admin tasks.

But you might also consider using the PHPMailer module for Drupal.http://drupal.org/project/phpmailer PHPMailer is a separate PHP library which will let Drupal connect securely to your gmail account and use gmail's servers to send your mail.

Advantages include saving copies of sent messages on Google's servers, use of both SPF and (since last week) DKIM for anti-spam so your emails don't get flagged as spam, and your emails look like they come from your domain and not the RDNS or hostname of the server.

Major disadvantage is that Google only allows 500 emails per day.

You can also set up Postfix to send mail through Google (or another relay of your choosing) using client SASL. On Ubuntu, I think Postfix is already linked with the Cyrus library so it should just be a matter of setting up the configuration. Searching for gmail and postfix will get you several articles.

Thanks for the suggestions! This http://library.linode.com/email/exim/se … 0.04-lucid">http://library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid worked great for me. I'll the keep the other ideas in mind for if they are needed in the future.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct