Qmailtoaster change ‘postmaster’ password for all domains
Posted on | February 3, 2010 | No Comments
Last year I needed to change the password of all postmaster accounts at company server and I didn’t googled anything, so I made this script:
#!/bin/bash
#############################################################
# Qmailtoaster change 'postmaster' password for all domains #
#############################################################
# bY Marco Rodrigues (Kmos) in 2k #
# http://Marco.Tondela.org #
#############################################################
# Check every directory (domain) recursively and change postmaster password.
for dir in `ls -R`; do
if [[ $dir =~ [^\.]+\.(com|net|org|pt)$ ]]; then
/home/vpopmail/bin/vpasswd postmaster@$dir password
echo "Password changed for postmaster@$dir"
fi
done
I hope it could help *you* some day
Comments
Leave a Reply


1431
21
3
0
0
1361
66
52
14
11
0
0
0
0
0
0
0