Archive for the ‘Exim’ Category

exiqgrep exit with error “Line mismatch”

January 16, 2008

Sometime exiqgrep exit with error Line mismatch when you try to remove emails with the -Mrm option

#exiqgrep -o 604800
Line mismatch: 170d 1IGLxw-0004Tw-Ne

You can remove the particular entry that errors out as follows.

# exim -bpru | grep “170d” | awk ‘{print $2}’
1IGLxw-0004Tw-Ne
1IGTFn-0000VM-UI
#exim -bpru | grep “170d” | awk ‘{print $2}’ | xargs -n 1 -P 20 exim -Mrm

You will see something like,


Spool data file for 1IGLxw-0004Tw-Ne does not exist
Spool data file for 1IGTFn-0000VM-UI does not exist
Continuing, to ensure all files removed
Continuing, to ensure all files removed
Message 1IGTFn-0000VM-UI has been removed or did not exist
Message 1IGLxw-0004Tw-Ne has been removed or did not exist

Nevermind, those messages should be removed now 🙂

Repeat the process until all the mal-formated entries are removed.

Did that work for you ?

Redirecting traffic coming to port 26 to port 25

September 25, 2007

# redirect traffic coming in on port 26 to port 25
/sbin/iptables -t nat -I PREROUTING -p tcp –dport 26 -j REDIRECT –to-port 25
# make it so that this command runs on server boot up.
if ! grep -qai 26 /etc/rc.local; then
echo ‘/sbin/iptables -t nat -I PREROUTING -p tcp –dport 26 -j REDIRECT –to-port 25’ >> /etc/rc.local
fi

Why doesn’t SpamAssassin work in cPanel 11?

September 4, 2007

Source: cPAnel FAQ.
—————————

Make sure that you are using Perl 5.8.8 which is recommended with cPanel 11.

Prior to upgrading Perl, it is a good idea to ensure that each module gets carried over to the update Perl version using the “autobundle” CPAN feature. You will need to execute this command via root in SSH:

perl -MCPAN -e ‘autobundle’

Once this is complete, you should have the the following outputted before returning to the shell:

‘Wrote bundle file /home/.cpan/Bundle/Snapshot_2007_08_16_00.pm’

Make a note of the filename before proceeding with the update.

– To update to Perl 5.8.8 on Linux based servers:

cd /root
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar -zxf perl588installer.tar.gz
cd perl588installer
./install

– To update to Perl 5.8.8 on FreeBSD based servers:

cd /usr/ports/lang/perl5
make && make install

Once the update is complete, you can restore all the previously installed modules from the CPAN bundle that was created by executing:

perl -MCPAN -e ‘install Bundle::Snapshot_2007_08_16_00’

Make sure that you replace the bundle name with the one that was generated earlier.

We should now make sure that all modules required by cPanel 11 are installed and restart cPanel:

/usr/local/cpanel/bin/checkperlmodules
/usr/local/cpanel/startup

Clearing frozen emails : Exim

September 4, 2007

exim -bpru | grep frozen | awk {’print $3′}|xargs exim -Mrm