1DOVEADM-KICK(1)                     Dovecot                    DOVEADM-KICK(1)
2
3
4

NAME

6       doveadm-kick - Disconnect users by user name and/or IP address
7

SYNOPSIS

9       doveadm [-Dv] kick [ -a anvil_socket_path] [-f] user
10       doveadm [-Dv] kick [ -a anvil_socket_path] [-f] ip[/mask]
11       doveadm [-Dv] kick [ -a anvil_socket_path] [-f] user ip[/mask]
12

DESCRIPTION

14       doveadm's kick  command is used to disconnect users by user name and/or
15       the ip address, from which they are connected.
16
17       In the first form, all users, whose login name matches the  user  argu‐
18       ment, will be disconnected.
19
20       In  the  second form, all users, connected from the given IP address or
21       network range, will be disconnected.
22
23       In the last form, only users connected from the  given  IP  address  or
24       networks range and a matching login name will be disconnected.
25

OPTIONS

27       Global doveadm(1) options:
28
29       -D     Enables verbosity and debug messages.
30
31       -o setting=value
32              Overrides  the  configuration  setting  from  /etc/dovecot/dove‐
33              cot.conf and from the userdb with the given value.  In order  to
34              override  multiple settings, the -o option may be specified mul‐
35              tiple times.
36
37       -v     Enables verbosity, including progress counter.
38
39       Command specific options:
40
41       -a anvil_socket_path
42              This option is used to specify an absolute path to  an  alterna‐
43              tive UNIX domain socket.
44
45              By  default  doveadm(1)  will use the socket /run/dovecot/anvil.
46              The socket may be located in another directory, when the default
47              base_dir setting was overridden in /etc/dovecot/dovecot.conf.
48
49       -f     Enforce the disconnect, even when there are multiple users, from
50              different networks, connected to a single process.  This  option
51              may be only required when you have configured something like:
52
53              service imap {
54                ...
55                client_limit = 1+n
56                service_count = 0
57                ...
58              }
59

ARGUMENTS

61       ip[/mask]
62              ip  or  ip/mask is the host or network, from which the users are
63              connected.
64
65       user   Is a user's login name.  Depending on the configuration, a login
66              name  may  be  for  example jane or john@example.com.  It's also
67              possible to use '*' and '?' wildcards (e.g. -u *@example.org).
68

EXAMPLE

70       If you don't want to disconnect all users at once, you can check  who's
71       currently  logged in.  The first example demonstrates how to disconnect
72       all users whose login name is 3 characters long and begins with ba.
73
74       doveadm who -1 ja*
75       username                      proto pid  ip
76       jane                          imap  8192 ::1
77       james                         imap  8203 2001:db8:543:2::1
78       doveadm kick ba?
79       kicked connections from the following users:
80       bar baz
81
82       The next  example  shows  how  to  kick  user  foo's  connections  from
83       192.0.2.*.
84
85       doveadm who -1 foo
86       username                     proto pid  ip
87       foo                          imap  8135 fd95:4eed:38ba::25
88       foo                          imap  9112 192.0.2.53
89       foo                          imap  8216 192.0.2.111
90       doveadm kick foo 192.0.2.0/24
91       kicked connections from the following users:
92       foo
93       doveadm who f*
94       username                  # proto (pids) (ips)
95       foo                       1 imap  (8135) (fd95:4eed:38ba::25)
96

REPORTING BUGS

98       Report  bugs, including doveconf -n output, to the Dovecot Mailing List
99       <dovecot@dovecot.org>.  Information about reporting bugs  is  available
100       at: http://dovecot.org/bugreport.html
101

SEE ALSO

103       doveadm(1), doveadm-who(1)
104
105
106
107Dovecot v2.3                      2010-06-12                   DOVEADM-KICK(1)
Impressum