On 8/26/11 7:12 AM, Nickitas wrote:
Thanx all for the answers :)
I added strsalloc.o at both sections in Makefile and it worked ok
(for the compilation) . I keep getting an error 111 though using this
method (test pop connection) ..
I ve also tried the Felipe's implementation , but I can't pass the
authentication , think there is something that has to do with ldap
config , will look more in this later ..
Thank you again :)
I too use dovecot for imap and simply configure dovecot to auth against
the ldap server. I do not use the patch you listed, I use stock
qmail-1.0.3 with qmail-ldap-1.03-20060201.patch. I use a similar method
to Felipe, configuring dovecot to auth directly against LDAP and
configuring qmail to use auth_smtp. If you can login using qmail, then
there's no reason you shouldn't be able to log in with dovecot, it may
just be a case of making sure you have the correct password scheme
configured for dovecot.
## dovecot.conf
protocols = imap imaps
syslog_facility = mail
ssl_cert_file = /etc/httpd/conf/certs/mail.crt
ssl_key_file = /etc/httpd/conf/keys/mail.key
mail_location = maildir:%h
namespace private {
prefix = INBOX.
inbox = yes
}
mail_debug = yes
maildir_copy_with_hardlinks = yes
protocol imap {
}
protocol pop3 {
}
protocol lda {
postmaster_address = postmas...@cttechhosting.net
}
auth_verbose = yes
auth default {
mechanisms = plain
passdb ldap {
args = /etc/dovecot-ldap.conf
}
userdb ldap {
args = /etc/dovecot-ldap.conf
}
}
dict {
}
plugin {
}
## dovecot-ldap conf
hosts =YOUR_LDAP_SERVER_IP:389
dn=cn=Manager,dc=cttechhosting,dc=net
auth_bind = yes
# this should match up to how you did your ldap accounts
auth_bind_userdn = uid=%u,ou=accounts,dc=cttechhosting,dc=net
ldap_version=3
base = ou=accounts,dc=cttechhosting,dc=net
# tell dovecot what fields to use
user_attrs =
mailMessageStore=home,qmailUID=uid,qmailGID=gid,mailMessageStore=mail
user_filter = (&(objectClass=qmailUser)(uid=%u))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(objectClass=qmailUser)(uid=%u))
default_pass_scheme = LDAP-SHA