From: Arno Verhoeven (vlbpueq.kxpbbzczx@swmed.edu)
Date: Mon Jul 28 2003 - 22:11:22 EEST
Waldemar Ogonowski wrote:
>Hello,
>
>I have running XFBB/Linux v7.04h with SMTP/POP3/NNTP server working in
>TCP/IP AmprNet network and AX.25. XFBB very fine to accept mail via SMTP but
>how to setup XFBB to send mail via SMTP, sample local user send mail like
>wkl.ciiuwasp@nelincs.gov.uk and this mail will be send via forwarding AX.25 but
>when user send mail to friend in AmprNet (44.0.0.0/8 hamradio network) like
>terhi.victor@logonet.com how to setup xfbb to send this mail from XFBB via
>SMTP directly host sr8box.ampr.org via TCP/IP ?
>
>Best regards
>
>Waldek sp2ong
>
>
Alright, let's start with the setup of fbb.
make an entry for SMTPGW in file bbs.sys
This is what I use in the forward files for our BBS.
#
# xfbb's forward block for forwarding messages to a file,
# which is then read by pbbs_rcv.
#
A SMTPGW
P @
C /var/spool/mailgw/fbbmail.out
B SMTPGW
B MAILGW
H AMSAT.ORG
H QSL.NET
H *.AMPR.ORG
---------
Both B-lines are used in conjunction with something defined in swapp.sys
and are specific for our BBS.
The H-lines is what you are looking for. The 3 H-lines as indicated
above allow mail to be send to @amsat.org, @qsl.net and @ampr.org
addresses from within the BBS.
If this is good practice is probably up for debate. I allow it in our
BBS until I notice any type of abuse.
The other way around (I.e. sending smtp mail from outside to the BBS) is
only setup in such a way that it will convert smtp to BBS if the mail
originates from a @ampr.org address and has a Dutch callsign before the
@-sign.
The actual conversion is done by mailgw.
http://radio.linux.org.au/pkgdetail.phtml?sectpat=All&ordpat=&descpat=&pkgid=86
Below is one of the config files. There are more, but see the package
examples for more info.
# /etc/mailgw/pbbs-dst.map
#
# Mapping from pbbs *destination* addresses to the email *destination*
# addresses. Used when gatewaying from the pbbs to the
# smtp/nntp side.
#
# Format: pbbsaddr smtpaddr
#
# Can handle xNOS 'spool/rewrite' style wildcards.
# '$1' on the right side is replaced by the part which matches
# the first '*' on the left side. $1 is replaced with the second *,
# and so on...
#
# If the pbbs address in the message doesn't match anything
# in this file, it is not gatewayed, and a bounce is generated.
#
# Generic entries start here
*@mailgw $terhi.victor@logonet.com
*@smtpgw $1
*@amsat.org $wbtnlwq@bbk.ac.uk
*@qsl.net $pswnjms@tricom.net
*@*.ampr.org $1@$2.ampr.org
I didn't include every detail of the total config, but this is probably
enough to get you going.
-- 73, PE1ICQ Arno Verhoeven -------------------------------- AX.25 pe1icq@pi8zaa.#nbo.nld.eu smtp trs.zbsoc@dsl-157-151.utaonline.at inet terhi.victor@logonet.com_______________________________________________ xfbb maillist - oszwfu@mailit.tunk.net http://www.f6fbb.org/mailman/listinfo/xfbb
This archive was generated by hypermail 2b30 : Mon Jul 28 2003 - 22:19:42 EEST