2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen##
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen## Director-specific settings.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen##
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Director can be used by Dovecot proxy to keep a temporary user -> mail server
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# mapping. As long as user has simultaneous connections, the user is always
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# redirected to the same server. Each proxy server is running its own director
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# process, and the directors are communicating the state to each others.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Directors are mainly useful with NFS-like setups.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# List of IPs or hostnames to all director servers, including ourself.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Ports can be specified as ip:port. The default port is the same as
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# what director service's inet_listener is using.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen#director_servers =
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# List of IPs or hostnames to all backend mail servers. Ranges are allowed
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# too, like 10.0.0.10-10.0.0.30.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen#director_mail_servers =
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# How long to redirect users to a specific server after it no longer has
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# any connections.
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen#director_user_expire = 15 min
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
76e1aaea9f7a4c1c9fa23119b3dd8fd6ee225ee2Timo Sirainen# How the username is translated before being hashed. Useful values include
76e1aaea9f7a4c1c9fa23119b3dd8fd6ee225ee2Timo Sirainen# %Ln if user can log in with or without @domain, %Ld if mailboxes are shared
76e1aaea9f7a4c1c9fa23119b3dd8fd6ee225ee2Timo Sirainen# within domain.
76e1aaea9f7a4c1c9fa23119b3dd8fd6ee225ee2Timo Sirainen#director_username_hash = %Lu
76e1aaea9f7a4c1c9fa23119b3dd8fd6ee225ee2Timo Sirainen
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen# To enable director service, uncomment the modes and assign a port.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenservice director {
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen unix_listener login/director {
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen #mode = 0666
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen }
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen fifo_listener login/proxy-notify {
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen #mode = 0666
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen }
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen unix_listener director-userdb {
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen #mode = 0600
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen }
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen inet_listener {
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen #port =
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen }
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen}
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# Enable director for the wanted login services by telling them to
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen# connect to director socket instead of the default login socket:
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenservice imap-login {
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen #executable = imap-login director
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen}
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenservice pop3-login {
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen #executable = pop3-login director
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen}
2cbbe9b4829adb184c83dbf780316f4144559054Stephan Boschservice submission-login {
2cbbe9b4829adb184c83dbf780316f4144559054Stephan Bosch #executable = submission-login director
2cbbe9b4829adb184c83dbf780316f4144559054Stephan Bosch}
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen# Enable director for LMTP proxying:
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainenprotocol lmtp {
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen #auth_socket_path = director-userdb
b4ddb5b3c3722620a8fef387dd8c47bb411a5643Timo Sirainen}