Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. [root@sogo codebluealarms.co.za]# cat /etc/dovecot-ldap.conf
  2. hosts = CB2012r2DC:3268
  3. dn = cn=Administrator,cn=Users,dc=cb,dc=local
  4. dnpass = password
  5. ldap_version = 3
  6. base = dc=cb,dc=local
  7. scope = subtree
  8. auth_bind = yes
  9. user_attrs = sAMAccountName=user
  10. user_filter = (&(ObjectClass=person)(sAMAccountName=%u))
  11. pass_filter = (&(ObjectClass=person)(sAMAccountName=%u))
  12. pass_attrs = sAMAccountName=user
  13.  
  14. [root@sogo dovecot]# cat dovecot.conf
  15. disable_plaintext_auth = no
  16. info_log_path = /var/log/dovecot_lda.log
  17. log_path = /var/log/dovecot_lda.log
  18. log_timestamp = "%Y-%m-%d %H:%M:%S "
  19. mail_gid = 500
  20. mail_location = maildir:/home/vhostmail/domain.com/%u/Maildir
  21. mail_privileged_group = mail
  22. mail_uid = 500
  23. mail_debug = yes
  24. mail_plugins = acl
  25. managesieve_notify_capability = mailto
  26. managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date
  27. #auth_verbose = yes
  28. #auth_debug = yes
  29. #auth_debug_passwords = yes
  30.  
  31. passdb {
  32. args = /etc/dovecot-ldap.conf
  33. driver = ldap
  34. }
  35. protocols = imap pop3 sieve
  36. service auth {
  37. unix_listener auth-client {
  38. mode = 0600
  39. }
  40. unix_listener auth-master {
  41. group = vhostmail
  42. mode = 0600
  43. user = vhostmail
  44. }
  45. user = root
  46. }
  47. service imap-login {
  48. user = dovecot
  49. }
  50.  
  51.  
  52. protocol imap {
  53. mail_plugins = $mail_plugins imap_acl
  54. }
  55.  
  56.  
  57. service pop3-login {
  58. user = dovecot
  59. # mail_plugins = acl imap_acl
  60. }
  61. ssl = no
  62. userdb {
  63. args = /etc/dovecot-ldap.conf
  64. driver = ldap
  65. }
  66. protocol lda {
  67. auth_socket_path = /var/run/dovecot/auth-master
  68. hostname = localhost
  69. mail_debug = yes
  70. info_log_path = /var/log/dovecot_lda.log
  71. log_path = /var/log/dovecot_lda.log
  72. mail_plugin_dir = /usr/lib/dovecot
  73. mail_plugins = sieve
  74. postmaster_address = postmaster@domain.com
  75. sendmail_path = /usr/lib/sendmail
  76.  
  77. }
  78.  
  79. service managesieve-login {
  80. user = dovecot
  81. inet_listener sieve {
  82. port = 4190
  83. }
  84.  
  85. protocol sieve {
  86. #managesieve_logout_format = bytes=%i/%o
  87. #managesieve_implementation_string = Dovecot Pigeonhole
  88. #managesieve_implementation_string = Cyrus timsieved v2.2.13
  89.  
  90.  
  91.  
  92. }
  93.  
  94.  
  95. }
  96. plugin {
  97. # Used by both the Sieve plugin and the ManageSieve protocol
  98. sieve = /home/vhostmail/domain.com/%u/.dovecot.sieve
  99. sieve_dir = /home/vhostmail/domain.com/%u/sieve
  100.  
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement