Category: How-to

  • Automatically redirect to HTTPS with .htaccess

    I caught the flu last week that’s why I haven’t been posting regularly.  =0( Anyway, I wrote previously on how to password-protect a website/page, but in this post I’ll show you how to redirect a user automagically to HTTPS. All you need to do is add the following in the .htaccess file (I’ll be using…

  • Creating a self-signed cert

    If you need to support or serve your website using SSL, but only for personal purposes, such as a webmail, you’ve probably come across the problem of creating your own server certificate. Secure Sockets Layer (SSL), are cryptographic protocols which provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging…

  • Bad-Behavior MediaWiki Plugin Fix

    If you use MediaWiki to power your wiki, you’ve probably heard of the Bad-Behavior plugin to help fight spam. Bad Behavior is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer,…

  • Use another SMTP server with Postfix

    , ,

    Over the weekend, I finally installed and configured my own e-mail server. What a challenge that was! I’m successfully running Postfix, Dovecot, Spamassassin, Amavisd-new, ClamAV, SQLgrey, and Squirrelmail. I, however, encountered problems sending to Gmail. It returned with the following message: host gmail-smtp-in.l.google.com[64.233.163.27] said: 550-5.7.1 [76.170.212.236] Our system has detected an unusual amount of unsolicited…

  • What to check when encountering Exchange user name and password errors

    ,

    A C# web app I’m developing requires pulling (and deleting already read e-mails) from an Exchange 2003 server.  I used the POP3 code that I actually shared/posted about yesterday; however, I was getting this error, though I had the correct user name and password: -ERR Logon failure: unknown user name or bad password. It was…

  • Mac OS X verbose mode on boot

    ,

    If you, like me, come from a strong Linux background and have recently migrated to Mac OS X, then I think you’ll really find this tip helpful. As you may know, the OS X boot sequence details is hidden from the user by default; you basically only see the Apple logo and a load status…