root / nntpswitch.conf.in

View | Annotate | Download

1
#
2
# NNTPSwitch Sample Configuration
3
# $Id: nntpswitch.conf.in,v 1.50 2010-03-22 12:33:00 tommy Exp $
4
#
5
# See http://wiki.chiparus.net/index.php/NNTPSwitch:nntpswitch.conf
6
# For complete documentation on this file.
7
#
8
9
# System options not runtime changeable
10
string ListenPorts 119
11
string BindAddress 0.0.0.0
12
string RunAsUser news
13
string PidFile /var/run/nntpswitchd.pid
14
15
# If you use RRD or other profile bandwidth monitoring you'd better
16
# leave this on. This will ensure the counters won't rollover on 
17
# nntpswitch restarts.
18
# Write profile stats to this file every minute
19
string StatsFile /tmp/.nntpswitch.stats
20
# write each 60 seconds (Set to 0 to disable stats writing)
21
int StatsFilePeriod 60
22
23
# Every file or dirname not starting with a / has BasePath prepended
24
string BasePath /etc/nntpswitch
25
26
# Paths and Files 
27
# kill -1 will reload these
28
string AccessFile access.conf
29
string ServerFile servers.conf
30
31
string OverviewFmtFile overview.fmt
32
string ActiveFile active
33
string NewsgroupsFile newsgroups
34
35
# Timeout for server reading
36
int ServerReadTimeout 300
37
38
# Timeout for connecting
39
int ServerConnectTimeout 4
40
41
# Timeout for client command input
42
int ClientReadTimeout 300
43
44
# Global max connections allowed. If you need to go over 8192 edit nntpd.h and change MAX_PROC
45
int MaxConnections 500
46
47
# Log everything send to the client
48
# responses to the client (should be a lot the same as logReadserver)
49
int LogWriteclient 0
50
51
# Log everything read from a backend server
52
# server command responses generally
53
int LogReadserver 0
54
55
# Log everything send to a backend server
56
# log commands send by nntpswitch
57
int LogWriteserver 0
58
59
# Log all commands separately instead of summaries
60
int LogCommands 0
61
62
# Log missing articles
63
int LogMissing 0
64
65
# Log all authentication information ("authinfo login")
66
int LogAuthInfo 1
67
68
# All outgoing posts to this machine. NNTPSwitch adds all headers and expects
69
# a server responding to the IHAVE command. It should do the spamfiltering
70
# and feeding to other systems.
71
string PostServer posthost.example.com
72
int PostServerPort 119
73
74
# Enable X-Trace: Header in posts (1) or use it only for logging (0).
75
int PostXTraceHeader 1
76
77
# Should normally be moderators.isc.org
78
string ModeratorDomain moderators.isc.org
79
80
# Where your MTA resides
81
string MailerPath /usr/sbin/sendmail -oi -t
82
83
# Buffersize for article transport.
84
int BufSize 8192
85
86
# Socket Buffersize, leave 0 for autotuning by your OS
87
int SockBufSize 0
88
89
# How many connections to delay before we're able to spawn a client process
90
# Put it too high and it will get slow, put it too low and clients start
91
# too see connection refused's. 128 should be ok in most situations.
92
int ListenBackLog 128
93
94
# Deny XPAT/XHDR commands for fields not in overview.fmt
95
# INN indexes only what is in overview.fmt. If you disable this option
96
# inn will perform a search through its overview information. For large
97
# groups and non indexed headers simple lookups can take minutes eating
98
# up system resources.! It's best to leave this check on.
99
int DenyNoIndexField 1
100
101
# After a server down after this many seconds, how many seconds to backoff.
102
int DownDelay 4
103
104
# This is the delay for backing off clients after they reach their connection
105
# limit. This will force clients to correctly configure their limits. Unless
106
# the server is full ofcourse where the news reseller should upgrade their
107
# number of users etc.
108
int RetryDelay 2
109
110
# Recalibrate the rate limiter 5 times a sec. Anything else will make
111
# it slightly inaccurate. 
112
int RatePeriod 5
113
114
# Do reverse dns lookups
115
int DNSLookups 1
116
117
# Drop unknown clients after X invalid commands. Mostly mail and webservers.
118
int DropUnknown 10
119
120
# Touch this file to temporarily disable the server
121
string DisableFile closed
122
string DisableText 500 Sorry, we're closed.
123
124
# Sometimes diablo reports 'no such article' while the article is there.
125
# This option specifies how many retries we should do before returning
126
# no such article to the client.
127
int NoSuchArticleRetries 5
128
129
# Tell nntpswitch you have a local dreader listening
130
# on some other port on the localhost. This server
131
# should be listed first with no groups (!*)
132
# This option skips header permission checks to save
133
# bandwidth between dreaders and spool servers.
134
int LocalDreader 0
135
136
# Bind each nntpswitch process to a separate cpu core.
137
# For each new connection a cpu core is choosen from the pool.
138
# Normally you don't need this option.
139
int CoreBind 0
140
141
# NSE only configuration from here
142
143
# SSL Stuff
144
# This is only available in the commercial version of nntpswitch
145
# contact sales@news-service.com for inquiries
146
int EnableSSL 0
147
string ListenSSLPorts 563
148
string SSLKeyfile /etc/nntpswitch/ssl.key
149
string SSLPassword password
150
string SSLCAList /etc/nntpswitch/tes
151
152
# Article Cache
153
string MemcacheServer 172.24.8.100:11211
154
155
# Account Cache
156
string AccountMemcacheServer 172.24.8.100:11211
157