Showing posts with label dovecot. Show all posts
Showing posts with label dovecot. Show all posts

Sunday, November 17, 2013

[Debug] Postfix, Dovecot, OpenLDAP

Vài khái niệm/ câu lệnh quan trọng khi debug stack : postfix - dovecot - openldap, với dovecot là imap server đồng thời thực hiện SASL authenticate sử dụng backend LDAP.

1. Tắt hết TLS / SSL option đi.
2. Kiểm tra xem LDAP có hoạt động bình thường không
NOTE: nếu dùng TLS, LDAP vẫn listen ở port 389
Dùng SSL mới listen 636.

$ ldapsearch -x -H ldap://127.0.0.1 -D 'uid=hvn@example.com,ou=people,dc=example,dc=com' -W -ZZ -b'dc=example,dc=com' # (bỏ -ZZ nếu chỉ dùng LDAP không SSL/TLS)

3. Bật verbose cho slapd: đặt oldLog = 16383

Sau khi ldap đã hoạt động bình thường, kiểm tra dovecot.

Dùng dovecot -a để xem cấu hình của dovecot hiện tại.


4. Thử telnet với postfix: