> So basically, mydomain.com is the main domain name,
> anotherdomain.com is just a virtual domain. So to receive mail for
> joe@??? I would need an extra configuration step in
> the first so that anotherdomain.com knows it can deliver to the
> local user "joe". I don't want to happen this automatically.
using virtual_aliases I maintain separate domains each with their own
aliases for users in that domain
maintain a file /etc/exim/domains/virtual_aliases merely a list of the
virutual domains
one
two
three
then each domain has an alias file
/etc/exim/domains/<domain.name>/aliases
jzaw: jzawone
bill: billone
freda: fredaone
jzaw: jzawtwo
terry: terrytwo
bill: billthree
freda: fredathree
so mail is delivered
jzaw@one => jzawone/Maildir
jzaw@two => jzawtwo/Maildir
mail delivered to ~/Maildir for each user
jzawthree in domain three does not exist so mail to jzaw@three gets
bounce/rejected/dropped whatever
but doesn't get delivered to any other Maildir and not to a local user
either cos there is no local user jzaw
#############################################
# ROUTERS CONFIGURATION #
# Specifies how addresses are handled #
#############################################
# THE ORDER IN WHICH THE ROUTERS ARE DEFINED IS IMPORTANT! #
# An address is passed to each router in turn until it is accepted. #
#################################################
begin routers
# 192.168.0.0/16 NOT added cos thats my own lan
# 64.94.110.0/24 rejected cos of VeriSign's bogus wildcard setting in
DNS grrr
dnslookup:
driver = dnslookup
domains = ! +local_domains
self = fail
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 172.16.0.0/12 :
10.0.0.0/8 : 169.254.0.0/16 : 64.94.110.0/24
no_more
###############
virtual_alias:
driver = redirect
allow_defer
allow_fail
data =
${lookup{$local_part}lsearch{/etc/exim/domains/${domain}/aliases}}
domains = lsearch;/etc/exim/domains/virtual_aliases
qualify_preserve_domain
retry_use_local_part
####################
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
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
# This router matches local user mailboxes.
localuser:
driver = accept
check_local_user
transport = local_delivery