On Fri, Apr 07, 2006 at 09:41:56AM -0600, Jeff Ross wrote:
> 
> I have the following gmail servers whitelisted in my /etc/whitelist
> 
> #gmail
> 64.233.162.192/28   # zproxy gmail
> 64.233.170.192/28   # rproxy gmail
> 64.233.182.192/28   # nproxy gmail
> 64.233.184.192/28   # wproxy gmail
> 66.249.82.192/28   # xproxy gmail
> 66.249.92.192/28   # uproxy gmail
> 216.239.56.240/28   # mproxy gmail
> 

Hi lads,

See any probs with this wee idea to auto generate the above?

# cat /root/bin/mk-gmail-spamd-whitelist
#!/bin/ksh

file=/etc/spamd.whitelist.gmail

for l in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5
6 7 8 9
do
  echo \#${l}proxy.gmail.com >> ${file}~
  dig ${l}proxy.gmail.com +short 2>&1 | fgrep -v \; >> ${file}~
done

mv ${file}~ ${file}


# crontab -l | fgrep gmail
@daily  $HOME/bin/mk-gmail-spamd-whitelist

# fgrep gmail /etc/spamd.conf
        :file=/etc/spamd.whitelist.gmail:


Just generated this lot:

# cat /etc/spamd.whitelist.gmail
#aproxy.gmail.com
#bproxy.gmail.com
#cproxy.gmail.com
#dproxy.gmail.com
#eproxy.gmail.com
#fproxy.gmail.com
#gproxy.gmail.com
#hproxy.gmail.com
72.14.214.203
72.14.214.204
72.14.214.205
72.14.214.206
72.14.214.207
72.14.214.192
72.14.214.193
72.14.214.194
72.14.214.195
72.14.214.196
72.14.214.197
72.14.214.198
72.14.214.199
72.14.214.200
72.14.214.201
72.14.214.202
#iproxy.gmail.com
#jproxy.gmail.com
#kproxy.gmail.com
#lproxy.gmail.com
#mproxy.gmail.com
216.239.56.249
216.239.56.250
216.239.56.251
216.239.56.252
216.239.56.253
216.239.56.240
216.239.56.241
216.239.56.242
216.239.56.243
216.239.56.244
216.239.56.245
216.239.56.246
216.239.56.247
216.239.56.248
#nproxy.gmail.com
64.233.182.203
64.233.182.204
64.233.182.205
64.233.182.206
64.233.182.207
64.233.182.184
64.233.182.185
64.233.182.186
64.233.182.187
64.233.182.188
64.233.182.189
64.233.182.190
64.233.182.191
64.233.182.192
64.233.182.193
64.233.182.194
64.233.182.195
64.233.182.196
64.233.182.197
64.233.182.198
64.233.182.199
64.233.182.200
64.233.182.201
64.233.182.202
#oproxy.gmail.com
#pproxy.gmail.com
64.233.166.180
64.233.166.181
64.233.166.182
64.233.166.183
64.233.166.176
64.233.166.177
64.233.166.178
64.233.166.179
#qproxy.gmail.com
72.14.204.207
72.14.204.224
72.14.204.225
72.14.204.226
72.14.204.227
72.14.204.228
72.14.204.229
72.14.204.230
72.14.204.231
72.14.204.232
72.14.204.233
72.14.204.234
72.14.204.235
72.14.204.236
72.14.204.237
72.14.204.238
72.14.204.239
72.14.204.192
72.14.204.193
72.14.204.194
72.14.204.195
72.14.204.196
72.14.204.197
72.14.204.198
72.14.204.199
72.14.204.200
72.14.204.201
72.14.204.202
72.14.204.203
72.14.204.204
72.14.204.205
72.14.204.206
#rproxy.gmail.com
64.233.170.195
64.233.170.196
64.233.170.197
64.233.170.198
64.233.170.199
64.233.170.200
64.233.170.201
64.233.170.202
64.233.170.203
64.233.170.204
64.233.170.205
64.233.170.206
64.233.170.207
64.233.170.192
64.233.170.193
64.233.170.194
#sproxy.gmail.com
#tproxy.gmail.com
#uproxy.gmail.com
66.249.92.203
66.249.92.204
66.249.92.205
66.249.92.206
66.249.92.207
66.249.92.168
66.249.92.169
66.249.92.170
66.249.92.171
66.249.92.172
66.249.92.173
66.249.92.174
66.249.92.175
66.249.92.192
66.249.92.193
66.249.92.194
66.249.92.195
66.249.92.196
66.249.92.197
66.249.92.198
66.249.92.199
66.249.92.200
66.249.92.201
66.249.92.202
#vproxy.gmail.com
#wproxy.gmail.com
64.233.184.232
64.233.184.233
64.233.184.234
64.233.184.235
64.233.184.236
64.233.184.237
64.233.184.238
64.233.184.239
64.233.184.224
64.233.184.225
64.233.184.226
64.233.184.227
64.233.184.228
64.233.184.229
64.233.184.230
64.233.184.231
#xproxy.gmail.com
66.249.82.203
66.249.82.204
66.249.82.205
66.249.82.206
66.249.82.207
66.249.82.192
66.249.82.193
66.249.82.194
66.249.82.195
66.249.82.196
66.249.82.197
66.249.82.198
66.249.82.199
66.249.82.200
66.249.82.201
66.249.82.202
#yproxy.gmail.com
#zproxy.gmail.com
64.233.162.198
64.233.162.199
64.233.162.200
64.233.162.201
64.233.162.202
64.233.162.203
64.233.162.204
64.233.162.205
64.233.162.206
64.233.162.207
64.233.162.192
64.233.162.193
64.233.162.194
64.233.162.195
64.233.162.196
64.233.162.197
#0proxy.gmail.com
#1proxy.gmail.com
#2proxy.gmail.com
#3proxy.gmail.com
#4proxy.gmail.com
#5proxy.gmail.com
#6proxy.gmail.com
#7proxy.gmail.com
#8proxy.gmail.com
#9proxy.gmail.com

Reply via email to