[Gross] How to let gross listen to multiple interfaces/addresses?
Steve
steeeeeveee at gmx.net
Fri May 22 18:47:32 EEST 2009
> Hmm, I'm puzzled. grossd should also listen on ports 5525 (postfix
> policy daemon), 5522 (status) and 5523 (milter). 5524 is the sync
> protocol port. Can you run grossd -dD and show me the output of the
> server starting?
>
Fri May 22 17:40:31 2009 #b7d486c0: Running as root: setuid() to 'nobody'
Fri May 22 17:40:31 2009 #b7d486c0: config: milter_listen = inet:5523 at 127.0.0.1
Fri May 22 17:40:31 2009 #b7d486c0: config: dnswl = wl.trusted-forwarder.org
Fri May 22 17:40:31 2009 #b7d486c0: config: dnswl = query.bondedsender.org
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = dsn.rfc-ignorant.org ; 4
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = rhsbl.ahbl.org ; 4
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = multi.surbl.org ; 4
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = black.dnsbl.securityplanet.nl ; 1
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = multi.uribl.com ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = rhsbl.sorbs.net ; 1
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = bulk.rhs.mailpolice.com ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: rhsbl = jwrh.dnsbl.net.au ; 4
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = dnsbl.sorbs.net ; 2
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = dnsbl-1.uceprotect.net ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = no-more-funn.moensted.dk ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = db.wpbl.info ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = bl.spamcop.net ; 3
Fri May 22 17:40:31 2009 #b7d486c0: config: dnsbl = zen.spamhaus.org ; 4
Fri May 22 17:40:31 2009 #b7d486c0: config: check = dnswl
Fri May 22 17:40:31 2009 #b7d486c0: config: check = rhsbl
Fri May 22 17:40:31 2009 #b7d486c0: config: check = dnsbl
Fri May 22 17:40:31 2009 #b7d486c0: config: pidfile = /var/run/grossd/grossd.pid
Fri May 22 17:40:31 2009 #b7d486c0: config: statefile = /var/run/grossd/grossd.state
Fri May 22 17:40:31 2009 #b7d486c0: config: sync_peer = 192.168.0.78
Fri May 22 17:40:31 2009 #b7d486c0: config: sync_listen = 192.168.0.77
Fri May 22 17:40:31 2009 #b7d486c0: config: stat_type = full
Fri May 22 17:40:31 2009 #b7d486c0: config: protocol = postfix
Fri May 22 17:40:31 2009 #b7d486c0: config: pool_maxthreads = 100
Fri May 22 17:40:31 2009 #b7d486c0: config: query_timelimit = 5000
Fri May 22 17:40:31 2009 #b7d486c0: config: block_reason = Bad reputation
Fri May 22 17:40:31 2009 #b7d486c0: config: grey_reason = Please try again later
Fri May 22 17:40:31 2009 #b7d486c0: config: grey_threshold = 1
Fri May 22 17:40:31 2009 #b7d486c0: config: block_threshold = 8
Fri May 22 17:40:31 2009 #b7d486c0: config: blocker_weight = 1
Fri May 22 17:40:31 2009 #b7d486c0: config: blocker_port = 4466
Fri May 22 17:40:31 2009 #b7d486c0: config: syslog_facility = mail
Fri May 22 17:40:31 2009 #b7d486c0: config: grey_delay = 10
Fri May 22 17:40:31 2009 #b7d486c0: config: grey_mask = 24
Fri May 22 17:40:31 2009 #b7d486c0: config: log_level = info
Fri May 22 17:40:31 2009 #b7d486c0: config: log_method = syslog
Fri May 22 17:40:31 2009 #b7d486c0: config: sjsms_response_block = $N%reason%
Fri May 22 17:40:31 2009 #b7d486c0: config: sjsms_response_trust = $Y
Fri May 22 17:40:31 2009 #b7d486c0: config: sjsms_response_match = $Y
Fri May 22 17:40:31 2009 #b7d486c0: config: sjsms_response_grey = $X4.4.3|$N%reason%
Fri May 22 17:40:31 2009 #b7d486c0: config: postfix_response_block = action=reject %reason%
Fri May 22 17:40:31 2009 #b7d486c0: config: postfix_response_grey = action=defer_if_permit %reason%
Fri May 22 17:40:31 2009 #b7d486c0: config: stat_interval = 300
Fri May 22 17:40:31 2009 #b7d486c0: config: number_buffers = 48
Fri May 22 17:40:31 2009 #b7d486c0: config: filter_bits = 24
Fri May 22 17:40:31 2009 #b7d486c0: config: rotate_interval = 3600
Fri May 22 17:40:31 2009 #b7d486c0: config: status_port = 5522
Fri May 22 17:40:31 2009 #b7d486c0: config: sync_port = 5524
Fri May 22 17:40:31 2009 #b7d486c0: config: port = 5525
Fri May 22 17:40:31 2009 #b7d486c0: config: host = 127.0.0.1
Fri May 22 17:40:31 2009 #b7d486c0: config: update = grey
Fri May 22 17:40:31 2009 #b7d486c0: Listening host address 127.0.0.1
Fri May 22 17:40:31 2009 #b7d486c0: Sync listen address 192.168.0.77
Fri May 22 17:40:31 2009 #b7d486c0: Peer 192.168.0.78 configured. Replicating.
Fri May 22 17:40:31 2009 #b7d486c0: Sync peer address 192.168.0.78
Fri May 22 17:40:31 2009 #b7d486c0: updatestyle: GREY
Fri May 22 17:40:31 2009 #b7d486c0: grossd version 1.0.1 starting...
Fri May 22 17:40:31 2009 #b7d486c0: creating pidfile /var/run/grossd/grossd.pid
Fri May 22 17:40:31 2009 #b7d486c0: doubling the space for message queues from 1 to 2
Fri May 22 17:40:31 2009 #b7d22b90: delay queue manager thread starting
Fri May 22 17:40:31 2009 #b7521b90: Found the correct state file magic string.
Fri May 22 17:40:31 2009 #b7521b90: fixing bloom ring queue memory pointers, offset=fffa4000
Fri May 22 17:40:31 2009 #b7521b90: bloommgr starting...
Fri May 22 17:40:31 2009 #b0b1fb90: Bind failed in syncmgr, port 5524
Still it does not start everything as expected:
tcp 0 0 192.168.0.77:5524 0.0.0.0:* LISTEN 1717/grossd
Wait a second:
theia / # ps auxww|grep -i gross
nobody 1717 0.0 0.1 143588 1032 ? Sl 03:24 0:00 grossd
nobody 17995 0.0 0.0 127312 1004 pts/1 Sl+ 17:40 0:00 /usr/sbin/grossd -dD
root 20414 0.0 0.0 1892 588 pts/4 S+ 17:43 0:00 grep --colour=auto -i gross
theia / #
That's wrong! I have two grossd running. Let me kill all of them and restart again:
Fri May 22 17:44:39 2009 #b7f076c0: Running as root: setuid() to 'nobody'
Fri May 22 17:44:39 2009 #b7f076c0: config: milter_listen = inet:5523 at 127.0.0.1
Fri May 22 17:44:39 2009 #b7f076c0: config: dnswl = wl.trusted-forwarder.org
Fri May 22 17:44:39 2009 #b7f076c0: config: dnswl = query.bondedsender.org
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = dsn.rfc-ignorant.org ; 4
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = rhsbl.ahbl.org ; 4
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = multi.surbl.org ; 4
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = black.dnsbl.securityplanet.nl ; 1
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = multi.uribl.com ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = rhsbl.sorbs.net ; 1
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = bulk.rhs.mailpolice.com ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: rhsbl = jwrh.dnsbl.net.au ; 4
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = dnsbl.sorbs.net ; 2
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = dnsbl-1.uceprotect.net ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = no-more-funn.moensted.dk ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = db.wpbl.info ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = bl.spamcop.net ; 3
Fri May 22 17:44:39 2009 #b7f076c0: config: dnsbl = zen.spamhaus.org ; 4
Fri May 22 17:44:39 2009 #b7f076c0: config: check = dnswl
Fri May 22 17:44:39 2009 #b7f076c0: config: check = rhsbl
Fri May 22 17:44:39 2009 #b7f076c0: config: check = dnsbl
Fri May 22 17:44:39 2009 #b7f076c0: config: pidfile = /var/run/grossd/grossd.pid
Fri May 22 17:44:39 2009 #b7f076c0: config: statefile = /var/run/grossd/grossd.state
Fri May 22 17:44:39 2009 #b7f076c0: config: sync_peer = 192.168.0.78
Fri May 22 17:44:39 2009 #b7f076c0: config: sync_listen = 192.168.0.77
Fri May 22 17:44:39 2009 #b7f076c0: config: stat_type = full
Fri May 22 17:44:39 2009 #b7f076c0: config: protocol = postfix
Fri May 22 17:44:39 2009 #b7f076c0: config: pool_maxthreads = 100
Fri May 22 17:44:39 2009 #b7f076c0: config: query_timelimit = 5000
Fri May 22 17:44:39 2009 #b7f076c0: config: block_reason = Bad reputation
Fri May 22 17:44:39 2009 #b7f076c0: config: grey_reason = Please try again later
Fri May 22 17:44:39 2009 #b7f076c0: config: grey_threshold = 1
Fri May 22 17:44:39 2009 #b7f076c0: config: block_threshold = 8
Fri May 22 17:44:39 2009 #b7f076c0: config: blocker_weight = 1
Fri May 22 17:44:39 2009 #b7f076c0: config: blocker_port = 4466
Fri May 22 17:44:39 2009 #b7f076c0: config: syslog_facility = mail
Fri May 22 17:44:39 2009 #b7f076c0: config: grey_delay = 10
Fri May 22 17:44:39 2009 #b7f076c0: config: grey_mask = 24
Fri May 22 17:44:39 2009 #b7f076c0: config: log_level = info
Fri May 22 17:44:39 2009 #b7f076c0: config: log_method = syslog
Fri May 22 17:44:39 2009 #b7f076c0: config: sjsms_response_block = $N%reason%
Fri May 22 17:44:39 2009 #b7f076c0: config: sjsms_response_trust = $Y
Fri May 22 17:44:39 2009 #b7f076c0: config: sjsms_response_match = $Y
Fri May 22 17:44:39 2009 #b7f076c0: config: sjsms_response_grey = $X4.4.3|$N%reason%
Fri May 22 17:44:39 2009 #b7f076c0: config: postfix_response_block = action=reject %reason%
Fri May 22 17:44:39 2009 #b7f076c0: config: postfix_response_grey = action=defer_if_permit %reason%
Fri May 22 17:44:39 2009 #b7f076c0: config: stat_interval = 300
Fri May 22 17:44:39 2009 #b7f076c0: config: number_buffers = 48
Fri May 22 17:44:39 2009 #b7f076c0: config: filter_bits = 24
Fri May 22 17:44:39 2009 #b7f076c0: config: rotate_interval = 3600
Fri May 22 17:44:39 2009 #b7f076c0: config: status_port = 5522
Fri May 22 17:44:39 2009 #b7f076c0: config: sync_port = 5524
Fri May 22 17:44:39 2009 #b7f076c0: config: port = 5525
Fri May 22 17:44:39 2009 #b7f076c0: config: host = 127.0.0.1
Fri May 22 17:44:39 2009 #b7f076c0: config: update = grey
Fri May 22 17:44:39 2009 #b7f076c0: Listening host address 127.0.0.1
Fri May 22 17:44:39 2009 #b7f076c0: Sync listen address 192.168.0.77
Fri May 22 17:44:39 2009 #b7f076c0: Peer 192.168.0.78 configured. Replicating.
Fri May 22 17:44:39 2009 #b7f076c0: Sync peer address 192.168.0.78
Fri May 22 17:44:39 2009 #b7f076c0: updatestyle: GREY
Fri May 22 17:44:39 2009 #b7f076c0: grossd version 1.0.1 starting...
Fri May 22 17:44:39 2009 #b7f076c0: creating pidfile /var/run/grossd/grossd.pid
Fri May 22 17:44:39 2009 #b7f076c0: doubling the space for message queues from 1 to 2
Fri May 22 17:44:39 2009 #b7ee1b90: delay queue manager thread starting
Fri May 22 17:44:39 2009 #b76e0b90: Found the correct state file magic string.
Fri May 22 17:44:39 2009 #b76e0b90: fixing bloom ring queue memory pointers, offset=1bf000
Fri May 22 17:44:39 2009 #b76e0b90: bloommgr starting...
Fri May 22 17:44:39 2009 #b0cdeb90: Peer fd 6
Fri May 22 17:44:39 2009 #b76e0b90: received rotate command
Fri May 22 17:44:39 2009 #b0cdeb90: Waiting sync connection on host 192.168.0.77 port 5524
Fri May 22 17:44:39 2009 #b04ddb90: rotate thread starting
Fri May 22 17:44:39 2009 #b04ddb90: Now: 1243007079 Last: 1242842115 Max-diff 172800
Fri May 22 17:44:41 2009 #b04ddb90: rotation completed
No. Still just one address used:
theia ~ # netstat -tulpn|grep -i gross
tcp 0 0 192.168.0.77:5524 0.0.0.0:* LISTEN 20418/grossd
theia ~ #
> Eino Tuominen
>
Steve
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
More information about the Gross
mailing list