Send-only solution for multiple domains
The simplest solution for one domain seems to be to use Google Apps for pretty much everything, and install a send-only MTA on the app server. However, all of the guides I've seen for this only apply to single-domain servers. What do I do if I want each app to be able to send email from its own domain?
(In case it matters, I'm using Ubuntu 10.10 and my apps are Rails 3…I'm also using Redmine, which requires Rails 2)
4 Replies
I don't know how Rails would be set up to send outgoing mail, but I'd assume there's some application-specific default for the From: address.
@hoopycat:
As long as the e-mail is coming from inside the system, exim (and other MTAs) don't care what address is used by the sender. So – unless you're relaying outgoing mail through Google Apps instead of sending it directly – the MTA configuration is the same.
I don't know how Rails would be set up to send outgoing mail, but I'd assume there's some application-specific default for the From: address.
Interesting…Rails does allow you to use an arbitrary From: address, so that should work. Maybe I should have tried this before posting…
Will I run into any issues with spam filters due to the fact that reverse DNS won't necessarily resolve to the right thing on my outgoing messages? I think that's what I was really worried about.
@adam:
Will I run into any issues with spam filters due to the fact that reverse DNS won't necessarily resolve to the right thing on my outgoing messages?
It is not important for the DNS of your mailserver to match the From address of the email that is sends. It is extremely common for these to be mismatched, for example when google sends mail for your domain.
What IS important is that your server has a reverse DNS entry. Less important, but still maybe checked by some systems is that the reverse DNS matches the forward DNS and the name the mailserver announces itself as.
If there are SPF records for the domains you are sending for, make sure they include (through some mechanism) the IP address of your server.
I haven't bothered with SPF records, but it doesn't seem that difficult, so if that's all I need to do, consider this question answered!