[Dovecot] virtual hosting
I'm trying to figure out how I might set up some virtual hosting accounts for my server.
domain1 would be delivered via procmail to ~/Maildir mail directories
domain2 would be delivered via postfix to /var/mail/vhosts/domain2/username and similarly for additional domains.
There's also one domain that's delivered to another machine, but that's not a dovecot issue. I just mention it for completeness.
currently I have only domain1 and only: default_mail_env = maildir:~/Maildir
I'm not really sure how to set this up for additional locations of maildir:/var/mail/vhosts/%d/%n/Maildir (This seems right?)
Right now I'm wondering if I have to do one of the following: create two instances of dovecot with seperate configuration files? move everything to /var/mail/vhosts/%d/%n/Maildir data structure and the rewrite all my local (~/Maildir) procmail rules to manage delivery..
This is seeming sticky?
Tom Allison wrote:
I'm trying to figure out how I might set up some virtual hosting accounts for my server.
domain1 would be delivered via procmail to ~/Maildir mail directories
domain2 would be delivered via postfix to /var/mail/vhosts/domain2/username and similarly for additional domains.
There's also one domain that's delivered to another machine, but that's not a dovecot issue. I just mention it for completeness.
currently I have only domain1 and only: default_mail_env = maildir:~/Maildir
I'm not really sure how to set this up for additional locations of maildir:/var/mail/vhosts/%d/%n/Maildir (This seems right?)
OK, I think I figured out how to do this, if I really need to do it this way at all.
Keep default_mail_env as it is for my local mail. Add a home field into the postgres database for authentication and use that to specify alternative directories: /var/mail/vhost/domain2/username/
But I won't have anything in the home field for local users. How does that affect my queries? I assume empty-strings will be 'ok'?
On Sun, 2005-01-02 at 09:06 -0500, Tom Allison wrote:
currently I have only domain1 and only: default_mail_env = maildir:~/Maildir
I'm not really sure how to set this up for additional locations of maildir:/var/mail/vhosts/%d/%n/Maildir (This seems right?)
OK, I think I figured out how to do this, if I really need to do it this way at all.
Keep default_mail_env as it is for my local mail. Add a home field into the postgres database for authentication and use that to specify alternative directories: /var/mail/vhost/domain2/username/
But I won't have anything in the home field for local users. How does that affect my queries? I assume empty-strings will be 'ok'?
If you refer to ~/Maildir but there's no home directory set, that won't work. You probably want to set "mail" for virtual users and leave their home directory empty.
participants (2)
-
Timo Sirainen
-
Tom Allison