Re: Qmail-ldap + dovecot
Hi, I am running dovecot2 under FreeBSD, I had some issues with users that create imap mailboxes with dots, at the end I solve this with a namespace and plugging listescape, here my final configuration, hoping it can help file /usr/local/etc/dovecot/dovecot.conf -- base_dir = /var/run/dovecot/ first_valid_uid = 200 last_valid_uid = 200 first_valid_gid = 200 last_valid_gid = 200 mail_uid = 200 mail_gid = 200 syslog_facility = local1 log_path = /var/log/maillog log_timestamp = %Y-%m-%d %H:%M:%S debug_log_path = /var/log/dovecot.debug mail_debug = no #auth_verbose = yes #auth_debug = yes #mail_debug = yes login_greeting = INBOX.IM mail_location = maildir:~/Maildir maildir_very_dirty_syncs = yes maildir_copy_with_hardlinks = yes maildir_stat_dirs = no userdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } protocols = imap pop3 service imap-login { service_count = 1 chroot = login inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 ssl = yes } } service pop3-login { service_count = 1 chroot = login inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 ssl = yes } } ssl_cert = http://code.google.com/p/qmail-ldap-smtpauthuser/wiki/SETUP?tm=6 regards. 2011/8/30 Nickitas : > Hi , > > This configuration seems to work for me . > > Thanx a lot :) > > > On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: >> >> Hi >> >> here is my working config. >> The key part is passdb. >> >> # 2.0.13: /usr/local/etc/dovecot/dovecot.conf >> # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) >> auth_debug = yes >> auth_verbose = yes >> base_dir = /var/run/dovecot >> disable_plaintext_auth = no >> first_valid_gid = 500 >> last_valid_gid = 65000 >> last_valid_uid = 65000 >> listen = * >> log_path = /var/log/dovecot >> mail_debug = yes >> mail_location = maildir:~/Maildir >> passdb { >> args = /var/qmail/bin/auth_dovecot ./Maildir/ >> driver = checkpassword >> } >> plugin { >> mail_log_events = delete undelete expunge copy mailbox_delete >> mailbox_rename >> mail_log_fields = uid box msgid from subject >> mail_log_group_events = >> mechanisms = plain login >> quota = maildir >> quota_rule = *:storage=1024 >> quota_rule2 = Trash:storage=1024000 >> quota_rule3 = SPAM:ignore >> trash = /usr/local/etc/dovecot/dovecot-trash.conf >> } >> protocols = imap pop3 >> service imap-login { >> inet_listener imaps { >> port = 993 >> ssl = yes >> } >> process_min_avail = 1 >> } >> service pop3-login { >> inet_listener pop3s { >> port = 995 >> ssl = yes >> } >> process_min_avail = 1 >> } >> ssl_cert => ssl_cipher_list = ALL >> ssl_key => userdb { >> driver = prefetch >> } >> verbose_proctitle = yes >> verbose_ssl = yes >> protocol imap { >> mail_plugins = quota mail_log notify imap_quota >> ssl_cert => ssl_key => } >> protocol pop3 { >> mail_plugins = quota mail_log notify >> ssl_cert => ssl_key => } >> >> -sent via mobile device >> >> -- orijinal mesaj -- >> Konu: Re: Qmail-ldap + dovecot >> Kimden: Nickitas >> Tarih: 26.08.2011 15:19 >> >> Thank you Russel , I am definitely gonna try it when I get the chance >> cause your setup is almost identical to ours :) >> >> On 08/26/2011 02:47 PM, Russell Simpkins wrote: >>> >>> 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...@cttechhos
Re: Qmail-ldap + dovecot
2011.08.31 11:00 Nicolas de Bari Embriz Garcia Rojas rašė: > Hi, I am running dovecot2 under FreeBSD, I had some issues with users > that create imap mailboxes with dots, at the end I solve this with a > namespace and plugging listescape, here my final configuration, hoping > it can help All sample configurations posted so far fail to mention fts plugins. Either your mailboxes are not big or your IMAP clients use internal search functions and indexes. IMHO if you are not using FTS and don't need namespace customizations, you can as well go with courier-imap 3.0.8. -- Tomas
Re: Qmail-ldap + dovecot
Thank you Nicolas , I will keep this in mind when I get the time to properly test it on a live system .. Thats an issue I would had never ever thought off :) On 08/31/2011 11:00 AM, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, I am running dovecot2 under FreeBSD, I had some issues with users that create imap mailboxes with dots, at the end I solve this with a namespace and plugging listescape, here my final configuration, hoping it can help file /usr/local/etc/dovecot/dovecot.conf -- base_dir = /var/run/dovecot/ first_valid_uid = 200 last_valid_uid = 200 first_valid_gid = 200 last_valid_gid = 200 mail_uid = 200 mail_gid = 200 syslog_facility = local1 log_path = /var/log/maillog log_timestamp = %Y-%m-%d %H:%M:%S debug_log_path = /var/log/dovecot.debug mail_debug = no #auth_verbose = yes #auth_debug = yes #mail_debug = yes login_greeting = INBOX.IM mail_location = maildir:~/Maildir maildir_very_dirty_syncs = yes maildir_copy_with_hardlinks = yes maildir_stat_dirs = no userdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } protocols = imap pop3 service imap-login { service_count = 1 chroot = login inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 ssl = yes } } service pop3-login { service_count = 1 chroot = login inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 ssl = yes } } ssl_cert =http://code.google.com/p/qmail-ldap-smtpauthuser/wiki/SETUP?tm=6 regards. 2011/8/30 Nickitas: Hi , This configuration seems to work for me . Thanx a lot :) On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: Hi here is my working config. The key part is passdb. # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no first_valid_gid = 500 last_valid_gid = 65000 last_valid_uid = 65000 listen = * log_path = /var/log/dovecot mail_debug = yes mail_location = maildir:~/Maildir passdb { args = /var/qmail/bin/auth_dovecot ./Maildir/ driver = checkpassword } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid from subject mail_log_group_events = mechanisms = plain login quota = maildir quota_rule = *:storage=1024 quota_rule2 = Trash:storage=1024000 quota_rule3 = SPAM:ignore trash = /usr/local/etc/dovecot/dovecot-trash.conf } protocols = imap pop3 service imap-login { inet_listener imaps { port = 993 ssl = yes } process_min_avail = 1 } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } process_min_avail = 1 } ssl_cert = Tarih: 26.08.2011 15:19 Thank you Russel , I am definitely gonna try it when I get the chance cause your setup is almost identical to ours :) On 08/26/2011 02:47 PM, Russell Simpkins wrote: 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 w
Re: Qmail-ldap + dovecot
That would be nice .. Looking forward for the final patch too - sorry cant help on that , not C programmer :( Other question now , has anyone implemented a new qmail schema that should work with latest versions of openldap ? On 08/30/2011 09:11 PM, Ismail YENIGUL wrote: Hi, It is good to know :). I think I should write a document about this issue. Actually I have a plan to create a toaster contain all necessary patches about qmail-ldap. Currently, I merged auth_dovecot, spf and domain alias patch. But I guess the most important patch is qmail-ipv6 patch. I tried to merge the patch at http://member.wide.ad.jp/~fujiwara/files/qmail-1.03-v6-20021006.diff but I stuck at qmail qmqp part. If someone can help on this case we may create another patch or tarball contain those patches. Thanks Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 30.08.2011 18:29, Nickitas wrote: Hi , This configuration seems to work for me . Thanx a lot :) On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: Hi here is my working config. The key part is passdb. # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no first_valid_gid = 500 last_valid_gid = 65000 last_valid_uid = 65000 listen = * log_path = /var/log/dovecot mail_debug = yes mail_location = maildir:~/Maildir passdb { args = /var/qmail/bin/auth_dovecot ./Maildir/ driver = checkpassword } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid from subject mail_log_group_events = mechanisms = plain login quota = maildir quota_rule = *:storage=1024 quota_rule2 = Trash:storage=1024000 quota_rule3 = SPAM:ignore trash = /usr/local/etc/dovecot/dovecot-trash.conf } protocols = imap pop3 service imap-login { inet_listener imaps { port = 993 ssl = yes } process_min_avail = 1 } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } process_min_avail = 1 } ssl_cert = Tarih: 26.08.2011 15:19 Thank you Russel , I am definitely gonna try it when I get the chance cause your setup is almost identical to ours :) On 08/26/2011 02:47 PM, Russell Simpkins wrote: 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
Re: Re: Qmail-ldap + dovecot
Hi, what is the problem with openldap 2.4? I had a problem with duplicate mail attr. I simply commented misc.schema to solve the issue. -ismail -sent via mobile device -- orijinal mesaj -- Konu: Re: Qmail-ldap + dovecot Kimden: Nickitas Tarih: 31.08.2011 13:16 That would be nice .. Looking forward for the final patch too - sorry cant help on that , not C programmer :( Other question now , has anyone implemented a new qmail schema that should work with latest versions of openldap ? On 08/30/2011 09:11 PM, Ismail YENIGUL wrote: > Hi, > > It is good to know :). I think I should write a document about this > issue. > Actually I have a plan to create a toaster contain all necessary > patches about qmail-ldap. > Currently, I merged auth_dovecot, spf and domain alias patch. But I > guess the most important patch is qmail-ipv6 patch. > I tried to merge the patch at > http://member.wide.ad.jp/~fujiwara/files/qmail-1.03-v6-20021006.diff > but I stuck at qmail qmqp part. > > If someone can help on this case we may create another patch or > tarball contain those patches. > > Thanks > > Ismail YENIGUL > Project Manager > Endersys Ltd > Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 > SurGATE: West Coast Labs Premium Anti-Spam Certificated > Twitter: http://www.twitter.com/endersys > Blog: http://blog.endersys.com > > On 30.08.2011 18:29, Nickitas wrote: >> Hi , >> >> This configuration seems to work for me . >> >> Thanx a lot :) >> >> >> On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: >>> Hi >>> >>> here is my working config. >>> The key part is passdb. >>> >>> # 2.0.13: /usr/local/etc/dovecot/dovecot.conf >>> # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 >>> (Final) >>> auth_debug = yes >>> auth_verbose = yes >>> base_dir = /var/run/dovecot >>> disable_plaintext_auth = no >>> first_valid_gid = 500 >>> last_valid_gid = 65000 >>> last_valid_uid = 65000 >>> listen = * >>> log_path = /var/log/dovecot >>> mail_debug = yes >>> mail_location = maildir:~/Maildir >>> passdb { >>> args = /var/qmail/bin/auth_dovecot ./Maildir/ >>> driver = checkpassword >>> } >>> plugin { >>> mail_log_events = delete undelete expunge copy mailbox_delete >>> mailbox_rename >>> mail_log_fields = uid box msgid from subject >>> mail_log_group_events = >>> mechanisms = plain login >>> quota = maildir >>> quota_rule = *:storage=1024 >>> quota_rule2 = Trash:storage=1024000 >>> quota_rule3 = SPAM:ignore >>> trash = /usr/local/etc/dovecot/dovecot-trash.conf >>> } >>> protocols = imap pop3 >>> service imap-login { >>> inet_listener imaps { >>> port = 993 >>> ssl = yes >>> } >>> process_min_avail = 1 >>> } >>> service pop3-login { >>> inet_listener pop3s { >>> port = 995 >>> ssl = yes >>> } >>> process_min_avail = 1 >>> } >>> ssl_cert =>> ssl_cipher_list = ALL >>> ssl_key =>> userdb { >>> driver = prefetch >>> } >>> verbose_proctitle = yes >>> verbose_ssl = yes >>> protocol imap { >>> mail_plugins = quota mail_log notify imap_quota >>> ssl_cert =>> ssl_key =>> } >>> protocol pop3 { >>> mail_plugins = quota mail_log notify >>> ssl_cert =>> ssl_key =>> } >>> >>> -sent via mobile device >>> >>> -- orijinal mesaj -- >>> Konu: Re: Qmail-ldap + dovecot >>> Kimden: Nickitas >>> Tarih: 26.08.2011 15:19 >>> >>> Thank you Russel , I am definitely gonna try it when I get the chance >>> cause your setup is almost identical to ours :) >>> >>> On 08/26/2011 02:47 PM, Russell Simpkins wrote: 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 {
Re: Qmail-ldap + dovecot
Oh , my bad , haven't tested that for ages ... Just included qmail.schema on a 2.4 openldap ... On 08/31/2011 04:46 PM, ismail.yeni...@endersys.com wrote: Hi, what is the problem with openldap 2.4? I had a problem with duplicate mail attr. I simply commented misc.schema to solve the issue. -ismail -sent via mobile device -- orijinal mesaj -- Konu: Re: Qmail-ldap + dovecot Kimden: Nickitas Tarih: 31.08.2011 13:16 That would be nice .. Looking forward for the final patch too - sorry cant help on that , not C programmer :( Other question now , has anyone implemented a new qmail schema that should work with latest versions of openldap ? On 08/30/2011 09:11 PM, Ismail YENIGUL wrote: Hi, It is good to know :). I think I should write a document about this issue. Actually I have a plan to create a toaster contain all necessary patches about qmail-ldap. Currently, I merged auth_dovecot, spf and domain alias patch. But I guess the most important patch is qmail-ipv6 patch. I tried to merge the patch at http://member.wide.ad.jp/~fujiwara/files/qmail-1.03-v6-20021006.diff but I stuck at qmail qmqp part. If someone can help on this case we may create another patch or tarball contain those patches. Thanks Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 30.08.2011 18:29, Nickitas wrote: Hi , This configuration seems to work for me . Thanx a lot :) On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: Hi here is my working config. The key part is passdb. # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no first_valid_gid = 500 last_valid_gid = 65000 last_valid_uid = 65000 listen = * log_path = /var/log/dovecot mail_debug = yes mail_location = maildir:~/Maildir passdb { args = /var/qmail/bin/auth_dovecot ./Maildir/ driver = checkpassword } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid from subject mail_log_group_events = mechanisms = plain login quota = maildir quota_rule = *:storage=1024 quota_rule2 = Trash:storage=1024000 quota_rule3 = SPAM:ignore trash = /usr/local/etc/dovecot/dovecot-trash.conf } protocols = imap pop3 service imap-login { inet_listener imaps { port = 993 ssl = yes } process_min_avail = 1 } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } process_min_avail = 1 } ssl_cert = Tarih: 26.08.2011 15:19 Thank you Russel , I am definitely gonna try it when I get the chance cause your setup is almost identical to ours :) On 08/26/2011 02:47 PM, Russell Simpkins wrote: 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 = ma