I was trying to install iRedMail, but it’s just impossible to download it. Neither wget or curl does the trick without some curl-fu applied.
curl -L -O https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.0.tar.bz2
The key is using the -L switch. wget’s equivalent should be “–content-disposition” but that still doesn’t work when downloading from bitbucket. Just gives a 403 and gives up.