ciphermethod.com

Postfix/SASL CHROOT Links

by on Feb.28, 2012, under Debian, Ubuntu

Issue:
warning: SASL authentication failure: cannot connect to saslauthd server: Too many levels of symbolic links

Fix:
rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd

Leave a Comment more...

apt-get install not replacing deleted config file

by on Feb.23, 2012, under Debian, Linux

Problem:
An apt-get install is not replacing deleted config files…

Example:
Setting up dovecot-common (1:1.2.12-1ubuntu8.3) …
Not replacing deleted config file /etc/dovecot/dovecot.conf
Not replacing deleted config file /etc/dovecot/dovecot-ldap.conf
Not replacing deleted config file /etc/dovecot/dovecot-sql.conf
grep: /etc/dovecot/dovecot.conf: No such file or directory
grep: /etc/dovecot/dovecot.conf: No such file or directory

Solution:

apt-get --purge autoremove package


Leave a Comment more...

Postfix/Dovecot Install

by on Feb.23, 2012, under Linux, Red Hat

Install Postfix:
yum install postfix (RedHat)
apt-get install postfix (Debian)

Add Domains to Accept Mail For:
vi /etc/postfix/main.cf
set
mydestination = localhost.localdomain, localhost, domain.com, host

Tell Postfix to use Maildir instead of mbox format:
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command ="

Set MAIL variable in /etc/profile:
export MAIL=$HOME/Maildir

Restart Postfix:
service postfix restart

Mail local user and confirm mail is delivered.

Install Dovecot:
apt-get install dovecot-common dovecot-imapd dovecot-pop3d

Leave a Comment more...

Dragonvale: How to Breed a Panlong Dragon

by on Feb.15, 2012, under Games

Fog + Lava
Mud + Blazing

If your really lucky, you’ll get a Rainbow Dragon in the process.




Leave a Comment more...

rocheck.sh

by on Nov.17, 2011, under Scripts

#!/bin/sh

# Created 20111107 – Jamey Hopkins
# Nagios script to check base file paths for a possible read only filesystem condition

USER=`whoami`
F=”rocheck.safetodelete”
# sets paths to test
PATHS=`df -P -l -x tmpfs -x vmhgfs -x iso9660 | column -t | awk ‘{ print $6 }’ | grep -v “Mounted” | xargs echo`
# define specific paths
#PATHS=”/ /home /opt /tmp /usr /var”

if [ “$USER” != “root” ]
then
   echo “Run $0 command as root”
   exit
fi

for P in `echo $PATHS`
do
   [ “$P” = “/” ] && P=”” # don’t process a double slash
   PF=”$P/$F”
   touch $PF >/dev/null 2>&1
   if [ “$?” != “0” ]
   then
      [ “$P” = “” ] && P=”/” # add slash back if it was ro
      FAIL=”$FAIL $P” # add P to string of failed paths
   fi
   [ -e $PF ] && rm $PF >/dev/null 2>&1
done

if [ “$FAIL” != “” ]
then
   # return an error 2 status with a list of directories that failed the touch test
   echo “Read Only:$FAIL”
   exit 2
fi

# return a good status with the list of directories that were checked
echo “Good: $PATHS”
exit 0

Leave a Comment more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...