1# Configuration file for ifmail (ifgate+ifcico) package by Eugene Crosser
2# Compile-time default name of this file may be overridden by -I key.
3
4# Lines with the first nonblank character '#' are comments.
5
6# Log file name. Overrides compile-time default.
7logfile		$LOGDIR$/husky.log
8
9# Debug file name. Overrides compile-time default.
10debugfile	$LOGDIR$/ifcico.debug.log
11
12# Debugging verbosity (is overidden by -x key). Default is 0.
13verbose		0
14
15# Main address:
16address		$UPLINKADDR$.$POINTNR$
17
18# AKAs:
19#address		21:102/5011.13
20
21# Primary nodelist (serves "outbound" directory and domain from the
22# first "address" statement). Name expanded with ".NNN" if
23# neccessary.
24#nodelist	/var/spool/ifmail/nl.d/nodelist	2:0/0@fidonet
25nodelist	$NODELISTDIR$/nodelist	2:0/0
26
27# Secondary nodelists and nodelists for other domains.
28# use directory name from the first "nodelist" statement.
29#		filename	originating address
30#nodelist	gernet		21:0/0@gernet
31
32# Directory for incoming packets/files:
33inbound		$INBOUND$
34# Directories for "listed" and "protected" sessions
35listinbound	$INBOUND$
36protinbound	$PROTINBOUND$
37
38# Directory for outgoing packets (default domain and zone):
39# other zones will be like "$OUTBOUND$.003",
40outbound	$OUTBOUND$
41
42# If you specify this, outgoing arcmail files will go to `outbound',
43# but be reffered as being in dosoutbound' in the .flo files
44#dosoutbound	h:\\spool\\ifmail\\outb
45
46# Sequencer file (used to generate unique IDs)
47sequencer	$WORKDIR$/ifcico.seq
48# Passwords for nodes. Not checked by iftoss (unless -DPARANOID
49# specified at compile-time), checked by ifcico.
50# Inserted into outgoing mail packets, EMSI and yoohoo packets.
51#password	2:315/11	dummy
52
53# Include config extension file (here: file with real passwords).
54# Includes may be nested. If the nesting is cyclic, the program cycles too.
55# You are warned.
56include		$CFGDIR$/password.lst
57
58# Directory from which the file requests are satisfied
59#public		/pub
60
61# Mapping file which maps shortnames of files to fullnames with path.
62# Every line should include the shortname, some whitespaces and/or tabs
63# and then the fullname.  If the fullname does not begin with '/'
64# the publicdir will be prepended to it.  One fullname can be mapped
65# to many shortnames without problems.  If one shortname points to many
66# fullnames, all matches are sent. The files are sent under their
67# shortnames.
68#reqmap		/var/spool/fnet/cfg/reqmap
69
70# Directory with executables to satisfy "magic" file requests
71# if requested a file present in this directory, it will be
72# executed and stdout sent to the remote system.  If the file
73# is not executable, it is read line by line and the lines are
74# processed as if they were received file requests (recusively).
75# Execution of commands may compromize security!  You are warned.
76#magic		/var/spool/fnet/cfg/magic
77
78# From this line on, values may be prefixed by a logical expression in
79# round brackets. Operators are: '!', '&', '|', 'Xor'.
80# Possible elements are:
81# - Nodelist flags (like "CM", "MNP", "V32" etc.)
82# - speed <operator> <numeric>
83#         where <operator> is '=', '!=', '<', '>', '<=',
84#         '>='
85# - address <wildcard>
86#         where <wildcard> is a (possibly incomplete) fidonet
87#         address, e.g. "5020/*"
88# - time <interval>[,<interval>,...]
89#         where <interval> is a day spec. with optional time spec.,
90#         e.g. Wk2000-0900,Sat1800-0000,Sun
91# - phone <prefix>
92#         e.g. "phone 7-095-"
93
94# Dialing parameters
95# of multiple "ModemPort", "ModemReset", "ModemDial",
96# "ModemHangup" lines, first matching is used.
97# of multiple "PhoneTrans", "ModemConnect", "ModemError" lines,
98# all matching are used.
99# In send and expect strings, following substitutions are made:
100# \\\\	'\\' character
101# \\r	carriage return (0x0d)
102# \\n	new line (0x0a)
103# \\t	tab (0x09)
104# \\b	backspace (0x08)
105# \\s	space (0x20)
106# \\NNN	(where N is an octal digit) - character with octal code NNN
107# \\d	1 second delay (send strings only)
108# \\p	1/4 second pause (send strings only)
109# \\T	translated telephone no. (send strings only)
110# \\D	untranslated telephone no. (send strings only)
111
112# PhoneTrans lines provide rules to change phone prefixes to make local
113# or long-distance calls.  In the example below, my country code is 7,
114# and local dialing area is 095.  From the numbers starting with "7-095-"
115# the prefix is stripped and the 7-digit remainder is dialed.  For
116# the numbers starting with "7-" but not with "7-095-", the country prefix
117# "7-" is stripped and the long-distance dialing prefix "8W" substituted.
118# For the numbers not matching any of the above, international
119# call is performed: international dialing prefix "8W10" is prepended
120# to the unmodified 11-digit number.  Generally, the syntax is:
121# "PhoneTrans <what-to-strip> / <what-to-substitute-instead>"
122PhoneTrans	$INTERNATPREFIX$-$LOCALPREFIX$-	$AMTNUM$/
123PhoneTrans	$INTERNATPREFIX$-	/	$AMTNUM$/$LOCALNUM$
124PhoneTrans	00-00-  /
125PhoneTrans		/	$AMTNUM$$INTERNATNUM$
126
127ModemReset	(X75) ATZ\\rAT\&E$DATANUM$\\r
128ModemReset	(V34) ATZ\\r
129ModemReset	(V32B) ATZ\\r
130ModemReset	(INTERN) ATZ\\r
131
132ModemDial	(X75) ATD\\T\\r
133ModemDial	(V34) ATDT\\T\\r
134ModemDial	(V32B) ATDT\\T\\r
135ModemDial	(INTERN) ATDT\\T,,\\r
136#ModemDial	(VFC) AT+MS=RVFC,1,14400,28800\\sDT\\T\\r
137#ModemDial	(V32B) AT+MS=V32B,1,9600,28800\\sDT\\T\\r
138#ModemDial	(ZYX) AT+MS=V32B,1,9600,28800\\sDT\\T\\r
139#ModemDial	ATDT\\T\\r
140
141ModemHangup	\\d+++\\dATZ\\r
142
143#ModemAfterCall	AT%Q2\\r
144ModemAfterCall	(X75) ATI2\\r
145ModemAfterCall	(V34) AT\\r
146ModemAfterCall	(V32B) AT\\r
147ModemAfterCall	(INTERN) AT\\r
148
149ModemOK		OK
150ModemConnect	CONNECT 9600
151ModemConnect	CONNECT 12000
152ModemConnect	CONNECT 14400
153ModemConnect	CONNECT 16800
154ModemConnect	CONNECT 19200
155ModemConnect	CONNECT 21600
156ModemConnect	CONNECT 24000
157ModemConnect	CONNECT 26400
158ModemConnect	CONNECT 28800
159ModemConnect	CONNECT 31200
160ModemConnect	CONNECT 33600
161ModemConnect	CONNECT 38400
162ModemConnect	CONNECT 56000
163ModemConnect	CONNECT 57600
164ModemConnect	CONNECT 64000
165ModemConnect	CONNECT 115200
166ModemConnect	CONNECT 128000
167ModemConnect	CONNECT
168
169ModemError	BUSY
170ModemError	NO\\sCARRIER
171ModemError	BLACKLISTED
172ModemError	NO\\sDIAL
173ModemError	RING\\r
174ModemError	ERROR
175
176# Timeouts to wait for "OK" and "CONNECT", cannot be prefixed by logical
177# expression.
178#TimeoutReset	3
179TimeoutConnect	45
180
181# Delay in seconds before every call in "automatic" mode.  Ignored
182# if explicit list of addresses specified in the command string.
183DialDelay	60
184
185# Call options (time, address and nodelist flag dependant)
186# All matching are applied in the order they are specified.
187# Possible options are "[No]Call", "[No]Hold", "[No]PUA", "[No]EMSI",
188# "[No]WaZOO", "[No]Freqs", "[No]Zmodem", "[No]ZedZap", "[No]Janus",
189# "[No]Hydra". Here, WaZOO stands for YooHoo/2U2 handshake, not for
190# the transfer scheme. FTS-0001 handshake and DietIFNA scheme cannot
191# be disallowed (because they are mandatory by standard).  "Hold"
192# means really hold "hold" type packets and files: do not send them
193# if our system initiated the session, "NoHold" means  send "hold"
194# packets when our system initiated the session. "NoPUA" stands for
195# "No PickUp All", i.e. PUP ("Pick Up Primary").  NoCall means do not
196# perform outbound call.  This flag has no effect on the nodes
197# explicitly specified in the command line.
198# Default options are "everything allowed".
199#options		(time Any0900-2100 & ! address 2:5020/*)	NoCall
200#options		((time Wk0800-1800 & ! phone 43-662-) | speed < 9600) NoCall
201#options         EMSI Freqs Hydra Hold NoJanus PUA Tcp WaZOO ZedZap Zmodem
202options		Call NoHold PUA EMSI WaZOO Freqs Zmodem ZedZap NoJanus NoHydra
203
204# EMSI data for this node
205# From this line on values CANNOT be prefixed with logical expression
206# For now, escaping of '}' and ']' unimplemented, try to avoid these
207# characters please!
208Name            Point #$POINTNR$ of $UPLINKADDR$
209Location        $LOCATION$
210SysOp           $SYSOPNAME$
211Phone           $INTERNATPREFIX$-$LOCALPREFIX$-$VOICENUM$ (Voice)
212Speed           9600
213
214# ModemPort present a blank-separated list of ports with possible speed
215# extention (separated by colon); if speed is prefixed with 'L', it is
216# a "locked" port speed, otherwise it is a maximum speed to be set, while
217# actual speed is taken from the nodelist.  If speed is omitted (or set
218# to zero), previous port speed is not changed.
219@ifdef isdndev
220ModemPort	(X75) $ISDNDEV$:L115200
221@endif
222@ifdef modemdev
223ModemPort	(V34) $MODEMDEV$:L$MODEMBAUD$
224ModemPort	(V32B) $MODEMDEV$:L$MODEMBAUD$
225ModemPort	(INTERN) $MODEMDEV$:L$MODEMBAUD$
226@endif
227
228@ifdef isdndev
229@ ifdef modemdev
230Flags		XA,X75,V34,V42B,U,ENC
231@ else
232Flags		XA,X75,U,ENC
233@ endif
234@else
235Flags		XA,V34,V42B,U,ENC
236@endif
237
238