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

NAME

6       doveadm-save - Save email to a user's mailbox
7

SYNOPSIS

9       doveadm [-Dv] save [-S socket_path] -u user [-m mailbox] [mail-file]
10       doveadm [-Dv] save [-S socket_path] -A [-m mailbox] [mail-file]
11       doveadm [-Dv] [-f formatter] save [-S socket_path] -F file [-m mailbox]
12       [mail-file]
13

DESCRIPTION

15       doveadm save can be used to save  messages.  This  can  be  useful  for
16       scripts  and  for  debugging.  Sieve is not invoked for saved messages,
17       but quota is enforced.
18

OPTIONS

20       Global doveadm(1) options:
21
22       -D     Enables verbosity and debug messages.
23
24       -o setting=value
25              Overrides  the  configuration  setting  from  /etc/dovecot/dove‐
26              cot.conf  and from the userdb with the given value.  In order to
27              override multiple settings, the -o option may be specified  mul‐
28              tiple times.
29
30       -v     Enables verbosity, including progress counter.
31
32       Command specific options:
33
34       -A     If  the  -A option is present, the command will be performed for
35              all users.  Using this option in combination with  system  users
36              from  userdb  { driver = passwd } is not recommended, because it
37              contains also users with a lower UID  than  the  one  configured
38              with the first_valid_uid setting.
39
40              When  the  SQL  userdb  module  is used make sure that the iter‐
41              ate_query setting in  /etc/dovecot/dovecot-sql.conf.ext  matches
42              your  database  layout.  When using the LDAP userdb module, make
43              sure that  the  iterate_attrs  and  iterate_filter  settings  in
44              /etc/dovecot/dovecot-ldap.conf.ext match your LDAP schema.  Oth‐
45              erwise doveadm(1) will be unable to iterate over all users.
46
47       -F file
48              Execute the command for all the users in the file.  This is sim‐
49              ilar  to the -A option, but instead of getting the list of users
50              from the userdb, they are read from the given  file.   The  file
51              contains one username per line.
52
53       -S socket_path
54              The option's argument is either an absolute path to a local UNIX
55              domain socket, or a hostname and port (hostname:port), in  order
56              to connect a remote host via a TCP socket.
57
58              This allows an administrator to execute doveadm(1) mail commands
59              through the given socket.
60
61       -u user/mask
62              Run the command only for the given user.  It's also possible  to
63              use '*' and '?' wildcards (e.g. -u *@example.org).
64              When  neither  the  -A  option,  nor the -F file option, nor the
65              -u user was specified, the command will  be  executed  with  the
66              environment of the currently logged in user.
67
68       -m mailbox
69              Store mail to specified mailbox instead of INBOX.
70

EXAMPLE

72       echo "hello, world" | doveadm save -u testuser@testdomain
73

REPORTING BUGS

75       Report  bugs, including doveconf -n output, to the Dovecot Mailing List
76       <dovecot@dovecot.org>.  Information about reporting bugs  is  available
77       at: http://dovecot.org/bugreport.html
78

SEE ALSO

80       doveadm(1), doveadm-search(1), doveadm-search-query(7)
81
82
83
84Dovecot v2.3                      2017-05-11                   DOVEADM-SAVE(1)
Impressum