Qmail发送邮件限制

Outgoing mails limit in Qmail

我在谷歌上搜索了一下,发现这个 link 很有帮助 https://serverfault.com/questions/538233/qmail-limit-number-of-emails-sent-by-user-or-domain-per-hour

我的 OS 是 Centos 和 Plesk 11.x + Qmail

    I tried my best to follow given directives in the link e.g.
    1) I installed spamdkye successfully 
    2) Created mkdir -p /home/vpopmail/bin/qmail-antispam
    3) mkdir -p /etc/qmailadmin/qmail-spam/blacklist
    4) crontab -e 
    */5 * * * * /home/vpopmail/bin/qmail-antispam >> /var/log/maillog 2>&1

5) I saved script as qmail-antispam as well as moved as blacklist but on both positions it displays:
Code:
# tail -f /var/log/maillog | grep "qmail-antispam"
/bin/sh: /home/vpopmail/bin/qmail-antispam: is a directory
/bin/sh: /home/vpopmail/bin/qmail-antispam: is a directory
Tue Oct 20 12:55:01 CDT 2015 qmail-antispam : Revisando logs
Tue Oct 20 12:55:01 CDT 2015 qmail-antispam : Fin de revision
Tue Oct 20 13:00:01 CDT 2015 qmail-antispam : Revisando logs
Tue Oct 20 13:00:01 CDT 2015 qmail-antispam : Fin de revision

问题: 请告知在哪里:
1) 我将此脚本保存在 /etc/qmailadmin/qmail-spam/blacklist 或 /home/vpopmail/bin/qmail-antispam 中并使用哪个名称?

2) MAX_CORREOS=3000 //这是设置最大限制吗?
ID_SERVER="ID_SERVER" //我可以将其更改为我的服务器主机名吗?
CONTACTO=admin@gmail.com //这里我设置了管理员邮箱来发送报告。是吗??

请指教

感谢期待

vi /home/vpopmail/bin/qmail-antispam

复制并粘贴 Link 中提供的脚本 编辑脚本并更改以下内容:

MAX_CORREOS=100 
ID_SERVER="my server hostname"
CONTACTO=admin@gmail.com

# chown root /home/vpopmail/bin/qmail-antispam
# chmod 755 /home/vpopmail/bin/qmail-antispam

并检查其是否正常工作:

# tail -f /var/log/maillog | grep "qmail-antispam"
Wed Oct 21 19:20:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:25:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:30:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:35:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:40:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:45:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:50:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 19:55:01 CDT 2015 qmail-antispam : Revisando logs
Wed Oct 21 20:00:01 CDT 2015 qmail-antispam : Revisando logs