How do I target a different mail server depending on domain with exim? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, ubuntu, email, exim, .
I have an Ubuntu VPS/slice at Slicehost. Right now I use Exim (Exim4) as my mechanism to send email. I don’t receive email on my slice; I only send email (for example, if someone leaves a comment on my blog, an email is sent to me telling me so).
I have a /etc/exim4/passwd.client file that has my credential information for sending the email, of the form:
Does anyone know a way how I can have multiple target mail servers depending on the website/domain visited? For example, I have one target mail server for when someone leaves a comment on my blog and another when sending out an order confirmation to someone.
The From address isn’t controlled by exim. The software submitting the message, blog or ecommerce site, has to set it.
As David said, I’m not sure if Google checks the from header, so you may have to add both from address into google first (settings -> account -> add email)