Wednesday, April 8, 2009

Fixing Sendmail (dead.letter issue)

OK, we have lots of machines that we host out on slicehost. We want them to be part of our domain (foo.ourdomain.com). So, we configure their hostname to be that. Unfortunately, we want them to be able to send mail to people in our domain (john@ourdomain.com). Since the machine thinks it is part of the domain, it looks for that user, can't find them and consequently fails to send the mail out.

Testing sendmail, it always drops the mail into dead.letter immediately.

To fix this, I simply edited /etc/mail/sendmail.cf and uncommented the domain, setting it to some fictitious name (since the machine won't be the destination for any mail.

I uncommented this line:
Dj$w.Foo.COM

Monday, January 5, 2009

Linux System Information

Presently we are building an inhouse compute cloud, which means admining a bunch of machines. To get quick information on the compute power of a machine look in:

/proc/meminfo
/proc/cpuinfo
/etc/issue (since these are ubuntu machines)
and a df-k for disk space.

-brian