Revision: 14454
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 4, 2009 12:29 by bhubbard
Initial Code
#!/bin/bash # This script finds all sites in Plesk that have the mail enabled, then disables them. SiteList=`egrep 'Server(Name)' /var/www/vhosts/*/conf/httpd.include|awk '{print $3}'|grep -v www.*|grep -v '^.*\..*\..*$'|sed 's/:80//'|sed 's/:443//'|sort -u`; for Site in $SiteList do Result=`/usr/local/psa/bin/domain -i $Site | grep 'Mail service' | awk '{print $3}'`; if [ $Result == On ]; then Command=`/usr/local/psa/bin/domain -u $Site -mail_service false` echo "Turning Off Mail Service: $Site"; fi done
Initial URL
Initial Description
Initial Title
Disable Mail for all domains in Plesk
Initial Tags
Initial Language
Bash