禁用Plesk中所有域的邮件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了禁用Plesk中所有域的邮件相关的知识,希望对你有一定的参考价值。
#!/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
以上是关于禁用Plesk中所有域的邮件的主要内容,如果未能解决你的问题,请参考以下文章