TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Russell Tiedt
from: Bob Jones
date: 2003-06-30 16:44:12
subject: BinkD with Squish/Maximus on Linux

BJ> Now that I have a Linux test box running Max/Squish/BinkD (in manual
 BJ> mode), I have an idea....

 RT> I am busy building a box to use in testing Max/Squish 
 RT> on and BinkD, would be 
 RT> great to have this setup talk to my main MBSE BBS setup.

 RT> A copy of your BinkD.cfg and a explanation of how you 
 RT> have set this up would 
 RT> be appreciated.

Let's see if this works....  Good, reading in the file worked.

Basically, I loaded the BinkD package that I think was part of the debian
(3.0r1) distribution.  The binkd.cfg file I'm running (and assocated
include files) are for the most part the standard one with me just tweaking
things for (a)  My system info (name, node number), (b) my internal dns
info for connecting to my hub fidonet system, (c) including the binkd.txt
that I get weekly via the zone 1 file bone, which is the latest nodelist
processed into the format needed by BinkD, and then (d) comparing that with
what I had been running for BinkD under OS/2 and tweeking a few settings
accordingly.....

You can ignore my commented bbsnet lines.  I typed them in but am not using
that network on my test system yet.  [Test system is just fidonet for now.]

Please note that I installed BinkD under inetd processing (via the apt-get
processing), and for sending outbound mail I am currently manually running
the command:

/usr/sbin/binkd -p -P1:343/41 /etc/binkd/binkd.cfg

while my user and group ID are set to the appropriate one for the
configuration, and the current working directory is set to /etc/binkd .

If I had not run the configuration from inetd, I would have used the
following command line instead:

/usr/sbin/binkd -P1:343/41 /etc/binkd/binkd.cfg

Please note that -P1:343/41 will force a poll of my publically available
BinkD mailer *if* you are properly configured to use fidonet nodelist
information or the fidonet.net DNS setup, or leave in the 1:343/41 line
listed below.  [Although the line below has a subdomain listed for the
tophat.darktech.org domain that isn't visable from outside my local box.]

I am using an include file to get passwords listed for my password protected nodes.

I have yet to automate the processing of received files, but I have put
comment lines in the code of what I am planning to execute (based on how
things are working under OS/2).  

For unsecure inbound, I am using the directory setup by the binkd install. 
I've added a secure inbound subdirectory, and both of these directories are
in my squish.cfg control file.  [Echo mail and compressed mail packets are
only processed from my secure inbound area.  I fly the MN flag in the
nodelist.]


=== %% ===
# Binkd sample configuration file
# Copyright (C) 1996-1997 by Dima Maloff, 2:5047/13
# $Id: binkd.cfg,v 2.2 2001/02/15 11:03:18 gul Exp $

#
# Your FTN domains:
#       domain   
# or
#       domain  alias-for 
#
domain fidonet /var/spool/ftn/outb 1
domain fido alias-for fidonet
domain fidonet.org alias-for fidonet
# domain bbsnet /var/spool/ftn/bbsnet 568
# domain bbsnet.ftn alias-for bbsnet
# 
# Your addresses, 4D or 5D:
#       address  ...
#
# address 2:5047/999{at}fidonet 2:5020/999.1{at}fidonet
address 1:343/999.0{at}fidonet

# 
# The name of your system, it's location, and your name
#
sysname "Top Hat BBS"
location "Seattle, WA, USA"
sysop "Bob Jones"

#
# System capabilities
#
#nodeinfo 115200,TCP,BINKP
nodeinfo 115200,IBN
#nodeinfo 115200,IBN,CRC

#
# TCP settings. Leave this unchanged if not sure.
#
#iport binkp
#oport binkp
#oblksize 4096
#timeout 300
#connect-timeout 300

#
# HTTPS or SOCKS settings. 
#
# proxy 192.168.0.3:3128                <- regular http/https proxy (i.e. squi
# proxy 192.168.0.3:3128/user/password  <- proxy required username/password (a
s in browser)
# socks 192.168.0.3:1080                <- socks4 proxy
# socks 192.168.0.3:1080/               <- socks5 proxy without authorization
# socks 192.168.0.3:1080/user/password  <- socks5 proxy with username/password
 (RFC-1929)

#
# Delay calls and outbound rescans
#
#call-delay 60
#rescan-delay 60

#
# Max. number of inbound/outbound connections
#
#maxservers 2
#maxclients 2
maxservers 10
maxclients 2

#
# Binkd will try to call a node N times, if failed, it will
# hold the node for S seconds. The feature is off by default.
#
try 10
hold 600

#       
# hold-skipped 
# Binkd will hold all mail, skipped by a node, for S seconds. (Def. -- 3600)
#
#hold-skipped 3600

#
# Don't send (only receive) files if no password for an inbound session 
#               
send-if-pwd

#
# Path and name for the logfile, loglevel
#
log /var/log/binkd/binkd
loglevel 4

#
# Uncomment it if you want binkd's log at your console
#
conlog 4

#
# Uncomment if you want T-Mail(FrontDoor)-style binary log
# (Will work and have sense on PCs only?) 
# Tzoff corrects UTC time returned by time() under DOS-derived OS
#
#binlog binkd.sts
#fdinhist in.his
#fdouthist out.his
#tzoff 10800

#
# Use syslog (Only if made with -DHAVE_VSYSLOG and -DHAVE_FACILITYNAMES)
#
#syslog local0

#
# Print percents while sending or receiving 
#
percents

#
# List queue after rescans
#
printq

#
# Perform reverse resolving (for logging only)
#
backresolv

#
# Log pid:
#
pid-file /var/run/ftn/binkd.pid

#
# Map paths in flo's:
#       ftrans  
# Use as many ftrans's as you want.
#
#ftrans "D:\\fido\\outbound" "/var/spool/fido/outb"
#ftrans "\\" "/" # this replaces all slashes in a path

#
# Inbound directory for secure and non-secure links
#
inbound /var/spool/ftn/prot
inbound-nonsecure /var/spool/ftn/inb

#
# Directory for incomplete receiving files (.hr and .dt),
# default to inbound for the node
#
#temp-inbound c:\\bbs\\inbound\\incomplete

#
# Binkd will skip all files from a node if 
# size_of_the_next_file_for_us_there + minfree < free_space_in_inbound
#
minfree 2048
minfree-nonsecure 2048

#
# When trying to receive a new file: remove from inbound partial 
# files with this name but diff.size or time. (If commented out, binkd
# will left old parts as .dt and .hr in the inbound directory)
#
kill-dup-partial-files

#                       
# Remove from inbound all old partial files. (OFF if commented out)
#       kill-old-partial-files 
#
kill-old-partial-files 86400

#
# Remove old .bsy/.csy files (If some left after a system crash). It would be
 
# wise to set this to 43200 (12 hrs) on almost any system. (Note that binkd 
# always touches .bsy's/.csy's for active sessions) 
#
# kill-old-bsy is OFF by default.
#
kill-old-bsy 43200

#
# Create a flag file after receiving a file
#
#flag toss!.now *.pkt
#flag toss!.now *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa?

#
# Run an external program. 
# The "*S" macro in command line substed with S.R.I.F., see !SRIF.TXT
# The "!" before program pathname means immediate program execution
#   after receiving the file.
# Macros: *F - complete name of received file, *A0..*A9 - first 9 AKA
#   of remote system, *P - password protected [0|1], *L - listed system [0|1]

#   *H - remote hostname or IP, *N - short file name (win32 only).
#
#exec "my-freq-processor.exe /options *S" *.req
#exec "my-pkt-unpacker.exe /options *S" *.pkt
### exec "/var/max/bin/squish.sh" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa?
### exec "/var/max/bin/raid.sh" *.tic

### exec "/var/max/srif.sh *S" *.req

#
# Include a file 
#
include /etc/binkd/binkd.inc

#
# Overrides root domain for DNS lookups, see `node' below.
#
#root-domain fidonet.net

#
# Scan T-Mail boxes (short and long)
#
#filebox   d:\\fido\\tmail\\boxes

#
# Scan theBrake! long boxes
#
#brakebox  d:\\fido\\brake\\boxes

#
# Should binkd delete empty boxes?
# uncomment follow string, if yes
#
#deletebox

#
# Scan node outbound while connect and send mail size to remote
#
prescan

#
# t-mail password.lst file
#
#passwords c:\\t-mail\\password.lst

#
# Skip (destructive!) this files
#
#skipmask pm2*.* *.mp3

#
# Define a link:
#       node [[z:]n/]n[.p][{at}domain] [-nr|-nd] [-md] [-crypt] [-ip] [{hosts|-}
 [{pwd|-} [flavour [{obox|-} [{ibox|-}]]]]]
#
# * All non-"-" fields will redefine values specified for the same node 
#       earlier in config. 
# * Flavour is one of i, c, d, -, h; and is the flavour for the outbound
#       filebox ("obox"). 
# * Binkd sends from obox all non-dir entries NOT matching ".*" wildcard.
#       EVERY TIME YOU PUT A FILE INTO OBOX CHECK IF BINKD WILL BE ABLE TO
#       UNLINK IT. Otherwise, the session will never end.
# * Default for ibox is inbound or inbound-nosecure depending on the pwd fiel
d. 
# * Default for port is oport.
# * `-nr' stands for `Not Reliable Link', this works only on outbound calls 
#       with another binkp/1.1 mailer. The option solves the only problem with
#       binkd having no enough time to start receiving of a file from 
#       non-zero offset before IP link's down, so don't use it unless you 
#       have this problem -- really not effective
# * `-nd' means "No Dupe Mode", this works only on outbound calls with
#       another binkd 0.9.3 or higher. The option solves problem with
#       duplicating files while losts carrier but link is a bit slower
#       then with "-nr" option
# * `-md' means "Must have CRAM-MD5". This works only with nodes with
#       binkd or argus supported this method. Do not set it if your link
#       can use the old version of binkd.
# * `-nomd' - do not use CRAM-MD5 for this node (send plain text password)
# * `-crypt' - crypt traffic with this node. Works only on outbound calls
#       with another binkd 0.9.5 or higher.
# * `-ip' means "Restrict remote IP-address". In this case the node will
#       reject if it comes not from one of its addresses.
# * Hosts is a list in form
#       host1[:port1][;host2[:port2]] ...
# * Asterisk (`*') in the host list forces Binkd to perform
#       1:2/3.4 --> p4.f3.n2.z1.fidonet.net translation for a node's
#       Fido-address and lookup IP for the resulting FQDN in DNS.
#       Root domain part ("fidonet.net") can be changed with root-domain
#       keyword.
#       
#node 5047/888 - password
#node 5047/999 hostname;* password i c:\\bbs\\boxes\\to999 c:\\bbs\\boxes\\fr
om999

# Note: Following line is for internal lan usage....
#node 1:343/41 bbs.tophat.darktech.org -
# Note: Following line is for live Internet usage.....
node 1:343/41 tophat.darktech.org -
#
# Default node flags. Binkd will call unlisted node if "defnode" defined.
#
#defnode -nr *

#
# If you have a binkd nodelist you can include it here
#
#include /etc/binkd/binkd.nl
include /etc/binkd/binkd.txt
=== %% ===

 RT> Box will be a 486DX4-100, 48M RAM, 500meg. HDD, and a 
 RT> 400meg. HDD, mono VGA 
 RT> monitor, it currently needs a NIC and 2 sets of HDD mounting brackets, to 
 RT> allow the fitting of HDD's into 51/4 inch drive bays.

 RT> I just don't like the idea of running/testing 2 
 RT> different BBS packages on the 
 RT> same system. :-(

Gee, don't you like to see a system dueling with itself?  
Good luck and take care.....

Bob Jones, 1:343/41

--- Maximus/UNIX 3.03b
* Origin: Top Hat BBS -- Linux Alpha Setup (1:343/40)
SEEN-BY: 633/267 270
@PATH: 343/40 41 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.