Postfix “file too large” error message

Running postfix on a CentOS mail server I got the following error message both in a returned email and also in the log file: "cannot update mailbox … error writing message: File too large". This post looks at the erorr message in the bounce email, the log files, and the solution to the error. This error will also affect postfix mail servers on Red Hat Enterprise Linux and probably other default installs of Postfix as well.

Unknown partition table error

After re-partitioning a hard drive by removing all existing partitions and creating a single primary parition which takes up the entire disk, I formatted it as ext3, mounted it at /mnt/hdh and copied all the ISO images across from the exsting ISO drive. I rebooted, pausing to swap the disk over to a different cable, and got the error message "hdb: unknown partition table".

Create a file with a unique name with PHP

The PHP function tempnam() creates a file with a unique name. This can be useful if you need to output some data into a temporary file for one reason or another, and the actual name of the file is not important.

Categories PHP

Install VMWare Tools on a Linux Guest Virtual Machine

VMWare Workstation and the various flavours of VMWare Server allow you to install a package called "VMWare Tools". These VMWare Tools contain various methods of communication between the guest virtual machine and the host and in general should make the guest VM run better. This post looks at how to install VMWare Tools on a Linux guest machine, specifically on a CentOS guest (and therefore should be the same for Red Hat Enterprise Linux and Fedora and their derivatives).

Changing the default text editor on Linux

The default command line text editor on Linux (and BSD varaiants) determines what is used when you run commands such as "crontab -e" and is often not what you want to use yourself. Typcially vi/vim is the default text editor; many people prefer emacs or other editors, and I prefer to use nano myself.