RE: [exim] smtp_active_hostname Use

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mark Smith
Datum:  
To: exim-users
Betreff: RE: [exim] smtp_active_hostname Use

> -----Original Message-----
> From: exim-users-bounces@???
> [mailto:exim-users-bounces@exim.org] On Behalf Of edwarner99@???
> Sent: 04 October 2005 14:57
> To: exim-users@???
> Subject: Re: [exim] smtp_active_hostname Use
>
> Ok I think I understand, thanks.
>
> Just to clarify; if my server host is vps.mydomian.com and I
> want mail to be sent from mail.mydomain.com and
> mail.myotherdomain.com, how would I use the example I gave?
> I'm really a newbie at this.
>
> Each domain has their own name server and IP if that helps.
> Thank you.
>
> Ed Warner
>


In the general section of exim.conf, before the ACLs start, put this:

  smtp_active_hostname = ${if
eq{$interface_address}{first.domain's.ip.address}\
    {first.domain.com}{second.domain.com}}


Then find the smtp transport near the bottom of exim.conf and change it so
it looks like this:

remote_smtp:
  driver = smtp
  helo_data = $smtp_active_hostname
  interface = ${if eq{$sender_address_domain}{first.domain.com}\
    {first.domain's.ip.address}{second.domain's.ip.address}}


- Mark