You're now viewing all of my posts relating to Ubuntu. Enjoy!

Ubuntu Procmail / Fetchmail Issues

For some reason Ubuntu ships with the SUID bit set on procmail. This causes all mail to be delivered by procmail as though it were root, which is not that helpful to users trying to check their mail. I have no idea why I have to do this, but on every Ubuntu system I setup I have to run...

chmod a-s /usr/bin/procmail

... in order to actually get mail incoming. Symptoms are that users will continually get new mail notifications without any actual mail being visible to them. Administrators can see that some new mail files are in users' directory, but are owned by root instead of the user in question. Any thoughts on why, oh Intertron?


Regenerating Courier SSL Certificates on Ubuntu Linux

Waking up groggily as usual, I booted up Thunderbird to go through all the mail that had accumulated over the night and found a new dialog gracing me. Apparently, as it was telling me, the auto-generated SSL cert had expired. Oh well, all that I needed to do was track down how to regenerate it and go about my business. Well, this actually ended up being a little bit more troublesome than usual - so I decided to record it here as a is the usual case when I come into issues (because I know that five years from now I'll have the same issue and will have forgotten this).

Anyway, it's as simple as backing up the existing certificate:

sudo mv /etc/courier/imapd.pem /etc/courier/imapd-backup.pem

Then generating a new one to move into place:

openssl req -x509 -newkey rsa:1024 -keyout imapd.pem -out imapd.pem -nodes -days 365

This will generate the necessary certificate in whatever directory you're in. You could run it as root directly in the courier configuration directory, but we don't do that since we value our configuration files too much. Go ahead and move it into place:

sudo mv ./imapd.pem /etc/courier/imapd.pem

Now that that's in place just restart the courier-imap-ssl service and you should be good to go!

sudo /etc/init.d/courier-imap-ssl restart

Tada! Now you've got a brand new SSL certificate. I suppose that you could play with expiring the cert sooner or later by modifying the -days parameter. 365 is probably too high for any amount of auto-expiring security to take effect but I'm not amazingly concerned since I use it more for encryption than server identify verification. Enjoy your fresh new certificate now!

Thanks to Ivar Abrahamsen who's Mail Server Setup Howto led me to the generation command.


Ubuntu 7.04 Released!

The latest version of Ubuntu has been released into the wild! I'm currently grabbing the torrents off of our lovely fast unfiltered internet connection from Citescape. The joys of testing a new server O/S! I've put both of the torrent files up for download off of my site since Ubuntu's site is slow, but it's just a test - if it hammers my site too much I'll be taking them down.

What's new in this release? The biggest thing for me is built-in virtualization allowing easy testing of O/Ss and major patches before deployment. It will be interesting to see how well this works out. Off to testing I go!

- > Ubuntu 7.04 Desktop (i386)

- > Ubuntu 7.04 Server (i386)