Commits

Zhang Huangbin  committed 3f4c114

Code cleanup: postfix on Port 465 is depreciated.
Feedback from mike.f@forum, thanks. :)

  • Participants
  • Parent commits f48f8a8

Comments (0)

Files changed (4)

File iRedMail/functions/awstats.sh

 <Directory ${AWSTATS_CGI_DIR}/>
     DirectoryIndex awstats.pl
     Options ExecCGI
-    order deny,allow
+    Order allow,deny
     allow from all
     #allow from 127.0.0.1
 

File iRedMail/functions/cleanup.sh

             if [ X"${DISTRO}" == X"SUSE" ]; then
                 # Below services are not accessable from external network:
                 #   - ldaps (636)
-                perl -pi -e 's/^(FW_SERVICES_EXT_TCP=)(.*)/${1}"$ENV{'HTTPD_PORT'} 443 25 465 110 995 143 993 587 465 $ENV{'sshd_port'}"\n#${2}/' ${IPTABLES_CONFIG}
+                perl -pi -e 's/^(FW_SERVICES_EXT_TCP=)(.*)/${1}"$ENV{'HTTPD_PORT'} 443 25 110 995 143 993 587 465 $ENV{'sshd_port'}"\n#${2}/' ${IPTABLES_CONFIG}
 
             elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
                 # Copy sample rc script for Debian.

File iRedMail/functions/postfix.sh

   -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
 #  -o content_filter=smtp-amavis:[${AMAVISD_SERVER}]:10026
 
-smtps     inet  n       -       n       -       -       smtpd
-  -o smtpd_tls_wrappermode=yes
-  -o smtpd_sasl_auth_enable=yes
-  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
-#  -o content_filter=smtp-amavis:[${AMAVISD_SERVER}]:10026
 EOF
 
     echo 'export status_postfix_config_tls="DONE"' >> ${STATUS_FILE}

File iRedMail/samples/iptables.rules

 -A INPUT -i lo -j ACCEPT
 
 # http/https, smtp/smtps, pop3/pop3s, imap/imaps, ssh
--A INPUT -p tcp -m multiport --dport 80,443,25,465,110,995,143,993,587,465,22 -j ACCEPT
+-A INPUT -p tcp -m multiport --dport 80,443,25,110,995,143,993,587,465,22 -j ACCEPT
 
 # Allow PING from remote hosts.
 -A INPUT -p icmp --icmp-type echo-request -j ACCEPT