View and Delete Qmail Queue

I was having some trouble with spam bounce backs clogging up a Qmail server by getting stuck in the queue for days. This page has some good solutions for handling it.
I used qmhandle to view the queues and make sure nothing Local was pending, then wiped out about 1750 spam bounces. woo hoo!

Posted in Uncategorized | Leave a comment

ModPagespeed Virtual host configuration

It seems the document for vhost config left out the line for ModPagespeedGeneratedFilePrefix because when I copied them I got this error:
mod_pagespeed is enabled. The following directives must not be NULL\nModPagespeedFileCachePath=/var/cache/mod_pagespeed/\nModPagespeedGeneratedFilePrefix=
Configuration Failed

This is what I used and seems to work

ModPagespeed on
# The ModPagespeedFileCachePath directory must exist and be writable by the
# apache user (as specified by the User directive).
ModPagespeedFileCachePath "/var/mod_pagespeed/cache/"
ModPagespeedGeneratedFilePrefix "/var/mod_pagespeed/files"

# Other ModPagespeed directives here ...
# This page lets you view statistics about the mod_pagespeed module.

Order allow,deny
# You may insert other "Allow from" lines to add hosts you want to allow to
# look at generated statistics. Another possibility is to comment out the
# "Order" and "Allow" options from the config file, to allow any client that
# can reach your server to examine statistics. This might be appropriate in
# an experimental setup or if the Apache server is protected by a reverse
# proxy that will filter URLs in some fashion.
Allow from all
SetHandler mod_pagespeed_statistics

Posted in Uncategorized | 1 Comment

/usr/bin/ld: cannot find -lltdl

while compiling Imagemagick on a recent version of CentOS, I saw the subject error (during “make install” to be precise)
This seems to be the solution:
yum install libtool-ltdl-devel

Posted in Uncategorized | Leave a comment

Horde Sesha Error

Tried installing Horde’s sesha (version 1.0.0beta1) on CentOS and only saw this:

Fatal error: Call to undefined method Horde_Util::addParameter() in /var/raid/www/horde/sesha/lib/View/List.php on line 96

To fix change Horde_Util::addParameter to Horde_Url:add in several places

next error: Fatal error: Call to undefined method Horde::menu() in /var/raid/www/horde/sesha/lib/Sesha.php on line 190

hmm not quite ready for prime time it would seem.

Posted in Uncategorized | 2 Comments

Resolved: HORDE: [horde] Class Horde_Routes_Mapper does not exist

Trying to install nag on horde 5 in CentOS, kept getting the subject message, to fix:
pear install horde/Horde_Routes-beta

Posted in Uncategorized | Leave a comment

rpm -e specifies multiple packages

I had this problem with libxml2 on CentOS 5, turns out a version for both arch’s was installed,
this post solved it for me

Running into this?

bash$ sudo rpm -e zlib-devel
error: “zlib-devel” specifies multiple packages

This is because zlib-devel.i386 and zlib-devel.x86_64 are both installed. It is possible to remove them individually:

bash$ sudo rpm -e zlib-devel.i386
bash$ sudo rpm -e zlib-devel.x86_64

By default, Fedora, CentOS and RedHat shells do not specify the architecture of an RPM in the query format. This can lead to duplicate entries from queries:

bash$ rpm -q zlib-devel
zlib-devel-1.2.3-14.fc8
zlib-devel-1.2.3-14.fc8

You can use the –queryformat switch when running rpm -q, or configure the query format setting in ~/.rpmmacros.

bash$ rpm -q –queryformat “%{name}.%{arch}\n” zlib-devel
zlib-devel.i386
zlib-devel.x86_64

bash$ cat ~/.rpmmacros
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

bash$ rpm -q zlib-devel
zlib-devel-1.2.3-14.fc8.i386
zlib-devel-1.2.3-14.fc8.x86_64

Posted in Uncategorized | Leave a comment

how to migrate qmailadmin

I was trying to migrate a vpopmail / mysql installation to a new system and the users could not log in through qmailadmin. This post has the solution

make sure to copy the contents of /var/qmail/control/* and
/var/qmail/users/assign to the new system. also after copying
users/assign, make sure to run qmail-newu to refresh the cdb file.

Posted in Uncategorized | Leave a comment

Solved: Error compiling httpd-2.2.23: byterange_filter.c:(.text+0x12c1): undefined reference to `apr_array_clear’

modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange’:
byterange_filter.c:(.text+0x12c1): undefined reference to `apr_array_clear’
collect2: ld returned 1 exit status

Solution: Add this to the configure command:
--with-included-apr

with compliments and kind regards to Stefan for providing this solution

Posted in Uncategorized | Leave a comment

SNMP can’t get ifspeed on vmWare virtual

trying to set up SNMP on some virtuals for running mrtg graphs. Some of them weren’t working; the mrtg config file has this message:

> ### The following interface is commented out because:
> ### * has no ifSpeed property

I found that the Network adapter needed to be changed (or rather removed and a new one added) from “flexible” to “E1000”, then SNMP works / sees the ifspeed correctly.

I made the change with the machine powered off and the new nic has the same mac.

Posted in Uncategorized | 1 Comment

Install SNMP on CentOS

This works for me on CentOS 5.8

You will want to do the following as root:
yum install net-snmp

Then you will want to edit /etc/snmp/snmpd.conf to configure the service.

So that the service will start on boot, you will need to:
chkconfig snmpd on

And lastly:
service snmpd start

#############################
# my own notes:

Here is a super simple snmpd.conf file that works fine:
rocommunity public 192.168.0.0/24
rocommunity public localhost

I needed to add this line in /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT

and restart iptables with /etc/init.d/iptables restart

Posted in Uncategorized | Leave a comment