[exim] Virtual Domains

Top Page
Delete this message
Reply to this message
Author: Timur
Date:  
To: exim-users
Subject: [exim] Virtual Domains
Hello exim-users,

I try to setup my Exim 4.30 to handle several domains which are hosted
on my server. And I have several troubles. Please, let me know, what
is wrong. Here is my state:

1. Domains: domain1, domain2, domain3 - all of them are resolved via
DNS, and MX records for all of them are pointing to my mail server.

2. My users: user1, user2, user3,...,userNN

3. My basic domain is "domain1" and all my users have e-mails like:
userXX@domain1.

According the Exim's documentation I added a new router:

 my_domains:
    driver = accept
    domains = dsearch;/etc/mail/domains
    local_parts = lsearch;/etc/mail/domains/$domain
    transport = my_mailboxes


and new transport:

my_mailboxes:
    driver = appendfile
    file = /var/mail/$domain/$local_part
    user = mail


into my Exim configuration file. Each of my /etc/mail/domains/domainXX
files contains records like:
user1:         user1
user2:         user2
.
.
.
userNN:        userNN


But when I send messages to address userXX@domain1, the message is added
to the /var/mail/userXX file, and when I send a message to the same
user using other address userXX@domain2, the message is added into
/var/mail/domain2/userXX file. Moreover, I can't implement aliases in
my virtual domains with such configuration. Another trouble is my POP3
daemon (Qpopper 4.0.5) doesn't fetch mail from virtual directories,
only from /var/mail/ directory.

I'd like to have the following e-mail addressing scheme:

'domain1' contain users: user1, user2, user3,...,userNN
'domain2' contain users: user2, user3, user4, user5
'domain3' contain users: user1, user5, user@some_other_domain


How to implement this scheme of mail addressing?

Thank you in advance!

-- 
 Timur                          mailto:itabox@yandex.ru