Last update 25-Jul-1999

# MBSE BBS - Internet Gateway - ifmail.

###

Installing ifmail.

I used ifmail 2.13 so this is the setup I will describe. Install the source in /opt/mbse/ifmail-2.13 as user mbse. Edit the file CONFIG to match your system setup. Here is my CONFIG file:

    # Compile-time configuration for ifmail FidoNet mailer and gateway
    #
    # Modified for use with the MBSE BBS package.
    #
    COPYRIGHT   = "Eugene G. Crosser, 1993-1997"
    VERSION     = "2.12"

    # Main configuration file. This default may be overwritten by -I key.
    CONFIGFILE  = "/opt/mbse/etc/ifmail.conf"

    # Debug messages turned on by -x key are written here.
    # Some error messages may occationally appear here too.
    # This may be changed in the 'config' file.
    DEBUGFILE   = "/opt/mbse/log/ifdebug.log"

    # Procession log. Usually gets several lines for each invocation.
    # Also look for error diagnostics here.  If HAS_SYSLOG defined,
    # only stdout and stderr from the packers and unpackers go to this
    # file, while actual logging is done via syslog() calls.
    # This may be changed in the 'config' file.
    LOGFILE     = "/opt/mbse/log/ifmail.log"

    # Use syslog() facility codes for mail gate, news gate and ifcico.
    # Define -DHAS_SYSLOG (see below)
    MAILLOG    = LOG_LOCAL0
    NEWSLOG    = LOG_LOCAL0
    CICOLOG    = LOG_LOCAL0

    # Directory where UUCP lock files reside.
    LOCKDIR     = "/var/lock"

    # Directory from which file requests are resolved.
    # This may be changed from the 'config' file.
    PUBDIR      = "/SYS/usr/ftp/pub"

    # News spool directory (to check space only)
    NEWSSPOOL   = "/var/spool/news"

    # Compile-time system-dependant options.
    # Removed -DHAS_NDBM_H (n.a.w.) en -DHAS_SYSLOG
    # This is a little different then in the original package!
    #
    # Linux/x86:  (add -DHAS_BSD_SIGNALS if you have glibc2 aka libc6.x)
    OPTS        = -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \
    	      -DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \
    	      -DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP \
    	      -DFORCEINTL -DNEED_UUCPFROM -DNEED_BSY \
    	      -DSLAVE_SENDS_NAK_TOO -DNEED_FORK \
    	      -DINT32=long -DINT16=short -DPARANOID -DHAS_BSD_SIGNALS

    # for make install, where to put binaries and what owner to set
    BINDIR	= /opt/mbse/bin
    OWNER	= mbse
    GROUP	= bbs
    MODE	= 0711
    SMODE	= 4711

    INSTALL = install
    RANLIB	= ranlib
    SHELL	= /bin/sh
    ECHO	= echo -e
    CC	= gcc
    YACC	= yacc
    LEX	= lex
    AWK	= awk
    TAR	= tar

    # Linux, 386BSD, SunOS:
    CFLAGS = -O2 -Wall -m386
    LDFLAGS =
    LIBS = -lgdbm

    INCLUDES = -I${INCDIR}

If you have created the CONFIG file type make all and make install. Don't install as root user but as user mbse. After that you may remove ifcico ifindex and nlpatch from the /opt/mbse/bin directory. Now you need to create the Areas and ifmail.conf files in the /opt/mbse/etc directory. Here are the examples:

     Conversion of areatags to newsgroups (with distribution) and back.

     Lines starting with a whitespace are comments.  This is because
     areatags may contain a hash ('#') character which would otherwise
     be sutable as a comment designator.

     AREATAG		newsgroup		distribution

    LINUX			fido.eng.linux		fido

    FDECHO.BNL		fido.nl.fdecho		fido
    DISABLE.028		fido.nl.disable		fido
    MBM.BNL			fido.nl.mbm		fido
    TIPTOP.BNL		fido.nl.tiptop		fido
    CB-PACKET.BNL		fido.nl.cb_packet	fido
    HOLLAND.SYSOP		fido.nl.holland.sysop	fido
    HOLLAND.ANN		fido.nl.holland.ann	fido
    SYSOPS.BNL		fido.nl.sysops		fido
    DISCUSSIE.028		fido.nl.discussie	fido
    FANTASY.BNL		fido.nl.fantasy		fido
    EBO-NET.901		fido.nl.ebo_net		fido
    FILM.BNL		fido.nl.film		fido
    NEWFILES.BNL		fido.nl.newfiles	fido
    LINUX.BNL		fido.nl.linux		fido
    HANDEL.BNL		fido.nl.handel		fido
    HARDWARE.028		fido.nl.hardware	fido
    VIRNL			fido.nl.virnl		fido
    TERMINAT.BNL		fido.nl.terminat	fido
    KLETS.BNL		fido.nl.klets		fido
    GENEA.BNL		fido.nl.genea		fido
    WINDOWS.BNL		fido.nl.windows		fido
    2801_NF			fido.nl.2801_nf		fido
    STARTREK.BNL		fido.nl.startrek	fido
    POINTS.028		fido.nl.points		fido
    FILEFIND.BNL		fido.nl.filefind	fido
    SOLDEER.BNL		fido.nl.soldeer		fido
    HAM-PA.028		fido.nl.ham-pa		fido
    BPLUS.028		fido.nl.bplus		fido
    INTERNET.BNL		fido.nl.internet	fido
    DOEHETZELF.BNL		fido.nl.doehetzelf	fido
    SEX.BNL			fido.nl.sex		fido

    PCTECH.500		fido.hcc.pctech		fido
    VRAAGBAAK.500		fido.hcc.vraagbaak	fido
    SOFTWARE.500		fido.hcc.software	fido
    GEVRAAGD.500		fido.hcc.gevraagd	fido
    TEKOOP.500		fido.hcc.tekoop		fido

    LOCAL1.BBS		local.users		local
    LOCAL2.BBS		local.user_sysop	local
    IBA.TEST		iba.test		iba

    ALT.*			alt.*			alt
    REC.*			rec.*			rec

     Line with a single '*' in the AREATAG field defines default newsgroup
     and distribution.  '*' in the "newsgroup" field, if present, is expanded
     to the original areatag (converted to lowcase).

    *			junk.*			local

     Line with a single '*' in the "newsgroup" field defines default areatag.
     '*' in the AREATAG field, if present, is expanded to the original
     newsgroup (converted to uppercase).  (Distribution is irrelevant).

    BAD.*			*

     You can specify a line with a single asterisk in the AREATAG field and
     a single asterisk in the "newsgroup" field.  It will cause a reversible
     conversion - areatag will be an uppercased newsgroup, and a newsgroup
     will be a lowercased areatag.  This is not recommended (and therefore
     commented out in this example).

     *			*			world

    # ~/etc/ifmail.conf for Fidonet/Internet Gateway
    # System: testsystem.
    #

    # Log file name. Overrides compile-time default.
    #
    logfile		/opt/mbse/log/ifmail.log
    debugfile	/opt/mbse/log/ifdebug.log

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

    # Main address and aka's for the gateway (internet side).
    #
    address		2:2801/899.888@fidonet
    address		92:100/88@bibnet

    # Passwords for nodes. Not checked by iftoss (unless -DPARANOID specified
    # at compile-time). Inserted into outgoing mail packets.
    # These are the Fidonet addresses of the gateway (the MBSE BBS Aka's).
    # The passwords must be the same as set with mbsetup
    #
    password	2:2801/899	XXXXXX
    password	92:2801/99	XXXXXX

    # 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	/opt/mbse/var/aliases

    # This host fully qualified domain name to add to the alias above
    #
    myfqdn		seaport.mbse.nl

    # Directory for incoming and outgoing packets/files:
    #
    inbound		/opt/mbse/gate/inbound
    listinbound	/opt/mbse/gate/inbound
    protinbound	/opt/mbse/gate/inbound
    outbound	/opt/mbse/gate/outbound

    # If you specify this, outgoing arcmail files will go to `outbound',
    # but be reffered as being in `dosoutbound' in the .flo files
    # Note: this is NOT the same as in mbsetup
    #
    dosoutbound     n:

    # domain translations, just context substitution.  Leading dot recommended.
    # May contain '@'-sign too.  First matching used.
    # NOTE: If you specify at least one domtrans line, there will be _NO_
    # default for fidonet <--> fidonet.org.  Don't forget to specify it
    # explicitly as a last line.
    #		FTN side		Internet side
    domtrans	.bibnet			.bibnet.org
    domtrans	.fidonet		.fidonet.org

    # Automatically updated alias database.  If omitted or inaccessible,
    # ^aREPLYADDR and ^aREPLYTO kludges are generated in fido messages.
    #database	/var/spool/ifmail/ifdbm

    # Sequencer file (used to generate unique IDs)
    sequencer	/opt/mbse/var/seq

    # Areas file (format: "AREA newsgroup distribution")
    areas		/opt/mbse/etc/Areas

    # Maximum allowed number of groups in the Newsgroups header, article will
    # not be gated if exeeds.  If zero or omitted - no limit.
    maxgroups	5

    # Character translation tables.  The format of the files is as follows:
    #
    # <orig.char> <whitespace> <dest.char>
    #
    # (one character in a line).  <orig.char> and <dest.char> can be specified
    # in one of four notation styles:
    # - character itself in single quotes (e.g. 'a')
    # - decimal number (e.g. 123)
    # - octal number (e.g. 0123)
    # - hexadecimal number (e.g. 0x7f)
    #
    # Crosshatch ('#') denotes start of comment; space, tab and crosshatch
    # characters cannot be specified using the first (character) notation.
    #
    # Internet -> FidoNet (outgoing) character mapping table (a la mapchan)
    outtab		/opt/mbse/etc/latin1-ibmpc
    # FidoNet -> Internet (incoming) character mapping table
    intab		/opt/mbse/etc/ibmpc-latin1

    # Transport programs for mail and news, used by iftoss
    # for sendmail, $F expands to "from" address, $T - to "to" address.
    sendmail	/usr/lib/sendmail -f $F $T
    rnews		/usr/news/bin/rnews

    # Toss program, used by ifunpack
    iftoss		/opt/mbse/bin/iftoss

    # Unpackers, used by ifunpack.
    # $F expands to archieve file name
    unzip		/usr/bin/unzip -ojq $F

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

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

    # Maximum packet size, ifmail/ifnews will start new packet if exeeds.
    # *.?ut files are NOT created if nonzero specified, you must run ifpack
    # to make packets go out.
    maxpsize	30000

    # Maximum message size when splitting big messages of usenet origin
    # default is 12300 bytes
    maxmsize 28800

    # Flavors that should not be subject to packet size limiting.  These
    # flavors will be put into `ready to send' packets and not packed
    # by ifpack.  Special flavor 'm' means "all netmail".
    nonpacked	cm

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

Go Back Go to main