![]() |
Web/Mail server, DebianSlugI previously had a full-size PII 333Mhz machine running Ubuntu being a mail/web server. It's fine, but is a big hulking box and it draws 40-60Watts and, well, the slug is groovy. My Slug has been through some incarnations:
It's currently a mail/web/webmail/http proxy server. Each step has been very easy (I am Linux-literate) - combination of the power of Debian apt-get and help from the Ubuntu wiki. It seems to be using only a little swap, and performing very well for my household. The InstallationJust followed the bootstrap instructions. This seemed to install exim4, which I didn't want, but Edited /etc/hostname and /etc/hosts to something nice. ntpdateI installed ntpdate - had to change its config to us.pool.ntp.org to get it to work. I've added a cron entry to run lighttpdMuch less resource-hungry than Apache. I have previously used Apache2, but I have a simple site, and the move was painless and the config clear. It feels faster on my local network than Apache did on the PII 333 machine!? Given that I'm operating on a domestic cable modem, the power of the slug is not the weak point in the system! I went with the Ubuntu suggestions of Postfix, with Dovecot for imap(s) - easy, and clear, following the Ubuntu wiki instructions. ssh to the worldWanting ssh access from the wide world, I did a couple of things for security - disabled password logins, and force private key auth, and on my router, forwarded an unusual, high port to the slug ssh (security-through-obscurity is at least an improvement). Also disabled root login via ssh. PrivoxyI installed privoxy as an http proxy, so I can ssh from work, and forward ports for imaps/smtp/http proxy. e.g.: ssh -f -N -Llocalhost:8118:localhost:8118 <<myhost>> gives you an apparent web proxy on my work machine, that is actually the proxy on my home slug, and the added advantage of filtering out ads. It has to be configured to accept connections from any host. Webmail - SquirrelmailIf you try to The other thing, was to set up https, as Squirrelmail sends passwords in cleartext, so from looking around the lighttpd.org doc, I set up https, and a redirect from the mail http url to https. Pretty easy. Todowork out a spam filtering option (bogofilter?).Page last modified on July 22, 2006, at 06:51 PM
|