10-director.conf.erb 2.0 KB

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