0
我们正在尝试设置Apache Mod Evasion以防止将来在我们的某台服务器上发生DOS攻击。除了电子邮件通知外,一切似乎都运作良好。该堆栈在Ubuntu Server 16.04上运行PHP 7.1和Apache2.4。Mod Evasion电子邮件通知问题
sudo su - www-data -s /bin/bash -c 'echo "this is the body" | mail -s "Subject" [email protected] [email protected]'
这里是国防部evasion.conf:
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 1
DOSSiteCount 1
DOSPageInterval 10
DOSSiteInterval 10
DOSBlockingPeriod 10
DOSEmailNotify root
#DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"
DOSLogDir "/var/log/mod_evasive"
</IfModule>
这里是ssmtp.conf文件:
[email protected]
FromLineOverride=YES
Debug=YES
UseSTARTTLS=YES
UseTLS=YES
mailhub=email-smtp.us-east-1.amazonaws.com:465
AuthUser=#######
AuthPass=#######
AuthMethod=LOGIN
这里
电子邮件通过测试命令工作正常是revaliases文件:
root:[email protected]:email-smtp.us-east-1.amazonaws.com:25
www-data:[email protected]:email-smtp.us-east-1.amazonaws.com:25