grossd doesn't work for - only me?
I first though the problem was related to my DNS configuration, but for
me grossd always returns “trust”.
And since the AlpineLinux version is a patched one i thought i should
create this issue.
This is what the http://www.crynwr.com/spam/ tester says when used:
* [root@sdaoden]# rm /var/lib/grossd/state
* [root@sdaoden]# grossd -ugross -C
Grossd shutdown with exit code 0: statefile /var/lib/grossd/state created, exiting...
* [root@sdaoden]# grossd -DDdugross
Sat Mar 12 16:40:41 2016 #b3e3dda8: Running as root: setuid() to 'gross'
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: dnsbl = zen.spamhaus.org ; 2
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: check = dnsbl
..
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: sync_listen = localhost
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: stat_type = since_startup
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: protocol = postfix
..
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: grey_tuple = user
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: grey_delay = 10
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: grey_mask = 24
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: log_level = debug
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: log_method = syslog
...
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: port = 5525
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: host = localhost
Sat Mar 12 16:40:41 2016 #b3e3dda8: config: update = always
Sat Mar 12 16:40:41 2016 #b3e3dda8: Listening host address 127.0.0.1
..
Sat Mar 12 16:40:41 2016 #b3e3dda8: adding dnsbl: zen.spamhaus.org, weight 2
Sat Mar 12 16:40:41 2016 #b3e3dda8: grossd version 1.0.2 starting...
Sat Mar 12 16:40:41 2016 #b3e3dda8: creating pidfile /var/run/gross/grossd.pid
..
Sat Mar 12 16:40:41 2016 #b3e36ab0: waiting for messages
Sat Mar 12 16:40:41 2016 #b39a5ab0: Unable to find the state file magic string. Initializing.
..
Sat Mar 12 16:40:41 2016 #b3e3dda8: starting postfix policy server
Sat Mar 12 16:40:41 2016 #b25a0ab0: initializing postfix thread pool
Sat Mar 12 16:40:41 2016 #b25a0ab0: waiting for connections
..
Sat Mar 12 16:40:49 2016 #b239cab0: client_address=192.203.178.138
Sat Mar 12 16:40:49 2016 #b239cab0: helo_name=xbl.crynwr.com
Sat Mar 12 16:40:49 2016 #b239cab0: sender=
Sat Mar 12 16:40:49 2016 #b239cab0: recipient=root@sdaoden.eu
Sat Mar 12 16:40:49 2016 #b239cab0: checking ip=192.203.178.138, net=192.203.178.0
Sat Mar 12 16:40:49 2016 #b239cab0: doubling the space for message queues from 4 to 8
Sat Mar 12 16:40:49 2016 #b229aab0: threadpool 'postfix' thread #2 starting
Sat Mar 12 16:40:49 2016 #b26a2ab0: threadpool 'dnsbl' processing
Sat Mar 12 16:40:49 2016 #b26a2ab0: threadpool 'dnsbl' starting another thread
Sat Mar 12 16:40:49 2016 #b26a2ab0: dnsblc called: timelimit 4000
Sat Mar 12 16:40:49 2016 #b2198ab0: threadpool 'dnsbl' thread #2 starting watchdog enabled
Sat Mar 12 16:40:49 2016 #b26a2ab0: initiating dns query: 138.178.203.192.zen.spamhaus.org.
Sat Mar 12 16:40:49 2016 #b26a2ab0: dnsblc returning
Sat Mar 12 16:40:49 2016 #b239cab0: Received a check result, judgment = 0, weight = 0
Sat Mar 12 16:40:49 2016 #b239cab0: updating trust counters
Sat Mar 12 16:40:49 2016 #b239cab0: a=trust d=2 w=0 c=192.203.178.138 s= r=root@sdaoden.eu h=xbl.crynwr.com
...
^C
* [root@sdaoden]# nslookup 138.178.203.192.zen.spamhaus.org
nslookup: can't resolve '(null)': Name does not resolve
Name: 138.178.203.192.zen.spamhaus.org
Address 1: 127.0.0.4
Note there is no success message from the C-ares library here, though if
there’d be a response we should see one of the messages in
check_dnsbl.c:addrinfo_callback(), i think.
It doesn’t matter changing resolv.conf.
Configuration of grossd is exactly as shown in manuals / Alpine Wiki /
etc.
(from redmine: issue id 5263, created on 2016-03-12)