Sunrise (ISP)
Disclaimer: This is just for refernce I don't advice using this!
Before getting a more bullet proof solution with SpamAssassin and postfix for Sunrise ADSL and Sunrise Mobile IP addresses that are being blacklisted spamhouse.org I did it the hard and wrong way.
On the RIPE's database search site I found all the network ranges I required and mangeled them through sed to extract all the networks by searching for SUNRISE-ADSL as the keywork. As of this writing I ended up with the following list of ranges as shown below.
The target system was a debian install which stores local.cf under /etc/mail/spamassasin. But there is a neat mechanism where one can add a file like this 99_sunrise-ips.cf and it will be picked up. This was the configuration file:
allow_user_rules 1 ## sunrise networks trusted_networks 62.167.80/20 trusted_networks 62.167.96/19 trusted_networks 62.167.128/20 trusted_networks 62.167.24/21 trusted_networks 62.167.32/19 trusted_networks 62.167.64/20 trusted_networks 62.167.218/23 trusted_networks 62.167.220/22 trusted_networks 62.167.176/21 trusted_networks 62.167.184/21 trusted_networks 62.167.192/20 trusted_networks 62.167.208/23 trusted_networks 62.167.210/23 trusted_networks 62.167.212/22 trusted_networks 62.167.216/23 trusted_networks 84.226/17 trusted_networks 84.227/16 trusted_networks 89.217/19 trusted_networks 89.217.32/19 trusted_networks 89.217.64/19 trusted_networks 89.217.96/19 trusted_networks 89.217.128/19 trusted_networks 89.217.160/19 trusted_networks 89.217.192/19 trusted_networks 89.217.224/19 trusted_networks 195.141.233/24 trusted_networks 195.141.254/24 trusted_networks 195.141.255/24 trusted_networks 195.141.226/24 trusted_networks 84.226.128/17 trusted_networks 178.38/18 trusted_networks 178.38.64/18 trusted_networks 178.38.192/18 trusted_networks 178.39/18 trusted_networks 178.39.64/18 trusted_networks 178.39.128/18 trusted_networks 178.38.128/18 trusted_networks 62.167.175/24 trusted_networks 62.167.144/20 trusted_networks 62.167.160/21 trusted_networks 62.167.168/24 trusted_networks 178.39.192/20 trusted_networks 178.39.208/21 trusted_networks 178.39.216/23 trusted_networks 178.39.250/23 trusted_networks 178.39.252/22