View Full Version : [ubuntu] Mail accounts for several domains

February 28th, 2010, 01:40 PM
Hi everyone!

I'm using Debian 5 with Exim 4 on my VPS. My purpose is to make mailboxes for each virtual host on my server. What do I have:

1. Exim is set correctly - receiving mail from gmail.com is successfull.

2. Mail for root@main.com is delivered, and the mail for root@site1.com too. But main.com is the site written to /etc/hosts (it's localhost), and site1.com is virtual host. But mail from both boxes writes to /var/mail/mail.

Now what do I need:

1. Make mail for root@site1.com store in www/site1.com.
2. Make mailboxes like user@site1.com to receive mail by Thunderbird.
3. Set passwords for root@main.com and root@site1.com (I don't want to enter my system user/root passwords).
4. It's not a big deal, but I'd like to store root@main.com mail into /root/Maildir, as it's done for my system user: /home/4747/Maildir

Will be grateful for any help!