This chapter describes the FIDOGATE configuration and installation. You
must also create and edit the config files to be installed in the
CONFIGDIR directory, fidogate.conf
, areas
, hosts
,
passwd
, routing
, packing
, aliases
according
to your setup (see the examples subdirectory).
The chapter on config files describes them in detail.
config.h
Header File
Normally, if you want to compile a standard version of FIDOGATE on one
of the supported platforms, it is not necessary to change anything
in this file. Most things can be configured or overridden in
config.make
(compile-time) or fidogate.conf
(run-time).
If you really want to edit config.h
, here are the gory details:
LOCAL_FTN_ADDRESSES
DO_BSY_FILES
NFS_SAFE_LOCK_FILES
AMIGADOS_4D_OUTBOUND
MAXMSGSIZE
rfc2ftn
, larger
messages will be split. Alas, less than 16K seems to be the only safe
setting. This is the default value.
FTN_INVALID_DOMAIN
FACILITY
Logfile
is set to "syslog".
CHARSET_STDFTN
CHARSET_STD7BIT
ALIASES_ARE_LOCAL
aliases
config file are rewritten so
that the sender's address is the gateway.
PASSTHRU_NETMAIL
PASSTHRU_ECHOMAIL
AI_1
AI_3
AI_5
AI_6
AI_8
contrib/fidogate-4.3a3-ai-pl9.1/README.ai
for
details. AI_2,4,7
are now fully integrated.
System dependent configuration:
This configuration contains several groups of #define/#undef. First, the definitions for a standard POSIX UNIX, followed by #ifdef'ed definitions for SunOS, Linux, FreeBSD, Interactive UNIX, MSDOS DJGPP, NextStep, GNU-WIN32.
If you want to port FIDOGATE to a new system, please add a #ifdef'ed section similar to the already existing ones.
The gory details:
HAS_FCNTL_LOCK
HAS_GETTIMEOFDAY
HAS_TM_GMTOFF
HAS_SYSEXITS_H
sysexits.h
header file.
HAS_TM_ZONE
HAS_STRFTIME
HAS_TZNAME
extern char *tzname[2]
.
HAS_STRCASECMP
strcasecmp()
and
strncasecmp()
functions.
HAS_STRICMP
stricmp()
and
strnicmp()
functions.
HAS_STERROR
strerror()
function.
DO_BINARY
DO_DOSIFY
\
.
RECEIVED_BY_MAILER
HAS_SYSLOG
syslog()
,
vsyslog()
are suppored.
HAS_SNPRINTF
snprintf()
and vsnprintf()
are supported.
HAS_HARDLINKS
link()
.
HAS_POSIX_REGEX
Define only one of HAS_TM_ZONE
, HAS_STRFTIME
,
HAS_TZNAME
, and also only one of HAS_STRCASECMP
,
HAS_STRICMP
.
THE FOLLOWING DEFINES SHOULD REALLY BE LEFT AS IS!!!
MSGID_FIDONET_DOMAIN
PACKET_MODE
BSY_MODE
FLO_MODE
DATA_MODE
DIR_MODE
CONF_MODE
FTN_RFC_HEADERS
RFC_LVL_1_HEADERS
R_MODE
W_MODE
A_MODE
RP_MODE
WP_MODE
AP_MODE
fopen()
) for opening files.
DATE_LOG
DATE_DEFAULT
DATE_NEWS
DATE_MAIL
DATE_FROM
DATE_FTS_0002
DATE_TICK_PATH
DATE_VIA
DATE_SPLIT
PRODUCT_CODE
rfc2ftn
.
MAXADDRESS
Address
and Zone
statements in
config
file.
MAXDOSDRIVE
DosDrive
statements in config
file.
MAXPATH
MAXINETADDR
MAXUSERNAME
MAXOPENFILES
config.make
Makefile ConfigurationThis file is included in all FIDOGATE Makefiles.
A special convention is used for defining FIDOGATE configuration macros:
macro name starting with DEFAULT_
are used by the compilation
process to automatically generate C code.
DEFAULT_V_option
#define
DEFAULT_
option in paths.h
, a run-time configuration option
option in fidogate.conf
, and makes FIDOGATE evaluate the
environment variable FIDOGATE_
option.
DEFAULT_F_option
#define
DEFAULT_
option in paths.h
. No run-time override!
DEFAULT_A_option
Be very carefull not to remove any of the FIDOGATE standard macros and don't touch the standard abbreviations in this file!!!
DEFAULT_V_CONFIGDIR
DEFAULT_V_LIBDIR
DEFAULT_V_BINDIR
DEFAULT_V_LOGDIR
DEFAULT_V_VARDIR
areas.bbs
, history
.
DEFAULT_V_LOCKDIR
DEFAULT_V_SPOOLDIR
DEFAULT_V_BTBASEDIR
DEFAULT_V_INBOUND
DEFAULT_V_PINBOUND
DEFAULT_V_UUINBOUND
recvuu
script.
DEFAULT_V_FTPINBOUND
DEFAULT_V_ACL
DEFAULT_V_ALIASES
DEFAULT_V_AREAS
DEFAULT_V_HOSTS
DEFAULT_V_PASSWD
DEFAULT_V_PACKING
ftnpack
).
DEFAULT_V_ROUTING
ftntoss
,
ftnroute
).
DEFAULT_V_HISTORY
DEFAULT_V_LOGFILE
DEFAULT_V_CHARSETMAP
DEFAULT_F_NEWSETCDIR
DEFAULT_F_NEWSVARDIR
DEFAULT_F_NEWSLIBDIR
DEFAULT_F_NEWSSPOOLDIR
DEFAULT_F_IFMAILDIR
DEFAULT_F_CONFIG_GATE
DEFAULT_F_CONFIG_MAIN
DEFAULT_F_CONFIG_FFX
fidogate.conf
.
DEFAULT_F_SEQ_MAIL
DEFAULT_F_SEQ_NEWS
DEFAULT_F_SEQ_MSGID
DEFAULT_F_SEQ_PKT
DEFAULT_F_SEQ_SPLIT
DEFAULT_F_SEQ_FF
DEFAULT_F_SEQ_TOSS
DEFAULT_F_SEQ_PACK
DEFAULT_F_SEQ_TICK
DEFAULT_F_LOCK_HISTORY
DEFAULT_F_OUTRFC_MAIL
DEFAULT_F_OUTRFC_NEWS
DEFAULT_F_OUTPKT
DEFAULT_F_OUTPKT_MAIL
DEFAULT_F_TOSS_TOSS
DEFAULT_F_TOSS_ROUTE
DEFAULT_F_TOSS_PACK
DEFAULT_F_TOSS_BAD
DEFAULT_F_OUTPKT_NEWS
install-dirs
target of Makefile
must be changed as well.
DEFAULT_F_TICK_HOLD = %B/tick
DEFAULT_A_CONFIGDIR
DEFAULT_A_LIBDIR
DEFAULT_A_BINDIR
DEFAULT_A_LOGDIR
DEFAULT_A_VARDIR
DEFAULT_A_LOCKDIR
DEFAULT_A_SPOOLDIR
DEFAULT_A_BTBASEDIR
DEFAULT_A_INBOUND
DEFAULT_A_PINBOUND
DEFAULT_A_UUINBOUND
PERL
SENDMAIL_CF_DIR
/usr/lib/sendmail-cf
on RedHat Linux systems).
INFODIR
HTMLDIR
HTMLLOGDIR
M4
OWNER
GROUP
PERM_PROG
PERM_DATA
PERM_SETUID
OWNER
programs.
PERM_DIR
CC
YACC
yacc
or a clone like bison -y
.
AR
ar
monkey ... (@!#$%&... ouch!) ... librarian.
RANLIB
DEBUG
INCLUDE
CFLAGS
LFLAGS
LIBS
libfidogate.a
.
INSTALL
.exe
for MSDOS, OS2, Win32.
INSTALL_PROG
INSTALL_DATA
INSTALL_SETUID
INSTALL_DIR
PREFIX
make install
.
LIB
Compile the beast by entering
make depend make
Alternatively an optimized version can be compiled with
make DEBUG=-O2
If everything works, you must create the necessary directories:
make install-dirs
Then install all FIDOGATE programs:
make install
Next you must create the configuration files in (default)
/etc/fidogate
. Have a look at the various configuration in
directory examples/
and use them to build your own configuration.
scripts/inn
scripts/cnews
sendmail/cf
Much more concise instructions should be here!!! ;-)
Tosser
...
Gateway
...
FIDOGATE does NOT include a FIDO mailer, so you have to transfer FIDO mail to and from the UNIX system by some other means.
If you want everything running on the UNIX system, you need a FIDO mailer for UNIX. Currently, this choice is limited to
I don't know what the current state of BinkleyTerm for Unix/Linux is,
but ifcico and BinkD are working very well for me. See the FIDOGATE home
page at http://www.fido.de/fidogate/
for links.
Another solution is a separate PC running DOS or OS/2 and BinkleyTerm as a mailer. The Fido.DE gateway currently comprises a LINUX PC for the gateway/tosser and Samba server, and an OS/2 PC running BinkleyTerm for the analog phone and ISDN lines. The BinkleyTerm outbound is kept on the LINUX server, so the OS/2 PC and the gateway have access to it.
Go to the first, previous, next, last section, table of contents.