10-director.conf.erb 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Generated by Chef
  2. ##
  3. ## Director-specific settings.
  4. ##
  5. # Director can be used by Dovecot proxy to keep a temporary user -> mail server
  6. # mapping. As long as user has simultaneous connections, the user is always
  7. # redirected to the same server. Each proxy server is running its own director
  8. # process, and the directors are communicating the state to each others.
  9. # Directors are mainly useful with NFS-like setups.
  10. # List of IPs or hostnames to all director servers, including ourself.
  11. # Ports can be specified as ip:port. The default port is the same as
  12. # what director service's inet_listener is using.
  13. <%= Dovecot::Conf.attribute(@conf, 'director_servers') %>
  14. # List of IPs or hostnames to all backend mail servers. Ranges are allowed
  15. # too, like 10.0.0.10-10.0.0.30.
  16. <%= Dovecot::Conf.attribute(@conf, 'director_mail_servers') %>
  17. # How long to redirect users to a specific server after it no longer has
  18. # any connections.
  19. <%= Dovecot::Conf.attribute(@conf, 'director_user_expire', '15 min') %>
  20. # TCP/IP port that accepts doveadm connections (instead of director connections)
  21. # If you enable this, you'll also need to add inet_listener for the port.
  22. <%= Dovecot::Conf.attribute(@conf, 'director_doveadm_port', 0) %>
  23. <% if @services['director'].kind_of?(Hash) and @services['director'].length > 0 -%>
  24. <%= Dovecot::Conf.service('director', @services['director']) %>
  25. <% else -%>
  26. # To enable director service, uncomment the modes and assign a port.
  27. service director {
  28. unix_listener login/director {
  29. #mode = 0666
  30. }
  31. fifo_listener login/proxy-notify {
  32. #mode = 0666
  33. }
  34. unix_listener director-userdb {
  35. #mode = 0600
  36. }
  37. inet_listener {
  38. #port =
  39. }
  40. }
  41. <% end -%>
  42. # Enable director for the wanted login services by telling them to
  43. # connect to director socket instead of the default login socket:
  44. service imap-login {
  45. #executable = imap-login director
  46. }
  47. service pop3-login {
  48. #executable = pop3-login director
  49. }
  50. # Enable director for LMTP proxying:
  51. protocol lmtp {
  52. #auth_socket_path = director-userdb
  53. }