Click to See Complete Forum and Search --> : SMTP spaming issue


Net_Spy
01-16-2009, 09:53 AM
Dear All,

I've just install sendmail 8.x along with calmav , mailscanner , spamassisn , dcc . Now what I want my mail server to detect spam not avoid my WAN interface ip to get listed in spaming-list , an other thing is that I want my all clients to send 25 mails in per hour . Here is the code below for my firewall.sh that reads the users from mailuser list .


#! /bin/sh
#
iptables -F -t filter
iptables -I INPUT -i eth1 -p tcp --dport 25 -j DROP

echo Please Wait.
cat /home/scripts/mailusers | grep -v '^#' |grep -v '^\ ' | awk '{print $1 }' | sed "/^ /d;/^$/d;" | grep -v "ADDS" | grep -v Block | grep -v "Adds" | while read smtp
do
iptables -I INPUT -i eth1 -s $smtp -p tcp --dport 25 -m limit --limit-burst 25 -j ACCEPT
done

echo 1 > /proc/sys/net/ipv4/ip_forward
exit 0



I did the basic configuration in sendmail just start relaying . kindly let me know how to configure dcc and its whiteclnt , whitelist , graylist and blacklist . I think the above rule just prevent not to have more the 25 connection for smtp from a single client/IP . Looking forward for your kind response.

Regards
Net_Spy

Satanic Atheist
01-17-2009, 10:33 AM
I would recommend using Exim4 where there are already (Debian) packages for SpamAssassin and it's extremely well documented. I get no spam whatsoever. If you need a copy of my configuration, I can easily post them here or e-mail them to you.

James

Net_Spy
01-17-2009, 01:36 PM
Thanks for the reply ,
Im using cent os 5.2 sedmail v8.x clamav current stable version along with SpamAssassin , razor-agent , razor-sdk and dcc . It would be greate if you send me your configuration at . Well an other thing is that I want limit my clients to send not more then 25 mails in per hours . Looking forward for your kind reponse.

Regards
Net_Spy

Satanic Atheist
01-17-2009, 07:35 PM
OK, I'll send the e-mail with the config across but you should PM me with your e-mail address and remove your e-mail address from this forum (it's public and you'll get a LOT more spam if you leave it posted).

It'll take me a short while to reconfigure the system to exclude my personal details but bear with me and PM me your address and I'll send it through.

James