#!/bin/sh
blockaccount()
{
if [ "$user" = "$1" ] || [ "$newuser" = "$1" ]; then
echo "You cannot create an account named $1";
exit 1;
fi
}
if [ "$command" = "/CMD_EMAIL_POP" ]; then
if [ "$action" = "create" ] || [ "$action" = "modify" ]; then
blockaccount root;
blockaccount webmaster;
blockaccount postmaster;
fi
fi
exit 0;
防止使用all_pre.sh脚本添加某些电子邮件名称
来源:未知
作者:张宇
浏览量:98
更新:2018-04-20
如果您希望阻止用户添加诸如root,webmaster,postmaster之类的电子邮件名称,请在以下代码中使用以下代码:
/usr/local/directadmin/scripts/custom/all_pre.sh
脚本:











