If you ever need to route mail destined for a certain domain through a smarthost you can edit/create the following file; /var/qmail/control/smtproutes The contents is straight forward… to relay mail destined for domain.com through smtp.yourdomain.com add the following; domain.com:smtp.yourdomain.com If you want to relay ALL mail through smtp.yourdomain.com add; :smtp.yourdomain.com
Dell OMSA reports No controllers found.
March 9th, 2010 | Posted in Blog, Linux | No Comments
During a routine scheduled upgrade window I upgraded to the latest Dell OMSA on a range of Dell PowerEdge servers running CentOS. After the upgrade, shell scripts that check the health of disks started reporting that no storage controllers can be found. # omreport storage pdisk controller=0 Invalid controller value. Read, controller=0 No controllers found. [...]
Adding an ISO repository on XenServer 5.5
March 6th, 2010 | Posted in Blog, Xen | 2 Comments
In order to do advanced installs or installations where there are no templates under XenCenter and you wish to use your own custom ISO images, you can add an ISO repository. The following steps outlines what needs to be done; mkdir -p /var/opt/xen/iso_import Copy your ISO image to this directly, but be careful as the [...]
Solaris Core Install Recipe
February 8th, 2010 | Posted in Blog, Solaris | No Comments
This is a recipe I use when installing Solaris 10 (Core only). It’s easier to install the needed software than to trim down a full install and I like the fact that I have a clean server to start off with the minimal software installed. For disk layout, you can do whatever your comfortable with [...]
Linux & Solaris enable/disable X on boot
February 7th, 2010 | Posted in Blog, Solaris | No Comments
Linux Disable automatic startup of X on boot Change the default run level in /etc/inittab to 3 id:3:initdefault: Enable automatic startup of X on boot Change the default run level in /etc/inittab to 5 id:5:initdefault: Solaris 10 Disable automatic startup of X on boot # /usr/dt/bin/dtconfig -d Enable automatic startup of X on boot # [...]
Solaris 10 text mode installation
February 7th, 2010 | Posted in Blog, Solaris | No Comments
To install Solaris in text mode, do the following from OBP; boot cdrom – w Your solaris installation will start in text mode.
PowerDNS Multiple MySQL Backends
January 10th, 2010 | Posted in Blog, Linux, PowerDNS | No Comments
http://doc.powerdns.com/modules.html To launch two backends of the same type, you can assign a name to each launch like this; launch=gmysql:connection1,gmysql:connection2 gmysql-connection1-host=10.10.10.1gmysql-connection1-user=pdnsgmysql-connection1-dbname=pdns gmysql-connection2-host=10.10.10.2gmysql-connection2-user=pdnsgmysql-connection2-dbname=pdns
Debian reset root password
October 21st, 2009 | Posted in Debian, Linux | No Comments
In order to reset the password, you need to boot your debian installation into single user mode. You can do this by following the steps below; 1. Once grub menu comes up, select the single user entry and press ‘e’2. Select the kernel … line and press ‘e’ once again3. Append ‘init=/bin/bash’ at the end of line and [...]
Postfix port 587 (submission)
August 17th, 2009 | Posted in Blog, Linux | No Comments
Edit /etc/postfix/master.cf and uncomment the submission line; smtp inet n - - - - smtpd submission inet n - - - - smtpd Your postfix installation will now accept connections on both port 25 & 587 which is useful to hand out to users who’s ISP’s block outgoing connections to port 25.
Adding startup script to run levels
August 17th, 2009 | Posted in Blog, Debian | No Comments
Place the startup script in /etc/init.d/ then use update-rc.d to make it start on bootup with the following; update-rc.d myscript defaults The option “defaults” puts a symlink to start myscript on run levels 2, 3, 4 and 5 and a symlink in 0, 1 and 6 to stop myscript on shutdown/reboot.