Hi, im using 0.99 stable in RPM form, Im using this for postfix+dovecot+real unix users, now i tried to enable virtual support with this: protocols = imap pop3 ssl_disable = yes log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot.info login_user = dovecot mail_extra_groups = mail auth = default auth_mechanisms = plain auth_passdb = pam auth_userdb = passwd auth_userdb = passwd-file /etc/vhosts/userdb auth_passdb = passwd-file /etc/vhosts/passwd The above configuration works for local users but is not working for virtual users, it produces the error: dovecot-auth: Oct 21 00:19:14 Info: PAM: pam_authenticate(erickperez) failed: Authentication failure obviously the user erickperez exists in /etc/vhosts/userdb so PAM will fail. Im using 0.99 release. Thanks, -- ------------------------------------------- Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dovecot.org/pipermail/dovecot/attachments/20051021/89fae815/attachment.htm
Erick Perez
2005-Oct-24 18:02 UTC
[Dovecot] Re: dual auth with real users and virtual users
any information about this? anyone? On 10/21/05, Erick Perez <eaperezh@gmail.com> wrote:> > Hi, im using 0.99 stable in RPM form, > Im using this for postfix+dovecot+real unix users, now i tried to enable > virtual support with this: > protocols = imap pop3 > ssl_disable = yes > log_path = /var/log/dovecot.log > info_log_path = /var/log/dovecot.info > login_user = dovecot > mail_extra_groups = mail > auth = default > auth_mechanisms = plain > auth_passdb = pam > auth_userdb = passwd > auth_userdb = passwd-file /etc/vhosts/userdb > auth_passdb = passwd-file /etc/vhosts/passwd > what should be the format of auth_userdb and auth_passdb ? >The above configuration works for local users but is not working for> virtual users, it produces the error: > dovecot-auth: Oct 21 00:19:14 Info: PAM: pam_authenticate(erickperez) > failed: Authentication failure > obviously the user erickperez exists in /etc/vhosts/userdb so PAM will > fail. > Im using 0.99 release. > Thanks, > > -- > > ------------------------------------------- > Erick Perez > Linux User 376588 > http://counter.li.org/ (Get counted!!!) > Panama, Republic of Panama >-- ------------------------------------------- Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://dovecot.org/pipermail/dovecot/attachments/20051024/78001cc8/attachment.htm
Alexander Shikoff
2005-Oct-24 18:11 UTC
[Dovecot] dual auth with real users and virtual users
You should use one of dovecot 1.0-alphas to enable some auth. databases.
For example I'm using next auth section in 1.0-alpha3 for authentication
with five databases.
auth default {
mechanisms = plain
user = root
passdb sql {
args = /usr/local/dovecot/etc/sql/normal.conf
}
passdb sql {
args = /usr/local/dovecot/etc/sql/normal-wo-domain.conf
}
passdb sql {
args = /usr/local/dovecot/etc/sql/old-password.conf
}
passdb sql {
args = /usr/local/dovecot/etc/sql/old-password-wo-domain.conf
}
passdb pam {
args = pop3
}
userdb sql {
args = /usr/local/dovecot/etc/sql/normal.conf
}
userdb sql {
args = /usr/local/dovecot/etc/sql/normal-wo-domain.conf
}
userdb passwd {
}
}
On Fri, Oct 21, 2005 at 09:51:54AM -0500, Erick Perez
wrote:> Hi, im using 0.99 stable in RPM form,
>
> Im using this for postfix+dovecot+real unix users, now i tried to enable
virtual support with
> this:
>
> protocols = imap pop3
> ssl_disable = yes
> log_path = /var/log/dovecot.log
> info_log_path = /var/log/dovecot.info
> login_user = dovecot
> mail_extra_groups = mail
> auth = default
> auth_mechanisms = plain
>
> auth_passdb = pam
> auth_userdb = passwd
>
> auth_userdb = passwd-file /etc/vhosts/userdb
> auth_passdb = passwd-file /etc/vhosts/passwd
>
>
> The above configuration works for local users but is not working for
virtual users, it
> produces the error:
> dovecot-auth: Oct 21 00:19:14 Info: PAM: pam_authenticate(erickperez)
failed: Authentication
> failure
>
> obviously the user erickperez exists in /etc/vhosts/userdb so PAM will
fail.
>
> Im using 0.99 release.
> Thanks,
> --
>
> -------------------------------------------
> Erick Perez
> Linux User 376588
> [1]http://counter.li.org/ (Get counted!!!)
> Panama, Republic of Panama
>
>
> References
>
> Visible links
> 1. http://counter.li.org/
--
Kind Regards, Alexander Shikoff
minotaur@crete.org.ua
Mob.: +380 67 946 31 49