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
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