MT6 webmail lighttpd
Jump to navigation
Jump to search
install lighttpd
pkg install -y lighttpd mkdir -p /var/spool/lighttpd/sockets chown -R www /var/spool/lighttpd/sockets
If you don't have an IPv6 address bound to this jail, disable IPv6 and the IPv4 port binding:
cd /usr/local/etc/lighttpd sed -i .bak -e 's/server.use-ipv6 = "enable"/server.use-ipv6 = "disable"/' lighttpd.conf sed -i .bak -e 's/^\$SERVER\["socket"\]/#\$SERVER\["socket"\]/' lighttpd.conf
Enable includes and install a mail-toaster.conf with vhost settings:
cd /usr/local/etc/lighttpd sed -i .bak -e 's/^#include_shell "cat/include_shell "cat/' lighttpd.conf fetch -o vhosts.d/mail-toaster.conf http://mail-toaster.org/etc/mt6-lighttpd.txt
start lighttpd
grep -q lighttpd_enable /etc/rc.conf || echo 'lighttpd_enable=YES' >> /etc/rc.conf service lighttpd start