Advertisement
Guest User

Untitled

a guest
May 4th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SQL="select email from mail_accounts where enabled=1"
  4.  
  5. LINES=$( echo $SQL | /usr/bin/mysql -u mail --password=?????????? mail )
  6.  
  7. for M in $LINES; do
  8.   if [ $M != "email" ]; then
  9.     echo "x GETQUOTAROOT Inbox" | USER=$M /usr/sbin/dovecot --exec-mail imap
  10.   fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement