Commits

Zhang Huangbin committed e840220

Code cleanup.

Comments (0)

Files changed (3)

iRedMail/ChangeLog

+iRedMail-0.8.0:
+    * It now works on OpenBSD. Tested with OpenBSD 5.1.
+
 iRedMail-0.8.0-beta4:
     * Add new value of enabledService: doveadm. Required by Dovecot-2.0
       service doveadm.

iRedMail/functions/cleanup.sh

                 Y|y )
                     ECHO_INFO "Restarting firewall ..."
 
-                    # openSUSE will use /etc/init.d/{SuSEfirewall2_init, SuSEfirewall2_setup} instead.
                     if [ X"${DISTRO}" == X'OPENBSD' ]; then
-                        /sbin/pfctl -f ${IPTABLES_CONFIG}
+                        /sbin/pfctl -ef ${IPTABLES_CONFIG}
                     else
+                        # openSUSE will use /etc/init.d/SuSEfirewall2_{init,setup} instead.
                         if [ X"${DISTRO}" != X"SUSE" ]; then
                             ${DIR_RC_SCRIPTS}/iptables restart
                         fi

iRedMail/samples/pf.conf

 # Basic OpenBSD PF rules, based on the original /etc/pf.conf.
 
 set block-policy drop
+block log all
 
 set skip on lo
-pass            # to establish keep-state
+#pass            # to establish keep-state
 
 # rules for spamd(8)
 table <spamd-white> persist
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.