]> jfr.im git - irc/evilnet/x3.git/blob - x3.conf.example
Added debug_channel_modes option for spamserv
[irc/evilnet/x3.git] / x3.conf.example
1 /* *****************************************************************
2 * X3 Services Example Configuration file.
3 *
4 * Copy it to your x3 runtime dir, and edit to taste.
5 *
6 * This file allows two kinds of comments. Whitespaces between
7 * tokens are ignored. All strings (even if they're just numbers)
8 * MUST be enclosed in double quotes. There must be a semicolon
9 * after every * key/value pair.
10 */
11
12 /* UPLINKS (servers we connect to) *********************************
13 * Each subsection describes one server. X3 will try to connect to
14 * each in turn maxtries times, and then will quit.
15 */
16 "uplinks" {
17 // This first entry connects to an ircd on teh same server an X3..
18 "Hub" { // This can be any string, just used here for your convenience
19 "address" "127.0.0.1"; // The IP address of the server
20 "port" "8888"; // What TCP port to connect to
21 "password" "laoo,rpe"; // Both of these passwords must match
22 "their_password" "laoo,rpe"; // the one in the ircd C line for X3.
23 "enabled" "1"; // Set to 0 to disable connecting to this server
24 "max_tries" "10"; // How many times to attemt reconnect before quitting
25 "bind_address" "127.0.0.1"; // LOCAL IP address we want to connect FROM
26 };
27 // This next one connects to an ircd on another server
28 "Hub-west" {
29 // IP address and port the server listens on
30 "address" "192.168.234.123"; // IP of remote server
31 "port" "8888";
32 "password" "ekrpat"; // C line passwords
33 "their_password" "ekrpat"; // Set same as above
34 "enabled" "0"; // Set this to 1 to use this server..
35 "max_tries" "1";
36 "bind_address" "192.168.1.10";
37 };
38 };
39
40 /* SERVER (Details about our existance) **********************************
41 */
42 "server" {
43 "hostname" "X3.AfterNET.Services"; // The servers name. (Use this in the ircd's C line)
44 "description" "AfterNET Network Services"; // Shows up in /links.
45 "network" "AfterNET";
46 "hidden_host" "Users.AfterNET.Org"; // set this if you enabled Nefarious' +x mode
47 /* hidden_host should match the F:HIDDEN_HOST: line in your ircu's ircd.conf;
48 * x3 does not set the host suffix for users, but must know it when making
49 * things like bans, where it should not show the user's real hostname. */
50 "hidden_host_type" "1"; // change this to 2 if you use Nefarious's style 2 host hiding.
51 "key1" "45432"; // Set these key values to the network KEY values you use
52 "key2" "76934"; // for host hiding style 2. If you are using Nefarious 1.3.0 (type 8)
53 "key3" "98336"; // then these are ignored.
54 "prefix" "AfterNET"; // If you use style 2 then this is the name that is prefixed to hosts.
55 "numeric" "51"; // hint: If you get collisions on link, CHANGE THIS.
56 /* Type handles some changes in Nefarious from version to version.
57 * 4 - nefarious 0.4.x and other ircds
58 * 5 - nefarious 1.0.x and higher (Obselete)
59 * 6 - nefarious 1.1.0 and higher (Obselete)
60 * 7 - nefarious 1.2.0 and higher (Branch Revsion)
61 * 8 - nefarious 1.3.0 and higher (Trunk Revsions)
62 */
63 "type" "8";
64 "host_in_topic" "1"; //Set to 1 if your Nefarious server have the HOST_IN_TOPIC F:line set to TRUE.
65 "max_users" "256"; // You can save a little memory by setting this to a lower value.
66 "force_n2k" "1"; // Use extended (5-digit) numnick for self, even if 3 are possible.
67 "ping_freq" "60";
68 "ping_timeout" "90";
69 "max_cycles" "30"; // max uplink cycles before giving up
70 // Admin information is traditionally: location, location, email
71 // This shows up on a /admin x3.afternet.services command.
72 "admin" (
73 "AfterNET IRC Network",
74 "www.afternet.org",
75 "Support Staff <support@afternet.org>"
76 );
77 /* extended_accounts -
78 * enable this for nefarious 0.4.x and higher and in ircd.conf add F:EXTENDED_ACCOUNTS:TRUE.
79 * Sends 'AC R nick account' instead of 'AC nick account' and allows
80 * for renames, login-on-connect, etc. If you use stock ircu set to 0. */
81 "extended_accounts" "1";
82
83 /* the following two settings are for ircu's HEAD_IN_SAND features, and are equivelent to
84 * the F: lines in ircu's ircd.conf. both can be disabled by commenting them out. */
85 //"his_servername" "*.AfterNET.org"; // hidden server name, shown in remote /whois requests
86 //"his_servercomment" "AfterNET IRC Network";
87 };
88
89 /* SERVICES (Bot nicknames) *******************************************
90 * Each section describes one service nickname and the details of that
91 * bot's features
92 * You may disable a service by commenting out its "nick" config item.
93 */
94 "services" {
95 /* Nickserv is the bot you register with and auth to.
96 * Afternet uses the name "Authserv" without the nickname reservation
97 * features enabled. Some nets call it Nickserv and configure it to
98 * reserve nicks.
99 */
100 "nickserv" {
101 "nick" "AuthServ"; // The bots nick on IRC
102
103 // If you want to have *@* as the default hostmask, set
104 // default_hostmask. I highly reccomend this, and its required
105 // for login-on-connect to work.
106 "default_hostmask" "1";
107
108 // do we warn users when someone new auths to their account?
109 "warn_clone_auth" "1"; // -X3- warning: foobar has authed to your account
110
111 // default max number of logins allowed on new accounts. Users can set it
112 // to something different using authserv commands.
113 "default_maxlogins" "3";
114
115 // hard_maxlogins is the ammount the user cant override.
116 "hard_maxlogins" "10";
117
118 // This names a file that contains easily guessed passwords.
119 // It always contains "password", "<password>" and the user's
120 // account name.
121 // uncomment if you have a dict file.
122 //"dict_file" "/usr/share/dict/words";
123
124 // Minimum number of various types of characters permitted in
125 // a password. Authserv will enforce these.
126 "password_min_length" "4";
127 "password_min_digits" "0";
128 "password_min_upper" "0";
129 "password_min_lower" "0";
130
131 // What should valid account and nicks look like?
132 // If valid_nick_regex is omitted, valid_account_regex is used
133 // for both nicks and accounts.
134 // Be very carefull changing these. This default is
135 // basically limited to letters, numbers, dash and underscore.
136 "valid_account_regex" "^[-_a-z0-9A-Z]{2,15}$";
137 "valid_nick_regex" "^[-_a-z][-_a-z0-9]*$";
138
139 // Whats a valid hostname look like for fakehosts?
140 "valid_fakehost_regex" "^[-_a-zA-Z0-9.]+$";
141
142 // Force account names to lowercase? 1=yes 0=no
143 // WARNING: this will convert when reading them from the db, too.
144 "force_handles_lowercase" "0";
145
146 // "Nickserv" networks, set this to 0. "Authserv" networks,
147 // set it to 1.
148 "disable_nicks" "1";
149 // One account may only own this many nicks.
150 "nicks_per_account" "4";
151
152 // Send a warning when someone uses a registered nick?
153 "warn_nick_owned" "0";
154
155 // What to do when someone uses the NickServ "reclaim" command?
156 // This can be one of "none", "warn", "svsnick", or "kill", but
157 // stock ircu does not support svsnick -- you need nefarious.
158 "reclaim_action" "none";
159
160 // What (else) to do when someone uses a registered nick?
161 // This can be anything "reclaim_action" can be, but it makes
162 // more sense to use the "warn_nick_owned" instead of "warn".
163 "auto_reclaim_action" "none";
164
165 // How long to wait before doing the auto_reclaim_action?
166 // This is ignored if "auto_reclaim_action" is "none".
167 "auto_reclaim_delay" "0";
168
169 // Expire nicks
170 "expire_nicks" "0";
171
172 // how often should nicks be expired?
173 "nick_expire_freq" "1d";
174
175 // how long until a nick expires?
176 "nick_expire_delay" "900d";
177
178 // access control for who can change account flags
179 // See /msg authserv help account flags
180 "flag_levels" {
181 "g" "800"; // God mode
182 "lc_h" "800"; // support helper (lower case h)
183 "uc_H" "800"; // net helper (upper case H)
184 "S" "999"; // O3 access suspended
185 "b" "1"; // Bot (Hidden from !staff etc)
186 "I" "999"; // User can impersonate another account using SASL authentication
187 };
188
189 // and for who can change epithets for staff
190 // epithets show up in /whois as another line about the person.
191 "set_epithet_level" "800";
192
193 // what opserv access level do you need to set somebody else's level?
194 "modoper_level" "850";
195
196 // how often should accounts be expired?
197 "account_expire_freq" "1d";
198
199 // how long until an account with access to any channel(s) expires?
200 "account_expire_delay" "900d";
201
202 // how long until an account with no access to any channels expires?
203 "nochan_account_expire_delay" "365d";
204
205 // how long must an account be inactive so it can be ounregistered without force?
206 "ounregister_inactive" "1M";
207
208 // which flags on an account require the ounregister to be used with force?
209 "ounregister_flags" "ShgsfnHbu";
210
211 // If somebody keeps guessing passwords incorrectly, do we gag them?
212 "autogag_enabled" "1";
213 "autogag_duration" "30m";
214 "auth_policer" {
215 "size" "5";
216 "drain-rate" "0.05";
217 };
218
219 // How to integrate with email cookies?
220 // In order to use mail, mail must be enabled and configured
221 // down below in the mail section of this config file.
222 "email_enabled" "1"; // Allow account verification and password reset by email.
223 "email_required" "1"; // if above is 1, require verification to authenticate.
224 "cookie_timeout" "2d"; // how long before we expire cookies?
225 "accounts_per_email" "1"; // How many people can use the same email account.
226
227 "email_search_level" "600"; // minimum OpServ level to search based on email address (search print email *foo*)
228 "email_visible_level" "800"; // minimum OpServ level to see somebody's email address
229 "titlehost_suffix" "AfterNET.Org"; // 'USET title' sets a fake hostname of name.title.titlehost on a user.
230 "set_title_level" "900"; // Access to use 'uset title'.
231 "set_fakehost_level" "1000"; //Access to set a freeform fakehost. (uset fakehost)
232
233 // A list of denied words in the fakehosts
234 "denied_fakehost_words" ("sex",
235 "fuck",
236 "asshole");
237
238 // This is a hacked in feature which exports every account change to a file sync.log. Afternet uses this and
239 // a bunch of custom PHP scripts to make our websites SQL user db the same as authserv, every 5 minutes.
240 // You have to be a pretty handy person with the shell commands and programming to make use of this..
241 "sync_log" "0"; // Log account changes to a file for syncing w/ a website?
242
243 // Nickserv 'style' setting affects .userlist and other outputs.
244 "default_style" "n"; // can be: n = normal, c = clean, or a = advanced.
245
246
247 // LDAP configuration(s)
248 // THIS IS EXPERIMENTAL! DO NOT USE IT IF YOU ARNT'T A DEVELOPER!!
249 // LDAP stands for light directory access protocol. its what many larger orgs use for central user/password management. Its also the core technology behind windows active directory.
250 // If you have an ldap server, you can configure X3 to use it instead of saving passwords locally.
251
252 //"ldap_enable" "0";
253 //"ldap_uri" "ldaps://ldap.yournetwork.server:636";
254 //"ldap_base" "ou=Users,dc=afternet,dc=org";
255 //"ldap_dn_fmt" "uid=%s,ou=Users,dc=afternet,dc=org";
256 //"ldap_autocreate" "1"; // automatically create accounts if they exist in ldap but not x3
257 //// If you will be allowing users to register on IRC you need these:
258 //"ldap_admin_dn" "cn=Admin,dc=afternet,dc=org";
259 //"ldap_admin_pass" "xxxxxxxxxxx";
260 //"ldap_object_classes" ( "top", "inetOrgAnonAccount" );
261 //// NOTE: inetOrgAnon is something I made up. its schema
262 //// can be found in the tools/ directory. ldap servers wont
263 //// know what that is by default.
264 //// These configure what I store, and where.
265 //"ldap_field_account" "uid";
266 //"ldap_field_password" "userPassword";
267 //"ldap_field_email" "mail";
268 //"ldap_field_oslevel" "X3AccountLevel";
269 //// NOTE: X3AccountLevel is a custom LDAP attribute
270 //// that LDAP servers will not know by default. A custom
271 //// schema is required to provide it.
272 //// This bit is needed if you want to put ircops into a group:
273 //"ldap_oper_group_dn" "cn=Opers,ou=Groups,dc=afternet,dc=org";
274 //"ldap_oper_group_level" "99"; // must be above this level to be added to oper ldap group
275 //"ldap_field_group_member" "memberUid"; // what field group members are in
276 //"ldap_timeout" "10"; // seconds
277
278 };
279
280 /*
281 * OpServ is the bot opers use to do glines, look at info etc.
282 * Afternet uses the nickname "O3" for this as its easier to type.
283 */
284 "opserv" {
285 "nick" "O3";
286 // should use of this service be limited to global opers?
287 "privileged" "1";
288
289 // fullname for service
290 "description" "Oper Service Bot"; // (for /whois)
291
292 // hostname for service; only used if "description" is also set
293 "hostname" "X3.AfterNET.Services"; // (for /whois)
294
295 // What channel should opserv send debug output to?
296 // I don't have any idea what debug info goes here. You can configure
297 // debugging logs in the log section to go to any channel.
298 // Probably safest to set to your oper channel.
299 "debug_channel" "#TheOps"; // Bot will join this channel, also.
300 "debug_channel_modes" "+tnOS"; // Modes get set every time X3 starts up
301
302 // where to send general alerts (e.g. flood alerts)?
303 "alert_channel" "#TheOps"; // Bot will join this channel, also.
304 "alert_channel_modes" "+"; // Modes get set every time X3 starts up
305
306 // who to tell about staff auths?
307 "staff_auth_channel" "#OperServ"; // Bot will join this channel, also.
308 "staff_auth_channel_modes" "+tnOs"; // modes get set every time X3 starts up
309
310 // which channels should all services autojoin?
311 "autojoin_channels" ("#TheOps", "#OperServ");
312
313 // how many clones to allow from an untrusted host?
314 // Use this carefully, users with half the # of clones will trigger this
315 // when a server pings out and they reconnect before the old connection is noticed
316 // to be dead by the server.. so set it at about twice the # you want to allow to
317 // avoid false positives.
318 "untrusted_max" "6"; // 3 connections and 3 ghosts, 7th connection causes a gline.
319
320 // how long of a g-line should be issued if the max hosts is exceeded?
321 "clone_gline_duration" "2h"; // durations are smhdmy
322
323 // how long to g-line for ?block (or, by default, for trace gline)?
324 "block_gline_duration" "12h";
325
326 // how long to shun for ?sblock (or, by default, for trace shun)?
327 "block_shun_duration" "12h";
328
329 // When a user joins an illegal channel, O3 joins it and locks it down.
330 // how long to keep an illegal channel locked down (seconds)?
331 "purge_lock_delay" "60";
332
333 // ------------------------------------------------------------------
334 // Defcon Settings
335 //
336 // No new channel registrations 1
337 // No New Nick Registrations 2
338 // No Channel Mode changes 4
339 // Force Chan Mode 8
340 // Use Reduced Session Limit 16
341 // KILL any new clients trying to connect 32
342 // Services will ignore everyone but opers 64
343 // Services will silently ignore everyone but opers 128
344 // GLINE all new clients trying to connect 256
345 // No new memos sent to block MemoServ attacks 512
346 // SHUN all new clients trying to connect 1024
347 //
348 // These are the values are added together to determine each defcon setting:
349 "DefCon1" "415";
350 "DefCon2" "159";
351 "DefCon3" "31";
352 "DefCon4" "23";
353
354 // Default defcon level, 5 is running all normally
355 "DefConLevel" "5";
356
357 // If defcon is limiting sessions then how many sessions should O3 allow?
358 "DefConSessionLimit" "2";
359
360 // Length of glines and shuns set on newly connecting clients, if defcon is glining
361 // or shunning newly connecting clients
362 "DefConGlineExpire" "5m";
363
364 // Mode to set on all channels if defcon is forcing channel modes on all channels
365 "DefConChanModes" "+r";
366
367 // If not set to 0, defcon will set back to level 5 after this time
368 "DefConTimeOut" "15m";
369
370 // Set to 1 to send a notice to all users when defcon levels are changed
371 "GlobalOnDefcon" "0";
372
373 // If set to 1 along with the notice that the levels are changing an extra
374 // notice will be sent
375 "GlobalOnDefconMore" "0";
376
377 // GlobalOnDefconMore notice.
378 "DefconMessage" "Put your message to send your users here. Dont forget to uncomment GlobalOnDefconMore";
379
380 // This notice will be used if GlobalOnDefcon and GlobalOnDefconMore are off
381 "DefConOffMessage" "Services are now back to normal, sorry for any inconvenience";
382
383 // Reason placed in defcon Glines and Shuns.
384 "DefConGlineReason" "This network is currently not accepting connections, please try again later";
385
386 // ------------------------------------------------------------------
387
388 // To use geoip support in Opserv WHOIS then you will need to install
389 // the c GeoIP api. Its available on http://www.maxmind.com, also on
390 // apt on debian and ubuntu. The dat files can also be obtained
391 // from the earlier URL. Place them in your X3 dir and away you go.
392 // X3 will need a recompile once you install the c api. If there is a
393 // GeoIP City Data file then the GeoIP data file will be ignored. However
394 // bear in mind that the city data file is a lot larger than the plain
395 // country data file so does take a bit longer to query. If you are
396 // expieriencing ping timeouts you may need to tweak X3's I:line.
397 "geoip_data_file" "./GeoIP.dat";
398 "geoip_city_data_file" "";
399
400 // The join-flood policer code goes off all the time when a server
401 // goes down (and everyone reconnects) so i don't reccomend using it.
402 // Automatically moderate join flooded channels?
403 "join_flood_moderate" "0";
404 // channel join flood policer params?
405 "join_policer" {
406 "size" "20";
407 "drain-rate" "1";
408 };
409 // Don't moderate and warn channels unless there are more than
410 // join_flood_moderate_threshold users in the channel. the
411 // value 0 will disable the threshold.
412 "join_flood_moderate_threshold" "50";
413 // new user flood policer params
414 "new_user_policer" {
415 "size" "200";
416 "drain-rate" "3";
417 };
418 // Min opserv level needed to set 'silent' glines in trace/addalert
419 // (nefarious only)
420 "silent_level" "700";
421 };
422
423 "chanserv" {
424 "nick" "X3";
425
426 // The umodes - add +d if you use nefarious 1.0 and you added 'b:lines'
427 // to pass cmdchar through to chanserv anyway.
428 "modes" "+iok";
429
430 // The off_channel setting takes one of three numerical values:
431 // 0 = off
432 // 1 = use a registered channel mode, have services op themselves
433 // 2 = all of the above, and a channel setting to have ChanServ not
434 // idle in the channel
435 // NOTE: +z mode, needed for this to work. X3 contains modifications to
436 // try and prevent desynchs. If you use this mode do not use any other service
437 // that uses this mode.
438 "off_channel" "no";
439
440 // Infolines are sent when channel users join the channel. Users set them with USET INFO in X3.
441 // how long should a person be unseen before resending infoline?
442 "info_delay" "120";
443
444 // Greetings can be configured by the channel manager(s) and sent to users who join the channel.
445 // Many people (rightly) find this annoying, so keep them short.
446 // maximum greeting length
447 "max_greetlen" "120";
448
449 // maximum users in a channel userlist
450 "max_chan_users" "512";
451 // maximum bans on a channel banlist
452 "max_chan_bans" "512";
453 // maximum length of a user's infoline
454 "max_userinfo_length" "400"; // hard limit for infolines. This is also the default value.
455
456 // If SET DynLimit is on and there are N users in the channel, ChanServ will
457 // try to keep the limit at N+<adjust_threshold>. This makes the channel
458 // somewhat protected from clone attacks.
459 "adjust_threshold" "5";
460 // .. but ChanServ will only increment or decrement the limit this often.
461 "adjust_delay" "30"; // (seconds)
462
463 // How often to look for expired bans?
464 "ban_timeout_freq" "2m";
465
466 // How often to look for channels that have expired?
467 "chan_expire_freq" "1d";
468
469 // How long is a channel unvisited (by masters or above) before it can be expired?
470 "chan_expire_delay" "30d";
471
472 // How often to look for dnrs that have expired?
473 "dnr_expire_freq" "1h";
474
475 // what !set options should we show when user calls "!set" with no arguments?
476 "set_shows" ("DefaultTopic", "TopicMask", "Greeting", "UserGreeting", "Modes", "PubCmd", "InviteMe", "UserInfo", "EnfOps", "EnfModes", "EnfTopic", "TopicSnarf", "Setters", "CtcpReaction", "BanTimeout", "Protect", "Toys", "DynLimit", "NoDelete");
477
478 // A list of !8ball responses
479 "8ball" (
480 "Are you out of your MIND?",
481 "It won't happen, not a chance, definitely no.",
482 "Outlook seems bleak.",
483 "My sources say no.",
484 "You bet!",
485 "It is decidedly so.",
486 "It's hard to be sure.",
487 "Most definitely.",
488 "In your dreams...",
489 "If the prophets wish it...",
490 "Forecast hazy, try again later.",
491 "I don't know!",
492 "Absolutely!",
493 "Never.",
494 "Yes.",
495 "No.",
496 "Maybe.");
497
498 // This is a list of wheel-of-misfortune results. Remove them to disable.
499 // You must make sure your ircd supports, and has enabled, the features needed
500 // for these.
501 "wheel" (
502 "peer",
503 // "partall", // needs svspart
504 "gline",
505 // "shun", // needs shun
506 "nothing",
507 // "randjoin", // needs svsjoin and svspart
508 // "abusewhois", // needs epitaph in /whois support
509 "kickall",
510 // "nickchange", // needs svsnick
511 "kill",
512 "svsignore",
513 "kickbanall" );
514
515 // channel(s) that support helpers must be in to be helping
516 // if this is a list, any one by itself will do
517 "support_channel" ("#Operations", "#Help");
518
519 // maximum number of channels a user may have. ( FORCE can override )
520 "max_owned" "2";
521
522 // how long between automatic topic and userlist refreshes with TopicRefresh/Resync
523 "refresh_period" "10h";
524
525 // what should !access say for various staff?
526 "irc_operator_epithet" "AfterNET IRC Operator";
527 "network_helper_epithet" "AfterNET Network Helper";
528 "support_helper_epithet" "AfterNET Support Helper";
529
530 // what should a newly registered channel get as its modes?
531 "default_modes" "+nt";
532
533 // minimum opserv access to set, clear or override channel nodelete setting?
534 "nodelete_level" "1";
535
536 // when does god mode time out?
537 "god_timeout" "30m";
538
539 // What should valid registered channels look like?
540 // Be very carefull changing these. This default is
541 // basically limited to letters, numbers, dash and underscore.
542 "valid_channel_regex" "^#[-_a-z][-_a-z0-9]*$";
543 };
544
545 /* Global is a service bot that can send out network-wide messages for you. I
546 * like to set ours' nick to 'AfterNET', but some people use 'Global'
547 */
548 "global" {
549 "nick" "Global";
550 // should users get community announcements by default or not?
551 // community announcements are a type of global that users may
552 // opt into (or out of, depending on this setting)
553 "announcements_default" "on";
554 };
555
556
557 "spamserv" {
558 // You may enable this service by removing the double slashes from the config
559 // item. To disable it again add the double slashes back.
560 // "nick" "SpamServ";
561
562 // debug channel
563 "debug_channel" "#operserv";
564 "debug_channel_modes" "+tinms";
565
566 // url of the network rules. if you don't have network rules, remove this key.
567 "network_rules" "http://www.afternet.org/aup";
568
569 // trigger for spamserv; remove this key to disable the trigger
570 "trigger" "%";
571
572 // ban duration of a short timedban.
573 "short_ban_duration" "15m";
574
575 // ban duration of a long timedban.
576 "long_ban_duration" "1h";
577
578 // duration of a gline. SpamServ will issue it after several violations and a kill.
579 "gline_duration" "1h";
580
581 // users may add "exception_max" exceptions to the list. IRCOps can override "exception_max".
582 "exception_max" "10";
583
584 // minimum & maximum length of an exception.
585 "exception_min_len" "4";
586 "exception_max_len" "12";
587
588 // users may add "badword_max" badwords to the list. IRCOps can override badword_max".
589 "badword_max" "10";
590
591 // minimum & maximum length of an badword.
592 "badword_min_len" "4";
593 "badword_max_len" "12";
594
595 // if someone advertises a channel, which doesn't exist (channel is empty, no users),
596 // SpamServ doesn't punish the user.
597 // enable this setting, if SpamServ has to ignore advertisements of channels, which do not exist.
598 // disable this setting, if SpamServ has to punish the users whenever they advertise.
599 "adv_chan_must_exist" "1";
600
601 // remove all mirc codes from messages before checking for advertisements.
602 // if this setting is disabled and someone spams a url which
603 // contains a bold char, SpamServ doesn't punish him.
604 "strip_mirc_codes" "1";
605
606 // enable this, if SpamServ has to "follow" ChanServ, when a channel moves or merges.
607 // disable it, if it shouldn't be possible to move or merge SpamServ with /msg chanserv move|merge.
608 "allow_move_merge" "1";
609 };
610 };
611
612 /* MODULES (optional components) *************************************************
613 * These must be explicitly compiled in (see ./configure --help)
614 * When enabled, they are configured here..
615 */
616 "modules" {
617 /* Helpserv is a help-queue tracker module for your #support channels, if
618 * they are busy. It issues users tickets, and tracks the next available helper.
619 */
620 "helpserv" {
621 // The description/fullname field
622 "description" "Help Queue Manager"; // (for whois)
623
624 // HelpServ bots log all of their requests to this file, with
625 // details on when they were opened, closed, their contents,
626 // helper, etc. The file is written in saxdb format for easy
627 // parsing by external programs. Please note that you cannot
628 // use ?set to change this value while x3 is running.
629 "reqlogfile" "helpservreq.log";
630
631 // How long should a helpserv be inactive (no requests assigned)
632 // before it can be unregistered by the expire command?
633 "expiration" "60d";
634
635 // If a user prefix's this before their helpserv commands then instead
636 // of a request being opened, they will be able to use helpserv commands.
637 "user_escape" "@";
638 };
639 /* SockCheck reads sockcheck.conf and can do configurable scans
640 * to probe for open relays in an attempt to stop drones from using
641 * the network. DO NOT enable this unless you have permission from
642 * your ISP.. the probes will show up as attacks on everyones firewalls
643 * and you will get a lot of complaints.
644 */
645 "sockcheck" {
646 // disabling this hopefully
647 "max_sockets" "0"; // 64 is a good # of concurrent clients to be checked
648 "max_read" "1024"; // don't read more than 1024 bytes from any client
649 "gline_duration" "1d"; // issue G-lines lasting one hour
650 "max_cache_age" "60"; // only cache results for 60 seconds
651 "bind_address" "192.168.0.10"; // do proxy tests from this address
652 };
653 /* Snoop sends connect, quit, join, and part messages for every user
654 * on the network, and helps in finding drones. Put it somewhere secure
655 * so your users privacy is honored.
656 */
657 "snoop" {
658 // Where to send snoop messages?
659 "channel" "#MrSnoopy";
660 // Which bot?
661 "bot" "O3";
662 // Show new users and joins from net joins? (off by default)
663 "show_bursts" "0";
664 };
665 /* Track works just like Snoop except it only sends events for users
666 * who have been specified
667 * DANGER: track is currently very broken, and will crash x3 and possibly corrupt your db file.
668 * Unless your a developer, dont even compile it in!
669 */
670 "track" {
671 // What to track by default?
672 "snomask" "nick,join,part,kick,new,del,auth,chanmode,umode";
673 // Where to send snoop messages?
674 "channel" "#MrPeanuts";
675 // Which bot?
676 "bot" "O3";
677 // Show new users and joins from net joins? (off by default)
678 "show_bursts" "0";
679 };
680 /* Memoserv lets users send messages to other users accounts.
681 */
682 "memoserv" {
683 "bot" "MemoServ";
684 "modes" "+k";
685 "message_expiry" "30d"; // age when messages are deleted; set
686 // to 0 to disable message expiration
687 "limit" "30"; // Max amount of messages a person can get.
688 };
689 "qserver" {
690 "bind_address" "127.0.0.1";
691 "port" "7702";
692 "password" "hello";
693 };
694 "blacklist" {
695 // File containing blacklisted client addresses.
696 // "file" "blacklist.txt";
697 // Each line in the file should start with an IP or hostname.
698 // If there is whitespace and a message after that, the
699 // message will override this one:
700 "file_reason" "client is blacklisted";
701 // How long should a blacklist G-line last?
702 "gline_duration" "1h";
703 // If you want to use DNS blacklists, add them here:
704 "dnsbl" {
705 // This DNSBL zone does not exist - you'll have to pick your own.
706 "dnsbl.example.org" {
707 "description" "Example DNSBL entry";
708 "reason" "busted by a dns blacklist";
709 "duration" "1h";
710 // You can stick the client's IP in the G-line message.
711 "reason_2" "Example DNSBL reported %ip%'s address as 127.0.0.2";
712 // .. or the contents of a DNS TXT.
713 "reason_3" "%txt%";
714 };
715 };
716 };
717 "sar" {
718 // You generally will not want to override these defaults.
719 // "resolv_conf" "/etc/resolv.conf";
720 // "services" "/etc/services";
721 // "bind_address" "0.0.0.0";
722 // "bind_port" "0";
723 // The defaults for these are derived from the system config files (above).
724 // "domain" "example.org";
725 // "timeout" "3"; // base timeout for a DNS reply
726 // "retries" "3"; // number of times to retry on different servers or longer timeouts
727 // "ndots" "1"; // number of dots needed in a hostname to bypass search path
728 // "edns0" "0"; // if set, enable EDNS0 extended message sizes
729 // "search" ("example.org", "example.net");
730 // "nameservers" ("127.0.0.1");
731 };
732 /* WebTV allows webtv clients to use common IRC commands.
733 */
734 "webtv" {
735 "bot" "IRC";
736 "modes" "+k";
737
738 // Should clients need to be marked to use this service?
739 "required_mark" "1";
740 // which marks are valid webtv marks?
741 "valid_marks" ("webtv", "msntv", "msntv2");
742 };
743 };
744
745 "policers" {
746 "commands-luser" {
747 "size" "5";
748 "drain-rate" "0.5";
749 };
750 };
751
752 "rlimits" {
753 "data" "50M";
754 "stack" "6M";
755 "vmem" "100M";
756 };
757
758 /* MAIL (if and how X3 sends mail ) *********************************
759 * Mainly Authserv/Nickserv send mail, See the Nickserv
760 * section for additional mail settings also.
761 */
762 "mail" {
763 "enable" "1";
764 "mailer" "/usr/sbin/sendmail";
765 // OR Afternet uses a custom script to keep the services IP hidden:
766 // "mailer" "/home/x3user/x3/sendmail.sh";
767 "from_address" "supportrobot@afternet.org";
768 "extra_headers" ("AfterNET-Services: x3");
769 "body_prefix_first" ("Welcome to AfterNET, looks like this is your first email from us.");
770 "body_prefix" ("AfterNET Support - User and Channel registration system");
771 "body_suffix_first" ("", "AfterNET IRC Network", "http://www.afternet.org");
772 "body_suffix" ("", "AfterNET IRC Network", "http://www.afternet.org", "support@afternet.org","irc://irc.afternet.org/afternet");
773 // If you are using the smtp mail back-end, you may need to set these:
774 "smtp_server" "localhost";
775 "smtp_service" "smtp";
776 // "smtp_myname" "localhost.domain";
777 };
778
779 /* DBS (Databases) *************************************************
780 * let you configure what databases go in what files.
781 *
782 * This default sets up everything in one big x3.db file.
783 *
784 * If you leave this section out, each database will be in its own file,
785 * and they will be written out every half hour.
786 */
787 "dbs" {
788 // This just illustrates how you can jam every database into one huge ("mondo") file.
789 "ChanServ" { "mondo_section" "ChanServ"; };
790 "gline" { "mondo_section" "gline"; };
791 "shun" { "mondo_section" "shun"; };
792 "Global" { "mondo_section" "Global"; };
793 "HelpServ" { "mondo_section" "HelpServ"; };
794 "modcmd" { "mondo_section" "modcmd"; };
795 "NickServ" { "mondo_section" "NickServ"; };
796 "OpServ" { "mondo_section" "OpServ"; };
797 "sendmail" { "mondo_section" "sendmail"; };
798 "SpamServ" { "mondo_section" "SpamServ"; };
799
800 // These are the options if you want a database to be in its own file.
801 "mondo" {
802 // Where to put it?
803 "filename" "x3.db";
804 // How often should it be saved?
805 // (You can disable automatic saves by setting this to 0.)
806 "frequency" "30m";
807 };
808 };
809
810 /* LOGS (If and how X3 logs data ) ***********************************
811 * LOGS sets up where X3 logs various kinds of info to.
812 */
813 "logs" {
814 // Two kinds of items exist in this section.
815
816 // One is a facility configuration subsection. These have the
817 // name of a log facility (one of "ChanServ", "Global",
818 // "HelpServ", "NickServ", "OpServ", "ProxyCheck", or "x3") and
819 // the value is a subsection. The "x3" log facility is a
820 // catch-all/fall-back facility.
821 "x3" {
822 // The "max_age" option says how long to keep log audit entries.
823 "max_age" "10h";
824 // The "max_count" option says how many log audit entries to keep.
825 "max_count" "1024";
826 // Audit (command tracking) entries are discarded if they exceed
827 // either limit: for example, if entry 500 is 10 minutes old, it
828 // will be discarded next time any audit command is logged.
829 };
830
831 // The other kind of item is a target list. The name of each is a
832 // description of facility-and-severity combinations, and the value
833 // is a string (or list of strings) that describe where matching
834 // events should be logged. As a special case, the facility * will
835 // specify how to log events regardless of their true facility, and
836 // the severity * will match all severities for a facility.
837 // Log targets use a psuedo-URI syntax: one of "file:filename",
838 // "std:[out|err|n]" where n is a valid file descriptor, or
839 // "irc:#channel" (nicknames or server masks can be used instead
840 // of channel names, but should be used with care).
841 // The severity is one of "replay", "debug", "command", "info",
842 // "override", "staff", "warning", "error", or "fatal".
843 // WARNING: If any severity except "replay" for a facility is left
844 // unspecified, it will use the default target (for example,
845 // "file:chanserv.log"). For "replay" severity, you must ALWAYS
846 // list a target to log it -- this is because it is very rarely
847 // useful.
848 "*.*" ("std:out", "file:everything.log"); // does NOT suppress any defaults
849 "*.override,error,fatal" "irc:#TheOps"; // report all uses of staff commands
850 "*.staff" "irc:#MrSnoopy"; // report all uses of staff commands
851 "ChanServ.*" "file:chanserv.log"; // duplicates the default behavior
852 "ProxyCheck.*" (); // stop it from logging anything
853 };