Mercurial > dnsbl
view test.bash @ 236:c0d2e99c0a1d
Add surbl checks on the smtp helo value, client reverse dns name, and mail from domain name
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Sep 2009 11:36:15 -0700 |
parents | d6531c702be3 |
children |
line wrap: on
line source
#!/bin/bash #rebuild make # build the test.cf file make -f Makefile.test test.cf # start the milter pid=/var/run/dnsbl.pid echo start the milter mkdir -p /var/run/dnsbl chmod 700 /var/run/dnsbl #chown dnsbl:dnsbl /var/run/dnsbl [ -f "$pid" ] && mv -f $pid $pid.save DCCIFD= [ -S /var/dcc/dccifd ] && DCCIFD='-b /var/dcc/dccifd' #valgrind --leak-check=full --show-reachable=yes src/dnsbl -d 10 $DCCIFD -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2 valgrind --leak-check=full src/dnsbl -d 10 $DCCIFD -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2 rm -f tracelog* #strace -e trace=open,close,read,write -o tracelog -f -ff -x src/dnsbl -d 10 $DCCIFD -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2 & sleep 5 P2=`cat $pid` [ -f "$pid.save" ] && mv -f $pid.save $pid echo started dnsbl milter as process $P2 /usr/lib/sendmail -bd -Ctest.cf -Ldnsbltest sleep 5 P3=`head -1 /var/run/sm-test.pid` echo started sendmail as process $P3 echo "eventually, run the following two kill commands" echo kill -SIGINT $P2 echo kill -KILL $P3