Addition/Protect.Configure.Files

From iRedMail

Revision as of 08:32, 25 July 2010 by ZhangHuangbin (Talk | contribs)
Jump to: navigation, search

iRedMail-0.6.0 and earlier versions didn't set strict file permission on config files, even they contain username/passwords. Below's a quick fix, if you found that we missed some other files, please contact us.

  • On RHEL/CentOS:
Terminal:
# chmod 0500 /etc/dovecot.conf /etc/dovecot-ldap.conf /etc/dovecot-mysql.conf        # Dovecot
# chmod 0640 /etc/postfix/ldap_*.cf /etc/postfix/mysql_*cf        # Postfix
# chmod 0600 /etc/httpd/conf.d/awstats.conf                        # Awstats
  • On Debian/Ubuntu:
  • On FreeBSD:
Personal tools