# Configuration file for ifmail (ifgate+ifcico) package by Eugene Crosser
# Compile-time default name of this file may be overridden by -I key.

# Lines with the first nonblank character '#' are comments.

# Log file name. Overrides compile-time default.
logfile		/u/ifmail/iflog

# Debug file name. Overrides compile-time default.
debugfile	/u/ifmail/ifdebug

# Debugging verbosity level (is overidden by -x key). Default is 0.
verbose		8

# Main address:
address		2:5020/230@fidonet

# AKAs:
address		2:5020/6.14@fidonet
address		2:5020/23.14@fidonet
address		2:5020/49.14@fidonet
address		178:5020/140@dummynet

# Passwords for nodes. Not checked by iftoss (unless -DPARANOID specified
# at compile-time), checked by ifcico.
# Inserted into outgoing mail packets, EMSI and yoohoo packets.
password	2:5929/6	QWERY
password	2:5929/23	ASDFG

# Include config extention file (here: file with real passwords).
# Includes may be nested. If the nesting is cyclic, the program cycles too.
# You are warned.
include		/usr/local/lib/fnet/passwds

# System alias file - try to fetch ftn-style aliases from there.
# If "from" address of a message from FidoNet matches _right_ side
# of some entry in sysalias file, then the Reply-To: header is created
# in the RFC message with the name part taken from the left side of the
# sysalis entry and domain part taken from myfqdn (below). E.g., if a 
# fidonet message comes from "John Smith of 1:234/567.89@fidonet" and 
# there is an entry in the sysalias file:
# "jsmith:	John.Smith@p89.f567.n234.z1.fidonet.org"
# and fqdn value is "pccross.msk.su", then the resulting message will
# contain a line: "Reply-To: jsmith@pccross.msk.su".
sysalias	/usr/lib/smail/aliases

# This host fully qualified domain name to add to the alias above
myfqdn		pccross.msk.su

# Directory for incoming packets/files:
inbound		/usr/spool/fnet/inb
# Directories for "listed" and "protected" sessions
listinbound	/usr/spool/fnet/inb
protinbound	/usr/spool/fnet/inb

# Directory for outgoing packets (default domain and zone):
# other zones will be like "/usr/spool/fnet/outb.003",
# other domains will be like "/usr/spool/fnet/<domain>.<zone>"
outbound	/usr/spool/fnet/outb

# Directory from which the file requests are satisfied
public		/usr/spool/uucppublic

# Directory with executables to satisfy "magic" file requests
# if requested a file present in this directory, it will be
# executed and stdout sent to the remote system. It is dangerous!
# You are warned.
magic		/usr/local/lib/fnet/magic

# Primary nodelist (serves "outbound" directory and domain from the
# first "address" statement). Name expanded with ".NNN" if neccessary.
nodelist	/usr/local/lib/fnet/nldir/nodelist

# Secondary nodelists and nodelists for other domains.
# use directory name from the first "nodelist" statement.
#		filename	originating address
nodelist	pnt5020.ndl	2:5020/0@fidonet
nodelist	chatlist	100:0/0@chateaunet
nodelist	private.ndl	2:5020/0@fidonet

# domain translations, just context substitution.  Leading dot recommended.
# May contain '@'-sign too.  First matching used.
#		FTN side		Internet side
domtrans	.n5020.z2.fidonet	.fido.pccross.msk.su
domtrans	.n5030.z2.fidonet	.fido.tctube.spb.su
domtrans	.fidonet		.fidonet.org

# Automatically updated alias database
database	/usr/local/lib/fnet/ifdbm

# Sequencer file (used to generate unique IDs)
sequencer	/usr/local/lib/fnet/seq

# Areas file (format: "AREA newsgroup distribution")
areas		/usr/local/lib/fnet/Areas

# Bad groups prefixes - do not pass to fido if appear in Newsgroups header
# This is NOT the same as "!news.group" in the cnews "sys" file.
badgroup	relcom.ads.
badgroup	relcom.commerce.

# Internet -> FidoNet (outgoing) character mapping table (a la mapchan)
outtab		/usr/local/lib/fnet/outkoi8alt

# FidoNet -> Internet (incoming) character mapping table
intab		/usr/local/lib/fnet/outaltkoi8

# Transport programs for mail and news, used by iftoss
sendmail	/usr/lib/sendmail
rnews		/bin/rnews

# Toss program, used by ifunpack
iftoss		/usr/local/lib/fnet/iftoss

# Unpackers, used by ifunpack. 
# $F expands to archieve file name
unzip		/usr/bin/unzip -oq $F
unarj		/usr/bin/unarj e $F
unarc		/usr/bin/unpack $F
unzoo		/usr/bin/zoo -extract $F

# Packer program, used by ifpack
# $F expands to archieve file name, $P - to packet name
packer		/usr/bin/zip $F $P

# Maximum arcmail file size, will start new arcmail file if exceeds
maxfsize	65000

# cnews log file and (temporary) database for seen-bys
newslog		/usr/local/lib/news/log
msgidbm		/tmp/msgidb

# From this line on, values may be prefixed by a logical expression in
# round brackets. Operators are: '!', '&', '|', 'Xor'.
# Possible elements are:
# - Nodelist flags (like "CM", "MNP", "V32" etc.)
# - speed <operator> <numeric>
#         where <operator> is '=', '!=', '<', '>', '<=', '>='
# - address <wildcard>
#         where <wildcard> is an (possibly incomplete) fidonet address, 
#         e.g. "5020/*"
# - time <interval>[,<interval>,...]
#         where <interval> is a day spec. with optional time spec., e.g.
#         Wk2000-0900,Sat1800-0000,Sun
# - phone <prefix>
#         e.g. "phone 7-095-"

# Dialing parameters
# of multiple "ModemPort", "ModemReset", "ModemDial", "ModemHangup" lines, 
# first matching is used.
# of multiple "PhoneTrans", "ModemConnect", "ModemError" lines, all matching 
# are used.
# In send and expect strings, following substitutions are made:
# \\	'\' character
# \r	carriage return (0x0d)
# \n	new line (0x0a)
# \t	tab (0x09)
# \b	backspace (0x08)
# \s	space (0x20)
# \NNN	(where N is an octal digit) - character with octal code NNN
# \d	1 second delay (send strings only)
# \p	1/4 second pause (send strings only)
# \T	translated telephone no. (send strings only)
# \D	untranslated telephone no. (send strings only)

# ModemPort present a blank-separated list of ports with possible speed
# extention (separated by colon); if speed is prefixed with 'L', it is
# a "locked" port speed, otherwise it is a maximum speed to be set, while
# actual speed is taken from the nodelist.  If speed is omitted (or set
# to zero), previous port speed is not changed.
#ModemPort	(time Any0000-0900,Sat,Sun) ttyS0
ModemPort	cua0:L38400

# PhoneTrans lines provide rules to change phone prefixes to make local
# or long-distance calls.  In the example below, my country code is 7,
# and local dialing area is 095.  From the numbers starting with "7-095-"
# the prefix is stripped and the 7-digit remainder is dialed.  For
# the numbers starting with "7-" but not with "7-095-", the country prefix
# "7-" is stripped and the long-distance dialing prefix "8W" substituted. 
# For the numbers not matching any of the above, international
# call is performed: international dialing prefix "8W10" is prepended
# to the unmodified 11-digit number.  Generally, the syntax is:
# "PhoneTrans <what-to-strip> / <what-to-substitute-instead>"
PhoneTrans	7-095-	/
PhoneTrans	7-	/	8W
PhoneTrans		/	8W10
ModemReset	ATZ\r
ModemDial	(time Any0800-2200 & address 2:5020/49) AT&M5&N4DP\T\r
ModemDial	(address 2:5020/49) AT&M5&N6DP\T\r
ModemDial	(speed < 4800) AT&N3DP\T\r
ModemDial		ATDP\T\r
ModemHangup	ATZ\r
ModemOK		OK
ModemConnect	CONNECT
ModemError	BUSY
ModemError	NO\sCARRIER
ModemError	NO\sDIAL
ModemError	RING\r
ModemError	ERROR

# Call options (time, address and nodelist flag dependant)
# All matching are applied in the order they are specified.
# Possible options are "[No]Call", "[No]Hold", "[No]PUA", "[No]EMSI",
# "[No]WaZOO", "[No]Freqs", "[No]Zmodem", "[No]ZedZap", "[No]Janus",
# "[No]Hydra". Here, WaZOO stands for YooHoo/2U2 handshake, not for
# the transfer scheme. FTS-0001 handshake and DietIFNA scheme cannot
# be disallowed (because they are mandatory by standart).  "Hold" 
# means really hold "hold" type packets and files: do not send them
# if our system initiated the session, "NoHold" means  send "hold"
# packets when our system initiated the session. "NoPUA" stands for
# "No PickUp All", i.e. PUP ("Pick Up Primary").  NoCall means do not
# perform outbound call.  This flag has no effect on the nodes
# explicitly specified in the command line.
# Default options are "everything allowed".
options		((!CM) & time Any0700-0200) Nocall
#options		(time Any0900-2100 & ! address 2:5020/*) Nocall

# EMSI data for this node
# From this line on values CANNOT be prefixed with logical expression
# For now, escaping of '}' and ']' unimplemented, try to avoid these
# characters please!
Name		== Eugene Crosser's ==
Location	Moscow Russia
SysOp		Eugene Crosser
Phone		7-095-212-5274
Speed		9600
Flags		XA,V32B,V42B
