Re: [exim] Virtual domains

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: 'Exim-users'
Subject: Re: [exim] Virtual domains
R.Beci wrote:

>    Please send me configuration examples for virtal domains. My Exim 


see below. replace dbm with lsearch if you prefer a plain text file.
Syntax is:

*@yourdomain: user1
user2@yourdomain: user2
...

and don't forget to make sure your domains are in local_domains.


# router

virtualuser:
driver = accept
condition =
${lookup{$local_part@$domain}dbm*@{/etc/exim/usermap.db}{yes}}
transport = maildrop_pipe

postmaster:
driver = redirect
local_parts = postmaster : abuse : hostmaster
data = postmaster@???
cannot_route_message = Unknown user

# transport

maildrop_pipe:
driver = pipe
command = "/usr/bin/maildrop -d
${lookup{$local_part@$domain}dbm*@{/etc/exim/usermap.db}}"
return_path_add
envelope_to_add
delivery_date_add
check_string = "From "
escape_string = ">From "
group = mail