[Dovecot] Fully virtualized w/ postfix?
Hi folks,
I've poked through the archives and google and have not seen how do do this. Is it possible to virtualize ALL emails on a system? That is, I want delivery only to e.g. /var/mail/vmail/domain.tld/user/Maildir/, and for authentication & userdb to:
- Try /etc/passwd, and if someone is there, automatically append the "default" domain, otherwise,
- Authenticate off a mysql db or similar.
Is this kind of "fallthrough" user lookup and auth. possible with dovecot? I assume the delivery can probably be done by just telling postfix to use dovecot as the local delivery agent.
Thanks for your help!
--JB
If you want #1, it seems that you're not really looking to virtualize
all emails on the system, but rather have fall-through
virtualization. I don't know if that's possible or not. I *do* know,
because I have it set up this way, that's it possible to virtualize
everything, and then, in your database, specifically say what needs
to get delivered to the local box. I needed to do that for mailman
lists.
Anyway, for postfix, look into the virtual_* config options. For
dovecot, I'm still running 1.0beta8, which is a few versions behind,
so I don't know what to look for these days. FWIW, I use passdb sql
and userdb static.
On Apr 7, 2007, at 9:23 AM, tquidca@gmail.com wrote:
Hi folks,
I've poked through the archives and google and have not seen how do
do this. Is it possible to virtualize ALL emails on a system? That is, I want delivery only to e.g. /var/mail/vmail/domain.tld/user/Maildir/, and
for authentication & userdb to:
- Try /etc/passwd, and if someone is there, automatically append the "default" domain, otherwise,
- Authenticate off a mysql db or similar.
Is this kind of "fallthrough" user lookup and auth. possible with
dovecot? I assume the delivery can probably be done by just telling postfix to
use dovecot as the local delivery agent.Thanks for your help!
--JB
On 19:26:45 2007-04-07 Ben bench@silentmedia.com wrote:
- Authenticate off a mysql db or similar.
I have a fully virtualised mail system based on sqlite database with exim and dovecot and deliver.
Basicaly you tell the MTA where to check for accounts to accept mails Tell dovecot and deliver where to auth and find account dirs And that's about it :)
On 7.4.2007, at 19.23, tquidca@gmail.com wrote:
- Try /etc/passwd, and if someone is there, automatically append the "default" domain, otherwise,
auth_default_realm is probably helpful here.
Is this kind of "fallthrough" user lookup and auth. possible with
dovecot?
tquidca@gmail.com wrote:
Hi folks,
I've poked through the archives and google and have not seen how do do this. Is it possible to virtualize ALL emails on a system? That is, I want delivery only to e.g. /var/mail/vmail/domain.tld/user/Maildir/, and for authentication & userdb to:
- Try /etc/passwd, and if someone is there, automatically append the "default" domain, otherwise,
- Authenticate off a mysql db or similar.
Is this kind of "fallthrough" user lookup and auth. possible with dovecot? I assume the delivery can probably be done by just telling postfix to use dovecot as the local delivery agent.
Thanks for your help!
--JB
I don't know if it's what you want . . . but I recently converted our system to a pure virtual solution using Postfix, Dovecot, OpenLDAP, and Ldap-Account-Manager. A minimum of configuration was needed for Postfix and Dovecot, and now all mail, local users & otherwise, goes to /var/mail/domain.com/username. A single LDAP database holds it all - and I don't have to specify each user's mail folder. I love it when flexible, reliable solutions work together.
Caveat - if you want to use maildrop, you DO need to specify the mailfolder. I'm currently looking for an alternative LDA as a direct result of that - NOT procmail!
-- Daniel
participants (5)
-
"Andraž 'ruskie' Levstik"
-
Ben
-
Daniel L. Miller
-
Timo Sirainen
-
tquidca@gmail.com