view noffle.conf.example @ 288:c02c4eb95f95 noffle

[svn] * src/configfile.h,src/configfile.c,docs/noffle.conf.5: Add noffle-user and noffle-group configs. * src/configfile.c,src/fetch.c,src/fetchlist.c,src/protocol.c, src/server.c: Replace strcpy() with Utl_cpyStr() where appropriate. See Debian bug 168128. * src/control.c,src/configfile.c,src/noffle.c: Replace [s]scanf("%s") with [s]scanf(MAXCHAR_FMT). * src/noffle.c: Log warning if noffle.conf is world readable. * src/noffle.c: Restrict most options to news admins; i.e. those who are root or news on running Noffle. * Makefile.in,acconfig.h,aclocal.m4,config.h.in,configure,configure.in, docs/Makefile.in,docs/noffle.conf.5,packages/Makefile.in, packages/redhat/Makefile.in,src/Makefile.am,src/Makefile.in, src/authenticate.c,src/authenticate.h,src/noffle.c,src/server.c: Add basic authentication using either Noffle-specific user file or authenticating via PAM (service 'noffle'). PAM authentication needs to run as root, so a Noffle server that needs PAM must be started by root. Helpful (?) error messages will be logged if not. Noffle will switch ruid and euid to 'news' (or whatever is configured) ASAP. * src/noffle.c: Add uid checking.
author bears
date Fri, 10 Jan 2003 23:25:45 +0000
parents 0340b9c17edc
children b0ee77fa24d4
line wrap: on
line source

###############################################################################
#
# NOFFLE news server config file
#
###############################################################################

# Remote news server. Format: <hostname>[:<port>] [<user> <pass>]
# (<user> and <pass> only for servers with authentication,
# the password may not contain white-spaces)

server news

# Don't get *.binaries.* from server 'news'
#omitgroups *.binaries.*

# Second server
# server bins
#
# Only get binaries groups from server 'bins'
# getgroups *.binaries.*

# Mail address for failed postings

#mail-to root


# Never get more than <max-fetch> articles. Discard oldest, if there are more

max-fetch 300


# Automatically remove groups from fetch list if they have not been
# accessed for <n> days.

auto-unsubscribe no
#auto-unsubscribe-days 30


# Parameter for thread mode. Retrieve articles, if they are referencing an
# article that has been read within the last <n> days

thread-follow-time 7


# Timeout for connecting to remote server in seconds.

connect-timeout 30

# Log all protocol traffic
#log-debug protocol

# Automatically put groups on fetchlist, if someone accesses them.
# Mode can be: full, thread, over

auto-subscribe yes
default-auto-subscribe-mode full
#auto-subscribe-mode *.binaries.* over

# Replace Message-ID in posted articles. If you are in a local domain,
# ask your news provider for a domain name for generating Message-IDs.
# If the hostname option is unused, it is replaced by the fully qualified
# domain name of your system.

replace-messageid no
#hostname UserId-XXXXX_newsserver
#hostname %user@domain.tld

# Post articles to remote groups into the local database immediately
# on receipt of article.
#post-locally no

# Set the default expire period in days
default-expire 14

# Expire all alt.* groups after 2 days, except for alt.oxford.*
# expire after 4 days and alt.oxford.talk never expire.
#expire alt.oxford.talk 0
#expire alt.oxford.* 4
#expire alt.* 2

# Appearing here, this is equivalent to 'default-expire 20' above. If it
# appeared before the other expire lines, all groups would be
# expired at 20 days, as it would be the first custom match
# for every group.
#expire * 20

# Sample article filtering.
# 1. Silently dump without fetching any article with a title
#    looking like '$$$ Make Money Now $$$'.
# 2. Fetch articles cross-posted to more than 3 groups where one of the
#    groups is alt.flame in overview mode only.
# 3. Fetch all articles > 20k in size in overview mode only.
# 4. Fetch all articles older than 9.5 weeks in overview mode only.
# 5. Fetch all articles referencing your or other NOFFLE users'
#    articles in full mode. Works only with 'replace-messageid yes'.

#filter subject="\$+.*Make.*Money.*Now.*\$\$\$" action=discard
#filter xposts>3 group=alt.flame action=over
#filter bytes>20k action=over
#filter date<lastupdate-66.5 action=over
#filter reference="NOFFLE" action=full