服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

使用Web服务器的日志保护外发电子邮件

在Web服务器上,我将运行rkhunter,tripwire,OSSEC,fail2ban和psad。 所有这些应用程序都需要能够发送电子邮件通知系统pipe理员。 所以,我已经: sudo apt-get install -y mailutils postifx 然后,我configuration了postfix来捕获发送到root @ localhost的邮件,并将这些邮件发送到[email protected]: sudo nano /etc/aliases 而且我添加了这个别名(在postmaster: root之后postmaster: root ): root: [email protected] 我已经允许端口25 / TCP的传出stream量(因为我的默认UFW政策是在input,输出和FORWARD的DROP) sudo ufw allow out 25/tcp 我现在只能发送电子邮件,而且我将仅使用postifx /邮件列出上述应用程序,而我将使用PHPMailer作为Web应用程序本身(login通知,电子邮件validation,密码更改通知等)。 )。 在这一点上,我想知道: 是postfix /邮件,因为我上面设置,一个安全的方式发送日志的安全性? 假设一个攻击者想要得到我的日志,那么用我目前的configuration有多难? 有谁知道一个很好的链接在哪里可以学到一些东西,可以帮助我在这个东西? 我的后缀TLSconfiguration行: smtp_enforce_tls=yes smtp_use_tls=yes smtp_tls_security_level=encrypt smtp_tls_mandatory_ciphers = high smtp_tls_loglevel = 1 smtp_tls_session_cache_timeout = 3600s smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache tls_random_source = […]