Easily execute commands from dovecots libexec_dir
doveadm [-Dv] exec binary [binary arguments]
This command allows administrators and local users to simply execute commands from within libexec_dir. So for example a logged in system user could start a pre-authenticated imap session, using the command: doveadm exec imap. An administrator would use the command: doveadm exec imap -u username.
Global doveadm(1) options:
-D
Enables verbosity and debug messages.
-v
Enables verbosity, including progress counter.
binary
the name of an executable located in /usr/lib/dovecot.
binary arguments
options and arguments, wich will be passed through to the binary.
This example demonstrates how to deliver a message from a file to a user's mailbox.
doveadm exec dovecot-lda -d [email protected] \(rs -f [email protected] < \(ti/stuff/welcome.msg
Report bugs, including doveconf -n output, to the Dovecot Mailing List <[email protected]>. Information about reporting bugs is available at: http://dovecot.org/bugreport.html