Ubuntu has now days awesome start/stop system called Upstart which has replaced /sbin/init. It is also capable to supervising processes. It is really simple to add new processes to upstart. I wanted my blog start automatically on system boot and therefore I added my blog under upstarts control.
I had problems with mail delivery on one server where server self doesn’t have any email services. The case was following: server’s hostname was example.com and emails for example.com was handled by another server. By default sendmail will treat all emails sent to example.com meant for local users eg. user@example.com will be searched from local user table.
I wanted all emails to example.com to be delivered to domains email server which was defined on MX record. I’m not sendmail expert and for my own servers I prefer postfix, but this was client’s server so I had to figure out how to configure sendmail handle this case.
One of sites which I admin lived on hosting providers server which was powered with CPanel and I moved it on VPS few days ago. I had tar file which was CPanel’s full backup of host. Emails and website was easy to migrate from that backup because tar contained all emails on Maildir format and whole website was on one folder. Mailing list migration was more trickier because of CPanels patched version of Mailman.
I found this helpful Mailman migration article, but it was for normal Mailman setup and steps are little bit different if you are moving away from CPanel. I didn’t find too much information of CPanel’s Mailman so I wrote this small tutorial for other admins who are moving away from CPanel and have to migrate their mailing lists to standard Mailman setup.
Yesterday I faced with really weird issue with PHP’s session handling. At work we are hosting dozens of sites on our servers and suddenly on one server we were getting lot of weird out of space errors when PHP tried to open session files. Error message was “Warning Unknown: open(/path/to/sessions/sess_somehash, O_RDWR) failed: No space left on device (28)” . Because of those errors I was believing we were somehow running out of space on apache’s temp file partition. Truth was there was only few megabytes data, but the problem was that we had over 200 000 files on one folder and PHP got crazy of that.
I didn’t find out better title for this article so I named simply “High load, bounces and email marketing” because this article and my last week problem relates to those topics. Last week I was leaving from work when I found that one of our server was under heavy load. I was almost restarting Apache when remembered that I had few days earlier read blog post about how someone had missed why their server was under high load because he had not looked server’s logs.