DOVEADM−DIRECTOR - Online Linux Manual PageSection : 1
Updated : 2010-07-16
Source : Dovecot v2.0
Note : Dovecot

NAMEdoveadm−director − Manage Dovecot directors

SYNOPSISdoveadm [−Dv] director add [−a director_socket_path] host [vhost_count]
doveadm [−Dv] director flush [
−a director_socket_path] host|all
doveadm [−Dv] director map [
−a director_socket_path] [−f users_file] [host]
doveadm [−Dv] director remove [
−a director_socket_path] host
doveadm [−Dv] director status [−a director_socket_path] [user]

DESCRIPTIONdoveadm director can be used to manage and query the status of the list of backend mail servers where Dovecot proxy can redirect connections to.

OPTIONSGlobal doveadm(1) options: −D  Enables verbosity and debug messages. −v  Enables verbosity, including progress counter. Command specific options: −a director_socket_path  This option is used to specify an alternative socket. The option's argument is either an absolute path to a local UNIX domain socket, or a hostname and port (hostname:port), in order to connect a remote host via a TCP socket. By default doveadm(1) will use the socket /var/run/dovecot/director−admin. The socket may be located in another directory, when the default base_dir setting was overridden in /etc/dovecot/dovecot.conf.

ARGUMENTShost  A mail server's hostname or IP address. user  Is a user's login name. Depending on the configuration, a login name may be for example jane or john@example.com. vhost_count  The number of "virtual hosts" to assign to this server. The higher the number is relative to other servers, the more connections it gets. The default is 100.

COMMANDS

director adddoveadm director add [−a director_socket_path] host [vhost_count] The command's tasks are: *  assign a new mail server to the director. *  increase/decrease the vhost_count of an already assigned server.

director flushdoveadm director flush [−a director_socket_path] host|all doveadm director flush drops all user associations either from the given host or all hosts. This command is intended mainly for testing purposes.

director mapdoveadm director map [−a director_socket_path] [−f users_file] [host] The command doveadm director map is used to list current user → host mappings. −f users_file  Path to a file containing all user names (one per line). When given no userdb lookup will be performed. This may be a helpful alternative when for example the network connection to the LDAP or SQL server is slow. host  Specify a server's IP address or hostname, to list only mappings of the given host.

director removedoveadm director remove [−a director_socket_path] host Use this command in oder to remove the given host from the director.

director statusdoveadm director status [−a director_socket_path] [user] This command is used to show the current usage of all assigned mail servers.
When a user name is given, this command shows which server the user is currently assigned to, where the user will be assigned after the current saved assignment gets removed and where the user would be assigned to if the whole proxy cluster was restarted fresh.

FILES/etc/dovecot/dovecot.conf  Dovecot's main configuration file. /etc/dovecot/conf.d/10−director.conf  Director specific settings.

EXAMPLEAdd a director with vhost count 150 (or change existing one's vhost count to 150): doveadm −v director add x1357.imap.ha.example.net 150 2001:db8:543:6861:143::1357: OK Remove a director: doveadm director remove x1357.imap.ha.example.net Query the status of mail hosts in a director: doveadm director status mail server ip vhosts users 192.168.10.1 100 125 192.168.10.2 100 144 192.168.10.3 100 115 Query the status of a user's assignment: doveadm director status user@example.com Current: 192.168.10.1 (expires 2010−06−18 20:17:04) Hashed: 192.168.10.2 Initial config: 192.168.10.3This means that the user is currently assigned to mail server on IP 192.168.10.1. After all of user's connections have logged out, the assignment will be removed (currently it looks like at 20:17:04, but that may be increased). After the assignment has expired, the user will next time be redirected to 192.168.10.2 (assuming no changes to director settings). If the entire Dovecot proxy cluster was restarted, so that all of the director configuration would revert back to its initial values, the user would be redirected to 192.168.10.3.

REPORTING BUGSReport bugs, including doveconf −n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is available at: http://dovecot.org/bugreport.html

SEE ALSOdoveadm(1)
0
Johanes Gumabo
Data Size   :   18,916 byte
man-doveadm-director.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 201,761
Visitor ID   :     :  
Visitor IP   :   3.145.12.100   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.