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: 1) Try /etc/passwd, and if someone is there, automatically append the "default" domain, otherwise, 2) 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 at 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: > > 1) Try /etc/passwd, and if someone is there, automatically append the > "default" domain, otherwise, > 2) 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 7.4.2007, at 19.23, tquidca at gmail.com wrote:> 1) 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?http://wiki.dovecot.org/Authentication/MultipleDatabases -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070407/b6e04014/attachment.bin>
tquidca at 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: > > 1) Try /etc/passwd, and if someone is there, automatically append the > "default" domain, otherwise, > 2) 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