Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
18458766
Commit
18458766
authored
17 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Configure gossip TTL.
parent
cee6bc3b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bms.py
+8
-1
8 additions, 1 deletion
bms.py
milter.cfg
+2
-0
2 additions, 0 deletions
milter.cfg
with
10 additions
and
1 deletion
bms.py
+
8
−
1
View file @
18458766
#!/usr/bin/env python
# A simple milter that has grown quite a bit.
# $Log$
# Revision 1.120 2008/04/02 18:59:14 customdesigned
# Release 0.8.10
#
# Revision 1.119 2008/04/01 00:13:10 customdesigned
# Do not CBV whitelisted addresses. We already know they are good.
#
...
...
@@ -453,7 +456,7 @@ def read_config(list):
banned_users
=
cp
.
getlist
(
'
srs
'
,
'
banned_users
'
)
if
gossip
:
global
gossip_node
global
gossip_node
,
gossip_ttl
if
cp
.
has_option
(
'
gossip
'
,
'
server
'
):
server
=
cp
.
get
(
'
gossip
'
,
'
server
'
)
host
,
port
=
gossip
.
splitaddr
(
server
)
...
...
@@ -463,6 +466,10 @@ def read_config(list):
for
p
in
cp
.
getlist
(
'
gossip
'
,
'
peers
'
):
host
,
port
=
gossip
.
splitaddr
(
p
)
gossip_node
.
peers
.
append
(
gossip
.
server
.
Peer
(
host
,
port
))
if
cp
.
has_option
(
'
gossip
'
,
'
ttl
'
):
gossip_ttl
=
cp
.
getint
(
'
gossip
'
,
'
ttl
'
)
else
:
gossip_ttl
=
1
def
findsrs
(
fp
):
lastln
=
None
...
...
This diff is collapsed.
Click to expand it.
milter.cfg
+
2
−
0
View file @
18458766
...
...
@@ -220,6 +220,8 @@ blind = 1
# Use a dedicated GOSSiP server. If not specified, a local database
# will be used.
;server=host:11900
# To include peers of a peer in reputation, set ttl=2
;ttl=1
# If a local database is used, also consult these GOSSiP servers about
# domains. Peer reputation is also tracked as to how often they
# agree with us, and weighted accordingly.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment