[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
FIDOGATE uses the following config files:
4.1 Main Configuration File Main configuration file 4.2 hosts
FTN Address to Host Name Conversionhosts FTN address to host name conversion 4.3 aliases
User Aliasesaliases user aliases 4.4 areas
FTN Area to Newsgroup Conversionareas FTN area to newsgroup conversion 4.5 Bounce Messages of ftn2rfc
Bounce messages of ftn2rfc
4.6 passwd
Password Config Filepasswd password config file 4.7 routing
Config Filerouting file for ftntoss
andftnroute
4.8 packing
Config Filepacking file for ftnpack
4.9 areas.bbs
EchoMail Distributionareas.bbs EchoMail distribution
For all config files, a line starting with (some white space and)
#
character is a comment and as well as an empty line completely
ignored.
All config files (with the execption of areas.bbs
support an
include
command for reading in other config files. include
must be the first keyword on the line, the filename is the next
argument.
All options and config statements which take file or directory names as
arguments accept the following %
abbreviations:
%C
%L
%N
%G
%V
%K
%S
%B
%I
%P
%U
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
fidogate.conf
is the main configuration file for all FIDOGATE
programs.
NOTE: the new single configuration file replaces the different
configuration files config.*
and *.conf
of versions prior
to 4.3.0.
The format of fidogate.conf
is:
keyword [ arg ... ] |
Keywords and arguments may be quoted in ""
, keywords are
case-insensitive.
See examples/orodruin/fidogate.conf
for an up-to-date commented
version of the new config file.
Common configuration:
include file
ConfigDir directory
config.make
).
LibDir directory
config.make
).
BinDir directory
config.make
).
LogDir directory
config.make
).
VarDir directory
areas.bbs
,
fareas.bbs
, history
(default specified in
config.make
).
LockDir directory
config.make
).
SpoolDir directory
config.make
).
BTBaseDir directory
out.
nnn zone directories (default
specified in config.make
).
Inbound directory
config.make
).
PInbound directory
config.make
).
UUInbound directory
config.make
).
FTPInbound directory
config.make
).
Aliases file
config.make
).
Areas file
config.make
).
Hosts file
config.make
).
Passwd file
config.make
).
Packing file
config.make
).
Routing file
config.make
).
History file
config.make
).
Logfile file
config.make
).
CharsetMap file
config.make
).
LogFacility facility
LogLevel level
LogFile
syslog
). NOT YET SUPPORTED: C programs use definition from
config.h
, syslog support in Perl scripts (which use these
settings) is currently commented out.
DosDrive drive directory
H:
) to a
directory. This is useful, if you keep your outbound on a UNIX server
and run BinkleyTerm on a DOS client. If one or more DosDrive
statements are specified, FIDOGATE will automatically translate file
attaches to the file names seen by the DOS client. Up to 16
DosDrive
entries may be specified (MAXDOSDRIVE
from
config.h
).
AreasBBS name
areas.bbs
EchoMail distribution file.
FAreasBBS name
fareas.bbs
file echo distribution file.
Internet address configuration:
Hostname name
Domain name
HostsDomain name
hosts
config file. Default is
the same as Domain
.
Fidonet address configuration:
Address node
Address
statements (MAXADDRESS
from config.h
).
GateAddress node
Address
statements. There may be up to
32 GateAddress
statements.
If you're operating a Fido node, you may want to use a point addresse for your gateway to avoid name problems with local users and the gateway. If you're operating an official gateway in Fidonet or an Othernet, you normally have a separate node address for the gateway.
Zone zone domain ftndomain out
BTBaseDir
) for the
FTN zone zone. zone may be default
, then this is the
default entry for not explicitely specified zones. Up to 32 Zone
entries may be specified (MAXADDRESS
from config.h
).
The gateway will only process mails from/to zones which are explicitly specified here.
Areafix configuration:
AreaFixMailer command
ftnaf
to send replies.
AreaFixCC user@domain
ftnaf
.
AreaFixHelp file
%help
) command.
Tosser configuration:
MaxMsg n
-m
option.
MaxOpenFiles n
MAXOPENFILES
from config.h
), see also -M
option.
MaxArc Kbyte
ftnpack
. See also
-m
option.
MinDiskFree Kbyte
runtoss
script. runtoss
will terminate if there is less than Kbyte
free disk space in SPOOLDIR.
DiskFreeMethod text
prog
uses program specified
with DiskFreeProg
, none
doesn't do any disk space
checking.
DiskFreeProg command
%p
is replace
with path name of the directory to be checked.
KillEmpty
KillBlank
KillUnknown
KillRouted
KillInsecure
areas.bbs
).
LogNetMail
Track
CheckPath
KillCircular
).
KillCircular
^APATH
).
DupeCheck
History
database).
MaxHistory days
KillOld
MaxHistory
, i.e. treat as
dupes.
KillDupe
KillDupes
DupeCheck
is enabled.
KillNoMSGID
^AMSGID
, i.e. treat as dupes.
ZoneGate node seenby
ZoneGate 1:105/42 105/42 2452/110 |
AddToSeenBy area nodes
*?[a-z]
.
TossEchoMail4D
NoEmptyPath
Ticker configuration:
TickFlav flavour
ftntick
.
FAttachFlav flavour
ftnfattach
.
TickReplacedDir directory
ftntick
.
UnknownTickArea area
Gateway configuration:
Origin text
rfc2ftn
. Quote text in ""
if it contains
spaces. Individual origin lines may be specified in the areas
file using the -o
option.
Organization text
ftn2rfc
. Quote text in ""
if it contains spaces.
UseOriginForOrganization
UseOrganizationForOrigin
UseXHeaderForTearline
X-FTN-Tearline
, X-Mailer
, User-Agent
,
or X-Newsreader
for the -- tearline.
UseFTNToAddress
Max Mueller 2:2452/110.2 |
2:2452/110.2 orodruin-ftn.fido.de |
To: Max_Mueller@orodruin-ftn.fido.de |
To: Max_Mueller@orodruin.fido.de |
EchoMail4D
Gateway node
DotNames
rfc2ftn
recognizes both address
types.
KillUnknownMSGIDZone
^AMSGID
from an unknown zone (not
listed in Zone
statements).
KillNoMSGID
^AMSGID
kludge.
KillSplit
^ASPLIT
kludge.
X-FTN header
ftn2rfc
:
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-From
is required for the proper operation of ftnaf
.
MaxMsgSize bytes
LimitMsgSize bytes
NoAddressInToField
@ ! %
chars in the FTN to field, thus preventing
users from putting Internet addresses in the to field.
BounceCCMail user@do.main
TrackerMail user@do.main
HostsRestricted
hosts
.
FTNJunkGroup name
ErrorsTo user@do.main
AreasXlate area-chars newsgroup-chars
areas
file) of characters for
Fido area <-> Internet newsgroup name conversion.
RFCLevel n
-R
option in areas
.
NoFromLine
From:
header and FSC-0035 kludges. Must be set for
a non-gateway, point FIDOGATE configuration.
NoFSC0035
^AREPLYADDR
, ^AREPLYTO
.
NoFSC0047
^ASPLIT
, use old * Large message
split by
... text line.
FTNInSendmail command ...
ftninpost
with options. The option
-fsender
will be automatically added by ftninpost
. For
compatibility with old FIDOGATE configurations, any -f%s
option
will be removed.
FTNInRnews command ...
ftninpost
.
FTNInRecombine
ftninrecomb
to recombine split messages.
NetMail8bit
NetMailQuotedPrintable
NetMailQP
NetMailQuotedPrintable
overrides NetMail8bit
if
both are specified.
XFlagsPolicy
n N 0
s S 1
a A 2
DontUseReplyTo
RFCAddrMode mode
() p 0
<> a 1
ReplyAddrIfMailTX
^AREPLYADDR
(if FSC0035
is enabled) to only contains
^AREPLYADDR <user@do.main>
for compatibility with ifmail-TX.
CheckAreasBBS
areas.bbs
when gating newsgroups, message for areas without
downlinks will be skipped.
DefaultCharset default:ftn:rfc
^ACHRS
kludge is present
in the message. ftn is the charset to be used in the FTN messages
when gating from RFC to FTN (use FSC-0054 names here), rfc likewise
when gating from FTN to RFC (use RFC 2045 names here). See also the
-C
option in the areas
config file.
NetMailCharset default:ftn:rfc
DefaultCharset
, but only for NetMail (mail) messages.
NetMailCharsetUse1st
ftn2rfc
will use the first character set translation pair from
charset.map
with in charset = Fido ^ACHRS
and set the
output character set accordingly. NOT YET IMPLEMENTED.
NewsPathTail string
ftn2rfc
, the
de-facto standard is not-for-mail
. Alternatively you can set this
to fidogate!not-for-mail
making the INN newsfeeds
much
easier and less error-prone, particularly for point systems.
SingleArticles
ftn2rfc
,
not news batches containing several articles (batch is default).
Regex1stLine pattern
HAS_POSIX_REGEX
in
config.h
!
As of FIDOGATE 4.3.4, the compiled-in pattern matching code is no longer
availabe. See examples/orodruin/fidogate.conf
for a suitable list
of regular expressions.
MessageLineLength number
MAX_LINELEN
from
config.h
. The default value is 72.
DontIgnore0x8d
DontIgnoreSoftCR
RegisteredHostsOnly
hosts
list. NOT
YET IMPLEMENTED.
RegisteredAliasesOnly
aliases
, either
alias@host.do.main or Full_Name@host.do.main, as valid
recipients (also including postmaster) for rfc2ftn
.
With this option, the gateway can be restricted to registered users, which is also very useful for fighting Spam.
SilentBounces
FFX configuration:
(FFX is a part of FIDOGATE, an uux-like mechanism for remote execution, using a Fido mailer instead of UUCP for transport. This is a special hack for my own purposes, most likely you don't want to know anything about it. Simply ignore or remove this section from the config file.)
FFXDataFlav flavour
ffx
program.
FFXDataCompr command ...
ffx
data files.
FFXDataExt parameter
ffx
data files.
FFXDataDecompr parameter
ffx
data files (will be run by
ffxqt
).
FFXDataComprN parameter
ffx
data files (option
-n
).
FFXDataExtN parameter
ffx
data files
(option -n
).
FFXDataDecomprN parameter
ffx
data files (option
-n
, will be run by ffxqt
).
FFXCommand name command ...
ffxqt
. Only the commands listed can be executed. This replaces
the old LIBDIR/ffxqt-dir/name structure of previous FIDOGATE
versions.
FFXUncompress name command ...
ffxqt
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
hosts
FTN Address to Host Name Conversion
This file contains the FTN addresses and host names for registered FTN
nodes. If HostsRestricted
is defined in config.gate
, this
file controls the access to the gateway.
The format of this file is
node hostname [ options ] |
Fields:
.
is a hostname in the local
domain (specified by HostsDomain
or default Domain
in config
).
.
is a fully qualified domain name
for this node.
-
-
specifies a listed node, but without a host name
translation, using the standard p.f.n.z address.
-p
p99.hippo.fido.de
.
Default is omitting the point part.
-d
The hosts
file is read into memory during startup of FIDOGATE.
The first entry found matches, so a host name for a point must be
specified before the boss node, if there are entries for both.
Example:
config
:
HostsDomain .Fido.DE |
hosts
:
2:2452/110 hippo 2:2452/990 test -p 2:2452/991 test.wusel.org. 2:2452/999 - |
Resulting data base read into memory:
Node: 2:2452/110.0 Hostname: hippo.Fido.DE Flags: Node: 2:2452/990.0 Hostname: test.Fido.DE Flags: POINT Node: 2:2452/991.0 Hostname: test.wusel.org Flags: Node: 2:2452/999.0 Hostname: Flags: |
This results in the following conversion of addresses from FTN to Internet:
2:2452/110 -> hippo.Fido.DE 2:2452/110.99 -> hippo.Fido.DE 2:2452/990.99 -> p99.test.Fido.DE 2:2452/991.1 -> test.wusel.org 2:2452/999.2 -> p2.f999.n2452.z2.Fido.DE |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
aliases
User Aliases This file contains user aliases, the FTN address, and the full name of the user.
The format of this file is
alias node "full name" |
Fields:
user
or a complete Internet
address user@do.main
.
The FTN address node may be a point address. In this case mail addressed to the user at the boss node address will be readdressed to this point, see example below.
Example:
aliases
:
mvr 2:2452/110.6 "Marc van.Rey" |
Using the definitions from the section on hosts
, this results in
the following address conversion:
Marc van.Rey @ 2:2452/110.6 <-> mvr@hippo.Fido.DE |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
areas
FTN Area to Newsgroup Conversion This file contains FTN areas with corresponding newsgroups and options.
The format of this file is
area newsgroup [ options ] |
Fields:
-a address
-z zone
-d distribution
distribution
for this newsgroup when gating from FTN
to Internet.
-o "origin"
config
.)
-g
-l
-x
-8
-Q
-H
Example:
GNU. gnu. -z 242 -H |
gnu.announce
will be converted to GNU.ANNOUNCE
,
gnu.bug.gcc
to GNU.BUG.GCC
, similar for all other.
-!
-H
). Usefull to exclude certain newsgroups from a hierarchy for
gating.
Example:
ALT.BINARIES. alt.binaries. -z 242 -H -! ALT. alt. -z 242 -H |
alt.*,!alt.binaries.*
. Please
note that the first areas
entry matches, so any -!
must be
placed before the -H
hierarchy definition.
-R level
^ARFC-
Header put into FIDO messages for this
area. Level:
^ARFC-
header at all.
^ARFC-
header.
^ARFC-
header.
-m bytes
MaxMsgSize
for this area (0 = no limit).
-M bytes
LimitMsgSize
for this area (0 = no limit).
-X "RFC-Header: text"
ftn2rfc
. Multiple -X
options are possible.
-C default:ftn:rfc
DefaultCharset
config option for details.
Only newsgroups listed in this file will be gated from Internet to FTN.
FTN area not listed in this file will be gated into the
FTNJunkGroup
newsgroup specified in fidogate.conf
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ftn2rfc
ftn2rfc
uses the following files for messages sent to the FTN
user when bouncing mail for some reason:
bounce.noto
UUCP
or GATEWAY
without a
To
line at the very beginning of the message.
bounce.down
hosts
(-d
flag).
bounce.restricted
hosts
, gateway running in
restricted mode.
bounce.insecure
To
line. This requires the -t
option to
ftn2rfc
.
Within a bounce message, the following substitutions can be used:
%F
%T
%O
%d
%t
%f
%s
%R
To
line, Internet address.
%M
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
passwd
Password Config File
This file contains passwords used by ftnaf
, ffx
, and the
tosser programs.
The format of this file is:
context node password options |
Contexts:
packet
ftntoss
, inserted by all
FIDOGATE programs which create FTN packets. Password checking for
incoming packets is NOT YET IMPLEMENTED.
af
ff
ffx
ffx
command passwords, checked by ffxqt
, inserted by
ffx
into the .ffx
command files.
uplink
Optional stuff (options) is used for af
and ff
permission settings:
lvl key "Sysop Name" |
lvl is the access level, which must be greater or equal than the one
in areas.bbs
. key is the access key, which must be a super
set of the one in areas.bbs
.
Optional stuff (options) is used for uplink
:
"name" |
name is the user name (normally Areafix
or Areamgr
) at
node address, where areafix requests must be forwarded to. Used by
ftnafutil
.
Example:
uplink 2:2499/99 XXXXXXXX AreaMgr packet 2:1234/5678 WUERG ffx 242:1111/99 BLAHBLUB af 2:1234/5678 WUSEL 1 F "Test Sysop" ff 242:1234/5678 WUSEL 4 UQ "Yet Another Sysop" |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
routing
Config File
This file contains the routing commands performed by ftntoss
(commands remap
and rewrite
) and ftnroute
(everything else). The first routing command found matches.
The syntax of the routing
commands is very similar to the routing
file used by the well-known FIDO tossers QMail and SQUISH.
The format of this file is:
remap src-node dest-node name remapto src-node dest-node name remapx src-node prog name remapfrom src-node dest-node name rewrite src-node dest-node echomail netmail send flavor nodes route flavor dest-node nodes hostroute flavor nodes hubroute flavor nodes xroute flavor dest-node from-node to-node bossroute flavor nodes change old-flavor new-flavor nodes sendmove flavor nodes |
Commands:
remap
remapto
remapx
%S/remapx/
prog. Most useful for processing areafix
messages. name supports shell-style wildcard patterns.
NOT YET IMPLEMENTED.
remapfrom
rewrite
echomail
netmail
allmail
send
WARNING: e.g. send hold 2:2452/110
actually is the same as
route hold 2:2452/110.0 2452/110.*
. So send hold 2:2452/110
110.*
will not have the desired effect, use send hold
2:2452/110.*
only instead!!!
route
hostroute
hubroute
xroute
bossroute
change
sendmove
send
, but ftnroute
doesn't copy the mail packets,
they are moved instead. This requires that SPOOLDIR/toss/tmp and
SPOOLDIR/toss/out are on the same file system/disk drive.
Node addresses nodes, src-node, dest-node support wildcards
using *
and all
, which can be used for the zone, net,
node, and point component of an address. *
alone matches all
addresses. rewrite
wildcards in the destination address are
replaced with the corresponding component of the source address.
The outbound flavor string flavor can be any of
normal
, hold
, crash
, direct
, out
,
hut
, cut
, dut
.
Example:
Remap 2:2452/110.0 2:2452/110.7 "Martin Koser" Rewrite 242:241/* 2:241/* NetMail send hold 242:1000/1.all change crash hold 242:1000/1.all 2.all send hold 242:1000/3 route hold 242:1000/50 51 52 53 54 55 56 57 58 59 |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
packing
Config File
This file contains the packer (archiver) definitions and packing
commands for ftnpack
.
The format of this file is:
arc name |
Packer/program definitions:
arc
%s
, the first one is replaced with the
archive name, the second one with the packet name.
prog
progn
%s
, which is replaced with the name of the packet to be
processed. prog
deletes the packet after successfully running
program
, progn
doesn't.
Packing definitions:
pack
noarc
indicates that the mail packet
should not be packed, but copied to the OUT file of the node.
rpack
pack
, but pack all mail addressed to nodes to the
archive for dest-node.
fpack
rpack
, but the packet is archived for the normal
arcmail packet for each node. This archive is then attached to the FLO
file of dest-node.
dirpack
Example:
arc zip "/usr/local/bin/zip -gkj %s %s" progn gate "/usr/lib/fidogate/ftn2rfc %s" progn areafix "/usr/lib/fidogate/ftnafpkt %s" rpack zip 2:242/41 2:242/42 242:2000/* 254:*/* pack noarc 2:2452/110.1 242:4900/99 254:2410/6.1 pack zip * |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
areas.bbs
EchoMail Distribution
This file contains the EchoMail areas and linked nodes. The file
fareas.bbs
is used for file echos.
The format of this file is as follows, the first line being ignored for compatibility with the standard DOS AREAS.BBS. Individual fields can be enclosed in "..." to allow spaces, in particular for the area description.
[#]directory area [options] nodes |
-a
) will be created.
-a address
-z zone
ftnaf
will
automatically rewrite areas.bbs
, inserting the -z
option.
-l lvl
-k key
-d "description"
"..."
to allow spaces in
description text.
-#
#
).
-r
nodes
!)
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |