comparison test.bash @ 90:962a1f8f1d9f stable-5-4

add verify statement to verify addresses with better mx host
author carl
date Sun, 18 Sep 2005 10:19:58 -0700
parents 946fc1bcfb2c
children c3e9fa6b37c6
comparison
equal deleted inserted replaced
89:946fc1bcfb2c 90:962a1f8f1d9f
31 echo "linker errors" 31 echo "linker errors"
32 exit 32 exit
33 fi 33 fi
34 fi 34 fi
35 35
36 if [ "$1" == "comp" ]; then 36 if [ "$1" == "test" ]; then
37 exit 37 # build the test.cf file
38 make test.cf
39
40 # start the milter
41 pid=/var/run/dnsbl.pid
42 echo start the milter
43 mkdir -p /var/run/dnsbl
44 chmod 700 /var/run/dnsbl
45 chown dnsbl:dnsbl /var/run/dnsbl
46 mv -f $pid $pid.save
47 ./dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2
48 sleep 5
49 P2=`cat $pid`
50 mv -f $pid.save $pid
51 echo started dnsbl milter as process $P2
52
53 /usr/lib/sendmail -bd -Ctest.cf -Ldnsbl
54 sleep 5
55 P3=`head -1 /var/run/sm-test.pid`
56 echo started sendmail as process $P3
57
58 echo eventually "'"kill -KILL $P2 $P3"'"
59
38 fi 60 fi
39
40 # build the test.cf file
41 make test.cf
42
43 # start the milter
44 pid=/var/run/dnsbl.pid
45 echo start the milter
46 mkdir -p /var/run/dnsbl
47 chmod 700 /var/run/dnsbl
48 chown dnsbl:dnsbl /var/run/dnsbl
49 mv -f $pid $pid.save
50 ./dnsbl -d 10 -r /var/run/dnsbl/dnsbl.resolver.sock2 -p local:/var/run/dnsbl/dnsbl.sock2
51 sleep 5
52 P2=`cat $pid`
53 mv -f $pid.save $pid
54 echo started dnsbl milter as process $P2
55
56 /usr/lib/sendmail -bd -Ctest.cf -Ldnsbl
57 sleep 5
58 P3=`head -1 /var/run/sm-test.pid`
59 echo started sendmail as process $P3
60
61 echo eventually "'"kill -KILL $P2 $P3"'"
62