Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Hastymail2 : Simple IMAP webmail client using Nginx & PHP5
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Hastymail2 : Simple IMAP webmail client using Nginx & PHP5

edited June 2013 in Tutorials

Step 0 : Purchase new VPS, if required. If you already have a VPS running Nginx with PHP enabled, skip to Step 4.

Step 1 : Install Debian and slim down your shiny new VPS (inspired by the famous article on LEB and lowendscript)

wget --no-check-certificate https://github.com/lowendbox/lowendscript/raw/master/setup-debian.sh

bash setup-debian.sh system

Step 2 : Install Nginx with the lowendscript

bash setup-debian.sh nginx

Step 3 : Install PHP5 with the lowendscript

bash setup-debian.sh php

Step 4 : Configure your webserver

In /etc/nginx/sites-available/, create a file such as yourfqdn.tld. The contents of this file should be something similar to this basic php enabled website configuration:

server {

server_name yourfqdn.tld;

root /path/to/your/document/root/;


include /etc/nginx/fastcgi_php;

location / {

    index index.php;

}

}

Symlink your configuration file to the sites-enabled folder.

ln –s /etc/nginx/sites-available/yourfqdn.tld /etc/nginx/sites-enabled/yourfqdn.tld

Restart nginx so it's ready to accept the newly configured site.

/etc/init.d/nginx restart

Step 5 : Install Hastymail2

Follow the simple instructions at http://www.hastymail.org/install.

Note that on a typical Debian distribution, the webserver runs as www-data.

Step 5 : Fire up your browser and point it to your newly installed Hastymail2 installation and voila!

Have fun with a lightweight, full featured IMAP/SMTP PHP webmail client without wasting precious low end VPS resources on a database engine!

See feature set at http://www.hastymail.org/.

Comments

  • I prefer Roundcube for webmail.

  • I used Hastymail v1 for years, very solid. Then switched to Roundcube, primarily for cosmetic reasons (layout/design). I haven't tried Hastymail2, but for anyone looking for a webmail app it's worth a look. The guy who develops it is very good. IIRC, he worked on Squirrelmail years ago.

  • @sleddog : I also used HM1 and have had solid performance. I agree that some of the other PHP IMAP clients may have better look and feel, but I like how lightweight HM2 is w/out a required db engine.

  • WoopWoop Member

    Wouldn't it better to use https://github.com/Xeoncross/lowendscript

    Then you can just type ./setup-debian.sh site example.com

  • I was using the original lowendscript for old time's sake, and for solidarity with the original work of LEA on this suite of sites. One doesn't even need to optimize at all!

Sign In or Register to comment.