[Exim] Running Virtual Hosts on Exim 4

Top Page
Delete this message
Reply to this message
Author: Schalk Erasmus
Date:  
To: exim-users
Subject: [Exim] Running Virtual Hosts on Exim 4
Hi,

Could someone please let me know how-to configure Virtual Hosts on Exim 4?

On Exim 3, the following configuration apply:

***********************************************
ROUTERS CONFIGURATION - EXIM 3
***********************************************

to_other_servers:
driver = domainlist
transport = remote_smtp
route_file = /usr/local/etc/exim/relay.domains
search_type = lsearch

lookuphost:
driver = lookuphost
transport = remote_smtp
ignore_target_hosts = 127.0.0.0/8 : 192.168.0.0/16 : 172.16.0.0/12 :
66.218.71.0/24


Will this work on Exim 4, since there are many more options:

***********************************************
ROUTERS CONFIGURATION - EXIM 4
***********************************************

begin routers

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = mailnull
group = mail
file_transport = address_file
pipe_transport = address_pipe

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
# allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
condition = ${if exists{$home/.forward} {yes} {no} }

localuser:
driver = accept
check_local_user
transport = local_delivery


Can I just replace, or does it require some of the above?


Thanx
Schalk