smart01 wrote:
Now i want to enable it after some testing.
Is there an easy was to to so with maybe a switch in iRedmail.sh ?
You can copy files shipped in iRedMail to achieve this purpose:
- iRedMail-0.8.5/samples/iptables.init.debian -> /etc/init.d/iptables
- iRedMail-0.8.5/samples/iptables.rules -> /etc/default/iptables
Then you can control iptables service with /etc/init.d/iptables script (stop/start/restart).
WARNING: please check /etc/default/iptables before starting/restarting it, for example, open required network ports like sshd.