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.
Postfix port 587 (submission)
August 17th, 2009 | Posted in Blog, Linux | No Comments
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.
warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
August 17th, 2009 | Posted in Blog, Debian, Linux, Postfix | No Comments
Check the OPTIONS directive in /etc/default/saslauthd and set it to within your postfix chroot.
OPTIONS=”-c -r -m /var/spool/postfix/var/run/saslauthd”
Then run;
dpkg-statoverride –add root sasl 710 /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
Restart both postfix and saslauthd for the changes to take effect.
Debian xenserver updates apt repository missing GPG key
August 13th, 2009 | Posted in Blog, Debian, Linux, Xen | No Comments
After you’ve installed XenTools on your VM and you try to do a apt-get update you are greeted with a GPG error message saying that the repository isn’t trusted. This is because the GPG key Citrix use to sign their packages has not been added to the apt keyring.
To fix it, run;
wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- [...]
CentOS yum update Missing Dependency
August 13th, 2009 | Posted in Blog, Linux | No Comments
yum clean all
yum update
error: xenconsole: Could not open tty `/dev/pts/2': No such file or directory
August 13th, 2009 | Posted in Blog, Linux, Xen | No Comments
Error: xenconsole: Could not open tty `/dev/pts/2′: No such file or directory
Check whether xenconsoled is running, if not;
/etc/init.d/xend start
or
xenconsoled
mount: could not find any device /dev/loop#
July 1st, 2009 | Posted in Blog, Linux | No Comments
If you get the above error while trying to mount an ISO image, try to the following;
Option 1
MAKEDEV loop (If it doesn’t exist already)
modprobe loop
mount -t iso9660 -o loop yourisofile.iso /mnt/iso
Option 2
cd /dev/;mkdir loop;cd loop;mknod 0 b 7 0
mount -t iso9660 -o loop yourisofile.iso /mnt/iso
Find files between two dates
June 23rd, 2009 | Posted in Blog, Linux | No Comments
# touch -amt 200906220000 /tmp/date1# touch -amt 200906222359 /tmp/date2# find / -type f -newer /tmp/date1 -a ! -newer /tmp/date2–
apt-get update GPG error
June 23rd, 2009 | Posted in Blog, Debian, Linux | No Comments
W: GPG error: http://ftp.uk.debian.org etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302BW: There is no public key available for the following key IDs:9AA38DCD55BE302BW: You may want to run apt-get update to correct these problems
Solution:
# gpg –recv-keys 9AA38DCD55BE302B# gpg –export 9AA38DCD55BE302B | apt-key add —
OR
# apt-get install [...]
How to find CDROM device on Solaris 10
May 7th, 2009 | Posted in Blog, Solaris | No Comments
I recently had to install Solaris 10 on a old Ultra 10 workstation and had trouble figuring out which device was the cdrom…
This is how I found it;
# iostat -En
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: IC35L060AVER07-0 Revision: ER6OA46A Serial No: [...]