Archive for August, 2009

Postfix catch-all. The proper way…

An issue I recently encountered with some mail servers was poor MTA reputation. Even though the servers were only used for corporate email, somehow their MTA is poor at senderbase, even though none of the IP’s are on a single RBL/SBL. This is partly due to Slicehost having bad IP blocks and the method they use for assigning IP’s to new slices. But I believe the issue can be resolved with good history.
Read more

Evolution Mail 2.26.1 – Not deleting trash

After switching from windoz to Linux, I immediately started using Evolution Mail after being an Outlook user for many years. Evolution in many ways is better than Outlook besides being free, but there is a small issue.

Sometimes, somehow and someway the client loses sync with folders and this little bash script will fix the problem. I originally found this on the Ubuntu forums a few months ago.


#!/bin/bash
# see http://ubuntuforums.org/showthread.php?t=974536
cd $HOME/.evolution/mail
echo "Deleting .index(s)";
find -name "*.index" -exec rm {} \;
echo "Deleting .ev-summary(s)";
find -name "*.ev-summary" -exec rm {} \;
echo "Deleting .cmeta(s)";
find -name "*.cmeta" -exec rm {} \;
echo "Done.";

Adjusting Contrast, Brightness and Gamma on fglrx 9.5+

ATI has made a change in their fglrx catalyst drivers (9.5+) where setting the gamma in xorg.conf no longer works and is ignored when starting.

In my previous post I went over setting and making these adjustments. The previous methods for Contrast and Brightness remain. However for gamma, the only way and previously existing method is now using fglrx_xgamma.

In terminal;

fglrx_xgamma -c 0 -gamma .85

This setting will be immediately applied and also after restarting.

Howto prevent and block repeat failed connections to ssh with iptables

The following iptable entries will prevent and block repeat failed connections, but not permanently. This allows two new connections every 60 seconds. This is an effective way of blocking automated attacks you will see mostly from Chinese ISP’s.


iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW --set --name DEFAULT --rsource
iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW -j DROP --update --seconds 60 --hitcount 2 --name DEFAULT --rsource
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT