Sending local email to Google Apps

Hey there, quick question.

My domain's MAIL record points to Google Apps, and it works fine. The problem is, emails I send from the server (from php) to myself never get to me (my email at that domain). I guess this is because exim4 doesn't know that the mail should be redirected to googleapps? Or something?

For now, I'm sending it to a different email, but i'd like to get it going to the right one, for organizational reasons. Any ideas?

Thanks in advance.

4 Replies

Indeed! I got it working on my server using the following guide:

http://nanotux.com/blog/the-ultimate-server/4/#l-mail

That's assuming both Ubuntu and Lighttpd, but I'm sure it'll be pretty easy to adapt it to any distribution and set up.

The easiest way would be to just add an entry to exim's hubbed_host file. This will cause exim to forward any email for that domain to a different server.

For example:

domain.com: ASPMX.L.GOOGLE.COM

Thanks jsr, that worked.

For anyone having the same trouble, you don't want this file:

/etc/exim4/conf.d/router/150exim4-confighubbed_hosts

I had to make this file:

/etc/exim4/hubbed_hosts

This is all with exim4 on Ubuntu 8.10.

And then it worked perfectly. Thanks!

Almost 2 weeks struggling with this issue and finally a solution!

(exim4 on Ubuntu 10.04 LTS)

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