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.
warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
August 17th, 2009 | Posted in Blog, Debian, Linux, Postfix | No Comments
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 [...]
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 [...]
How to find CDROM device on Solaris 10
May 7th, 2009 | Posted in Blog, Solaris | 2 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: SZPTZNM Size: 61.49GB <61492838400 bytes> Media Error: [...]
allow_url_fopen per domain
March 12th, 2009 | Posted in Blog, Linux, Plesk | No Comments
On Plesk you can allow allow_url_fopen per domain by editting the vhost.conf file for that domain and set the php_admin_flag as bellow. php_admin_flag allow_url_fopen on Once you have done this, run the Plesk magicwand /usr/local/psa/admin/sbin/websrvmng -v -a
Postfix: delete all MAILER-DAEMON mails
February 24th, 2009 | Posted in Blog, Linux, Postfix | No Comments
mailq | grep MAILER-DAEMON | awk ‘{print $1}’ | tr -d ‘*’ | postsuper -d — Or mailq | tail +2 | awk ‘BEGIN { RS = “” } / MAILER-DAEMON/ { print $1}’|postsuper -d —