CentOS 5.5 and SendMail 8.13: Configure smarthost for using TLS

Step 1
Check if sendmail is compiled with TLS (for encryption) and SASL (for authentication). This is the command to use to check it.

#/usr/sbin/sendmail -d0.1 -bv root

You must read something like “Compiled with…STARTTLS”

Att.: If you’ve installed sendmail using yum, TLS support is present !

Step 2
Install all these packages

# yum install sendmail sendmail-cf cyrus-sasl-plain cyrus-sasl-md5

Step 3
Create certificates

# cd /etc/pki/tls/certs
# make sendmail.pem

Continue reading

Copying files from EXT3 to FAT

FatVsXFSThere are times which that is convenient to use USB disks formatted with the old FAT file system, i.e. in office environment with mixed operating system.

In my situation we have a linux server (using ext3 file system), with several SMB shared folder used by all the MAC/Linux/Windows workstation:  a very cheap backup system consist in a USB disk connected directly to the server, and a daily backup process that copy all the files from shared folders to this disk. In emergency this disk become the only way to get all files.

From here the most convenient way to use commonly a USB disk is to format it using the old FAT file system !

Continue reading

CentOS & HyperV just do not mix !

Cat and Dog angrySome months ago I’ve installed a guest CentOS 6.3 in Hyper-V vers. 6.0.6002 in Windows 2008 Standard Ed, without any Linux Integration Components (i’m lazy……).

Using yum I’ve installed a LAMP, and created a php-mysql website.

It seemed to work correctly… but after some days the websites stopped to work: I got the following errors in /var/log.

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
rejecting i/o to offline device

Continue reading