Re: [exim] make exim work for 2 domains

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Magnus Holmgren
Data:  
Para: exim-users
Asunto: Re: [exim] make exim work for 2 domains
On Tuesday 13 June 2006 01:36, Kristine H took the opportunity to write:
> I have two domains, each with its corresponding IP on one server.
>
> I'm using a default Cpanel exim.conf setup.
> Right now only domain1.com sends and receives mail for both domains.
> I'm fine with the way the receiving works, but sending always puts domain1
> headers in the mail, even if I'm sending from domain2.com. And both
> domains authenticate as domain1.com in EHLO command, when I want domain2 to
> say EHLO domain2.com
>
> So far after searching various resources I can use interface and
> local_interfaces commands to make exim work correctly for domain1 OR for
> domain2. But not for both at the same time.
>
> How can I make exim put the correct headers for domains as it sends and how
> do I fix the EHLO ?
> Do I need to set up a router of some sort ? That's where I'm getting
> confused.


This is becoming a FAQ. What you can do is to use string expansion in the
interface and helo_data options of the smtp transport.

The problem is that it's not always possible to choose a domain unambigously.
For example, if several messages are queued for one remote host they will be
sent over the same connection even if they are associated with more than one
of your local domains.

For that reason it's probably better to use a "neutral" interface and hostname
to send from.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)