Gerhard Ahuis wrote:
> Hi linux hams,
>
> Does anybody have a couple of sendmail rules that filter out ax25 packet
> mail ? I would like to configure sendmail in such a way that I can send
> mails to ax25 addresses just as easy as mails to normal SMTP addresses..
>
>
This takes a couple of things....
You need to add some things to /etc/sendmail.cf so it doesn't do a nameserver
lookup on some stuff. The first one (ww) is for bulletins in the form of
'all@ww'. The second is for a full Haddresses going to some BBS in eu.
CPww
CPeu
You need to sort those packet messages out of the internet messages.
R$* < @ ww . > $#pbbs $@ $: $1 < @ ww >
R$* < @ $* . eu . > $#pbbs $@ $: $1 < @ $2 . eu >
You need to start the script to handle the message after sendmail sorts it
out. I send it to a script called receive_mail.
Mpbbs, P=/usr/local/pbbs/bin/receive_mail, F=lFDMn, S=10/30, R=40,
T=X-Unix,
A=receive_mail $t.$i@$j $u $g
# arguments... message-id to@host from@host
Ya need a recieve_mail script. It can be as simple as this...
#!/bin/sh
while read stuff
do echo $stuff >>/somedirectory/$1
done
You can find a copy of my sendmail.cf file at
http://gw.ko6ri.ampr.org/bbs/pub/lnxbbs/etc/sendmail.cf
--
Later...
Bob
http://gw.ko6ri.ampr.org/bbs