Testing Exchange 2007 IMAPS using OpenSSL

I was trying to find out why Thunderbird wasn’t working with Exchange 2007 IMAPS (SSL). So I started testing this using OpenSSL using the following command.

openssl s_client -connect imap.host.ca:993

However, I was able to use the LOGIN command, no command would return an error or any information. I did some searching and found that you need to include “-crlf”, from the man page.

this option translated a line feed from the terminal into CR+LF as required by some servers.

Adding this option then allowed me to login successfully. That was a good waste of 2 hours.

You May Also Like

Exim4 and PHP and PHP-CGI mail() function using incorrect From: and applying Sender: headers.

If you're using Exim4 and PHP as a module or as a CGI with suexec. You may have noticed some issues with your mail. Specifically you would have noticed that either the "From:" header was using "nobody@machinename" or "user@machine name, its also possibly that you had an additional header called "Sender:". There are two things you need to do to fix this. You first need to make sure that your "php.ini" has the following value "sendmail_path = /usr/sbin/sendmail -t -i". Which is the default, double check this variable as it might be set to something else.

Setting up daily, weekly and monthly MySQL Database Backups using AutoMySQLBackup

AutoMySQLBackup is a shell script that allows daily, weekly and monthly backups of your local and remote MySQL Databases. It's meant to run on Linux/Unix through a cron job. Its highly configurable, and easy to setup as I will show you today! First you will need to acquire the shell script and drop it on your server. You can download AutoMySQLBackup on their SourceForge Project Page