# -*- sh -*-
#
# $Id: fidogate.conf,v 4.14 2002/08/05 23:50:35 dyff Exp $
#
# NEW!!! (FIDOGATE 4.3.0+) single common config file
#
# orodruin.fido.de
#
# Format:  keyword arg ...
#          keyword and args may be put in double quotes "..."
#

##############################################################################
# C O M M O N   C O N F I G U R A T I O N                                    #
##############################################################################

# directories
#CONFIGDIR	/usr/pkg/etc/fidogate # aka %C
#LIBDIR		/usr/pkg/lib/fidogate # aka %L
#BINDIR		/usr/pkg/lib/fidogate/bin # aka %N
#LOGDIR		/var/log/fido # aka %G
#VARDIR		/var/spool/fido # aka %V
#LOCKDIR 	/var/spool/fido/lock # aka %K
#SPOOLDIR	/var/spool/fido # aka %S
#BTBASEDIR	/var/spool/bt # aka %B

#INBOUND 	/var/spool/bt/in # aka %I
#PINBOUND	/var/spool/bt/pin # aka %P
#UUINBOUND	/var/spool/bt/uuin # aka %U
#FTPINBOUND	/var/spool/bt/ftpin

# files		
#ALIASES 	%C/aliases
#AREAS		%C/areas
#HOSTS		%C/hosts
#PASSWD		%C/passwd
#PACKING 	%C/packing
#ROUTING 	%C/routing
#HISTORY 	%V/history
#LOGFILE 	%G/log
#CHARSETMAP	%L/charset.bin

# facility, level when using syslog support (LOGFILE = "syslog")
# NOT YET SUPPORTED by FIDOGATE C programs (used by Perl scripts)
LogFacility	local0
LogLevel	notice

# OPTIONAL:
#
# MSDOS client drive to UNIX server directory translation. This allows
# FIDOGATE running on a UNIX system and BinkleyTerm on an MSDOS or OS2 PC.
#
#DosDrive	H:	/home
#DosDrive	I:	/var/spool
#DosDrive	P:	/u1
#DosDrive	Q:	/u2


# AREAS.BBS EchoMail distribution list
AreasBBS	%V/areas.bbs

# FAREAS.BBS file distribution list
FAreasBBS	%V/fareas.bbs



##############################################################################
# I N T E R N E T   A D D R E S S                                            #
##############################################################################

# hostname and domain
Hostname	orodruin
Domain		.fido.de
# optional domain name for entries in HOSTS file
HostsDomain	.fido.de



##############################################################################
# F I D O N E T   A D D R E S S E S                                          #
##############################################################################

Address		2:2452/110.2
Address		242:1000/5

# optional (different) gateway address, same as `ADDRESS' if missing
#GateAddress	2:2452/110.2
#GateAddress	242:1000/5


# zones and domains, the outbound directory is relative to the one
# specified with `BTBASEDIR'.
#
#	zone	Internet domain		FTN domain	Outbound
#	----	---------------		----------	--------
Zone	default	.Fido.DE		FidoDE		-

Zone	1	.fidonet.org		FidoNet		out.001
Zone	2	.fidonet.org		FidoNet		out
Zone	3	.fidonet.org		FidoNet		out.003
Zone	4	.fidonet.org		FidoNet		out.004
Zone	5	.fidonet.org		FidoNet		out.005
Zone	6	.fidonet.org		FidoNet		out.006

Zone	21	.gernet.heise.de	GerNet		out.015

Zone	242	.Fido.DE		FidoDE		out.0f2



##############################################################################
# A R E A F I X   C O N F I G U R A T I O N                                  #
##############################################################################

# Mailer program (must behave like sendmail -t)
AreaFixMailer	/usr/sbin/sendmail -t

# CC of reply mails
#AreaFixCc	postmaster@orodruin.fido.de

# Location of help file
AreaFixHelp	%L/areafix.help


##############################################################################
# T O S S E R   C O N F I G U R A T I O N                                    #
##############################################################################

# Toss process (runtoss, rununpack):
#
# Maximum number of messages to toss before closing output packets/
# exiting ftntoss.
MaxMsg		400

# Maximum number of concurrently open files (OS dependent)
MaxOpenFiles	40

# Maximum size of ArcMail archives (KByte)
MaxArc		2048

# Minimum free disk space (KByte)
#
DiskFreeMin	10240

# Disk free method
#
# Run DiskFreeProg
DiskFreeMethod	prog
# Always enough free disk space (use for WIN32)
#DiskFreeMethod	none

# Disk free program, %p is replace with path name
#
DiskFreeProg	df -P %p



# Kill empty NetMails addressed to one of our AKAs
# (default: processed normally)
KillEmpty

# Kill EchoMail for unknown areas
# (default: saved in bad packet)
#KillUnknown

# Kill routed EchoMail
# (default: saved in bad packet)
#KillRouted

# Kill insecure EchoMail (sender not listed in areas.bbs)
# (default: saved in bad packet)
#KillInsecure

# Log sender/recipient of all NetMail messages
LogNetMail

# Check ^APATH for our own address
CheckPath

# Kill EchoMail with circular ^APATH (looking for our own AKA),
# if CheckPath is enabled
# (default: saved in bad packet)
#KillCircular

# Enable dupe check using MSGID history database
DupeCheck

# Number of days a MSGID entry stays in the history database
# (decimal fraction allowed)
MaxHistory 28

# Kill old messages (date < now - MaxHistory) (= treat as dupe)
KillOld

# Kill dupe messages
#KillDupe

# Kill messages without ^AMSGID (= treat as dupe)
#KillNoMSGID


# Zonegate configuration for EchoMail
#
#		Address to	Add to SEEN-BYs
#		----------	---------------
#ZoneGate	2:123/456	123/456 2452/110
#ZoneGate	2:789/999	789/999 2452/110
#ZoneGate	1:105/42	105/42 2452/110

# Add extra nodes to SEEN-BY
#
#		Area		Nodes
#		----		-----
#AddToSeenBy	ABLED           2:24/24
#AddToSeenBy	ABLENEWS	2:24/24


# Use 4D echomail control lines, i.e. SEEN-BY / PATH includes point
# addresses
#
#TossEchoMail4D

# Do not output an empty PATH line
#
#NoEmptyPath



##############################################################################
# T I C K E R   C O N F I G U R A T I O N                                    #
##############################################################################

# Default outbound flavor for files forwarded by ftntick
#
TickFlav	"Normal"

# Default outbound flavor for file attaches by ftnfattach
#
FAttachFlav	"Normal"

#
# Directory for old files replaced by ftntick with new versions
#
#TickReplacedDir	"/pub/fido/oldfiles"

#
# File area for unknown TIC file areas
#
UnknownTickArea UNKNOWN



##############################################################################
# G A T E W A Y   C O N F I G U R A T I O N                                  #
##############################################################################

# Default origin line for EchoMail messages
Origin		"Martin Junius' orodruin.fido.de"

# Organization header for News
Organization	"Martin Junius' orodruin.fido.de"

# Use text from * Origin line for Organization header
#UseOriginForOrganization

# Use text from Organization header for * Origin line
#UseOrganizationForOrigin

# Use text from X-FTN-Tearline, X-Mailer, User-Agent, X-Newsreader header
# for --- tearline
#UseXHeaderForTearline

# Use FTN to address for mail addressed to the gateway without a To
# line, e.g. mail to
#     Max Mueller @ 2:2452/110.2
# with a HOSTS entry
#     2:2452/110.2  orodruin-ftn.fido.de
# is converted to
#     To: Max_Mueller@orodruin-ftn.fido.de
#
# Without this option the standard local HOST.DOMAIN is used
#     To: Max_Mueller@orodruin.fido.de
#
#UseFTNToAddress

# Type of 4D EchoMail control lines.
#
# With this enabled FIDOGATE generates SEEN-BY and ^APATH like:
#     SEEN-BY: 2452/110.2
#     ^APATH: 2452/110.2
# Else (undef'ed) only the boss node's address is used:
#     SEEN-BY: 2452/110
#     ^APATH: 2452/110
# There seems to be no standard for 4D EchoMail addressing. If you run
# into problems with this kind of EchoMail message, please change the
# code in rfc2ftn.c:print_origin().
#
EchoMail4D

# FTN - Internet gateway. If set, Internet mail will be routed via FTN
# and this gateway. (USE ONLY FOR POINT SYSTEMS!!!)
#Gateway		242:4900/99

# Generate `User.Name@do.main' instead of `User_Name@do.main'
#DotNames


# Don't gate messages with unknown zone in ^AMSGID (known zones are defined
# in config.common).
KillUnknownMSGIDZone

# Don't gate messages without a valid ^AMSGID (or similar)
#KillNoMSGID

# Don't gate split messages with a ^ASPLIT kludge
#KillSplit


# X-FTN header:
#
#     f    X-FTN-From
#     t    X-FTN-To
#     T    X-FTN-Tearline
#     O    X-FTN-Origin
#     V    X-FTN-Via
#     D    X-FTN-Domain
#     S    X-FTN-Seen-By
#     P    X-FTN-Path
#
#X-FTN		ftTOVDSP
X-FTN		ftTOVD


# Maximum size of FTN messages (default value) for splitting
#MaxMsgSize		15000
MaxMsgSize		32000

# Limit message size for gateway, bigger messages will be bounced/not gated
#LimitMsgSize		256000


# Do not allow RFC addresses (chars !, %, @) in FTN to field
#NoAddressInToField

# CC of bounced messages
BounceCCMail		postmaster@orodruin.fido.de

# Send mail from message trackers to
TrackerMail		postmaster@orodruin.fido.de

# Restrict gateway usage to FTN nodes registered in HOSTS
HostsRestricted

# Newsgroup for unknown FTN areas
FTNJunkGroup		fido.junk

# Errors-To header
#Errors-To		postmaster@orodruin.fido.de


# Translation of chars for automatic areas <-> newsgroup conversion
# (-H hierarchy option in AREAS)
#
#                       area chars	newsgroup chars
#			----------	---------------
AreasXlate		_		-

# NOTE 1: real gateways should *not* disable FSC0035/47 kludges, the
#         From: line is obsoleted by both ^ARFC-Xxxx kludges and
#         FSC0035 and not necessarily needed.
#
# NOTE 2: points without Internet connectivity (using FIDOGATE for
#         Fido only) should set
#             RFCLevel 0
#             NoFromLine
#             NoFSC0035
#
#
# Default ^ARFC level
#     0  -  no ^ARFC-Xxxx kludges
#     1  -  ^ARFC-Xxxx kludges for some headers (config.h, RFC_LVL_1_HEADERS)
#     2  -  ^ARFC-Xxxx kludges for all headers
RFCLevel		1

# Don't generate From: line at beginning of text body.
NoFromLine

# Don't generate FSC-0035 kludges (^AREPLYADDR, ^AREPLYTO)
#NoFSC0035

# Don't generate FSC-0047 kludges (^ASPLIT)
#NoFSC0047


# Parameters for ftnin/ftninpost/ftninrecomb
#
# sendmail program path and parameters
#
#    %s is replaced with the envelope sender
FTNInSendmail	/usr/sbin/sendmail -odb -oee -oi -f%s -pFIDOGATE:orodruin-ftn.fido.de -t

# rnews program path
FTNInRnews	/usr/bin/rnews

# run ftninrecomb
#FTNInRecombine


# Use 8bit ISO-8859-1 characters when gating from FTN to RFC
#NetMail8bit

# Use MIME quoted-printable ISO-8859-1 characters when gating from FTN to RFC
NetMailQuotedPrintable

# X-Flags policy
#
#    n, N, 0    -    No X-Flags processing at all
#    s, S, 1    -    X-Flags processing for local sender
#    a, A, 2    -    X-Flags processing for all
XFlagsPolicy n

# Don't try to get sender real name from Reply-To header
DontUseReplyTo

# Mode for RFC address generated by FIDOGATE
#
#    (), p, 0   -    user@do.main (Real Name)
#    <>, a, 1   -    Real Name <user@do.main>
RFCAddrMode <>

# Force ^AREPLYADDR to only contain ^AREPLYADDR <user@do.main>
# to be compatible with ifmail-TX
#ReplyAddrIfmailTX


# Check areas.bbs when gating newsgroups, messages for areas without
# downlinks in areas.bbs will be skipped.
#CheckAreasBBS


# Charset mapping
#
# Format	default:ftn:rfc
#		            ^^^ charset in RFC message, when gating FTN->RFC
#                               use RFC 2045 charset names!
#		        ^^^---- charset in FTN message, when gating RFC->FTN
#                               use FSC-0054 names!
#		^^^^^^^-------- charset assumed for FTN message, if no
#				^ACHRS kludge is present
#
# Default charset mapping, if NetMailCharset or -C is not set
DefaultCharset	x-ibmpc:latin-1:iso-8859-1

# Charset mapping for NetMail
NetMailCharset	x-ibmpc:latin-1:iso-8859-1

# If set and no matching in/out charset is found, ftn2rfc will use
# the first charset translation pair from charset.map with
# in charset = Fido ^ACHRS
# NOT YET IMPLEMENTED
NetMailCharsetUse1st


# The STRING which FIDOGATE's ftn2rfc adds to the Path header,
# normally "not-for-mail". If gated messages are not generally
# exported to the Usenet, setting it to "fidogate!not-for-mail" makes
# the INN newsfeeds entry easier and less error-prone.
NewsPathTail	"fidogate!not-for-mail"


# Regular expression patterns for finding addresses in the first line
# of the messages body. The first (...) sub-expression will be used for
# the address (\1 in sed, $1 in perl). POSIX *extended* regular expressions
# are used.
# The OS *must* support HAS_POSIX_REGEX in config.h!!!
Regex1stLine  ^In article <?[^ ]*@[^ ]*>? on ..:..:..,? (.*) (writes|wrote)
Regex1stLine  ^In article <?[^ ]*@[^ ]*>? on ..\...\...,? (.*) (writes|wrote)
Regex1stLine  ^In article <?[^ ]*@[^ ]*>?,? (.*) (writes|wrote):$
Regex1stLine  ^In <[^ ]*@[^ ]*>,? (.*) (writes|wrote):$
Regex1stLine  ^I[nm] Artikel <?[^ ]*@[^ ]*>?,? (.*) (schreibt|schrieb)
Regex1stLine  ^([a-z0-9_.\-]*@[a-z0-9_.\-]* \(.*\)) (writes|wrote|schreibt|schrieb)
Regex1stLine  ^(.* <[a-z0-9_.\-]*@[a-z0-9_.\-]*>) (writes|wrote|schreibt|schrieb)
Regex1stLine  ^(.* \([a-z0-9_.\-]*@[a-z0-9_.\-]*\)) (writes|wrote|schreibt|schrieb)
Regex1stLine  ^([a-z0-9_.\-]*@[a-z0-9_.\-]*) (writes|wrote|schreibt|schrieb)
Regex1stLine  ^On ..., .. ... .... ..:..:.. [+\-]...., (.*) (writes|wrote|schreibt|schrieb):$
Regex1stLine  ^On .. ... .... ..:..:.. [+\-]...., (.*) (writes|wrote|schreibt|schrieb):$
# User-Agent: slrn/0.9.7.0 (Linux)
Regex1stLine  ^<([^<>@]*)><.*@.*> (writes|wrote|schreibt|schrieb):$
# This is very generic, thus it must be the last entry.
# If this regex yields too many errors, comment it.
Regex1stLine  ^[ 	]*([^>|].*) (writes|wrote|schreibt|schrieb):$


# Line length for formatting long paragraphs in Fido messages
# (replaces old MAX_LINELEN from config.h)
MessageLineLength	72



##############################################################################
# F F X   C O N F I G U R A T I O N                                          #
##############################################################################

# If you don't know what the ffx programs are about, simply ignore or
# comment this section!

# Outbound flavor for FFX files
FFXDataFlav	"Normal"

# FFX commands
FFXCommand	rmail		%L/ffxrmail
FFXCommand	rnews		/usr/bin/rnews
FFXCommand	unbatchzip	/usr/bin/unzip -ojqq

# Sendmail command for ffxrmail
# -pFFX:RELAY substituted with real sender FQDN by ffxrmail
FFXRmailSendmail  /usr/sbin/sendmail -oee -oi -pFFX:morannon.fido.de
