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

NAME

6       doveadm-altmove  -  Move  matching  mails  to  the  alternative storage
7       (dbox-only)
8

SYNOPSIS

10       doveadm [-Dv] altmove [-S socket_path] search_query
11       doveadm [-Dv] altmove [-S socket_path] -A search_query
12       doveadm [-Dv] altmove [-S socket_path] -u user search_query
13

DESCRIPTION

15       This command can be used with sdbox or mdbox storage to move  mails  to
16       alternative  storage  path  when  :ALT=<path> is specified for the mail
17       location.
18
19       In the first form, doveadm(1) will executed the altmove action with the
20       environment of the logged in system user.
21
22       In the second form, the command will be performed for all users.
23
24       In  the  third  form,  only matching mails of the given user(s) will be
25       moved to the alternative storage.
26

OPTIONS

28       Global doveadm(1) options:
29
30       -D     Enables verbosity and debug messages.
31
32       -v     Enables verbosity, including progress counter.
33
34       Command specific options:
35
36       -A     If the -A option is present, the command will be  performed  for
37              all  users.   Using this option in combination with system users
38              from userdb { driver = passwd } is not recommended,  because  it
39              contains  also  users  with  a lower UID than the one configured
40              with the first_valid_uid setting.
41
42              When the SQL userdb module is used  make  sure  that  the  iter‐
43              ate_query  setting  in /etc/dovecot/dovecot-sql.conf.ext matches
44              your database layout.  When using the LDAP userdb  module,  make
45              sure  that  the  iterate_attrs  and  iterate_filter  settings in
46              /etc/dovecot/dovecot-ldap.conf.ext match your LDAP schema.  Oth‐
47              erwise doveadm(1) will be unable to iterate over all users.
48
49       -S socket_path
50              The option's argument is either an absolute path to a local UNIX
51              domain socket, or a hostname and port (hostname:port), in  order
52              to connect a remote host via a TCP socket.
53
54              This allows an administrator to execute doveadm(1) mail commands
55              through the given socket.
56
57       -u user/mask
58              Run the command only for the given user.  It's also possible  to
59              use '*' and '?' wildcards (e.g. -u *@example.org).
60              When  neither  the -A option nor -u user was specified, the com‐
61              mand will be executed with  the  environment  of  the  currently
62              logged in user.
63

ARGUMENTS

65       search_query
66              Messages  matching  this search query will be moved to alt stor‐
67              age.  See doveadm-search-query(7) for details.
68

FILES

70       /etc/dovecot/conf.d/10-mail.conf
71              Mailbox locations and namespaces.
72
73       /etc/dovecot/conf.d/auth-*.conf.ext
74              Authentication processes, including userdb settings.
75

EXAMPLE

77       This example moves seen mails older than one week to alternative  stor‐
78       age under /nfsmount:
79       mail_location = mdbox:~/mdbox:ALT=/nfsmount/%h/mdbox
80
81       doveadm altmove -u johnd@example.com seen savedbefore 1w
82

REPORTING BUGS

84       Report  bugs, including doveconf -n output, to the Dovecot Mailing List
85       <dovecot@dovecot.org>.  Information about reporting bugs  is  available
86       at: http://dovecot.org/bugreport.html
87

SEE ALSO

89       doveadm(1), doveadm-search-query(7)
90
91
92
93Dovecot v2.0                      2010-11-25                DOVEADM-ALTMOVE(1)
Impressum