Re: [Exim] Name based virtual hosts

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Richard Deighton
Cc: exim-users
Asunto: Re: [Exim] Name based virtual hosts
On Wed, 15 Mar 2000, Richard Deighton wrote:

> I've got multiple hosts pointing to the same IP address in my zone file e.g.
>
>    a.domain.com    192.168.1.1
>    b.domain.com    192.168.1.1
>    c.domain.com    192.168.1.1

>
> I want to provide rewrite rules for any mail for each of these domains to
> another email address; effectively providing an email forwarding service. Can
> I just specify these domains as local domains and then provide the rewrite
> rules in exim.conf? Will this be handled efficient by exim if I have a huge
> number of these domains?


Rewriting applies to all addresses, not just local ones. Local domain
setting is not relevant to rewriting.

A "forwarding service" per se does not necessarily involve rewriting. If
you just want to send mail addressed to a.domain.com to another.host.com
(or even to "the hosts for a.nother.domain.com") then you can do it by
setting up a domainlist router. No rewriting is involved. And if there
are lots of these, configure that router to use a lookup.

If you do want to rewrite a large number of domains, then the most
efficient way is to write a rewriting rule that uses a lookup:

*@* $local_part@${lookup{$domain}cdb{/some/file}{$value}fail} <flags>



-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.