Linux-Hams archive - February 1997: RE: Sendmail & Tnos

RE: Sendmail & Tnos

David J Brown (hdeoukjb@mnarn.org)
Sun, 2 Feb 1997 19:58:20 -0000


This is dead easy to acheive if you can use two user names, one for internet and one for amprnet. At home (here) I can use djb2 for internet and g7pit for amprnet. I use the latest sendmail and have brewed up a sendmail.cf file which supports the genericstable option along with masquerade envelope. Unfortunately Pine decides to put on it's own From line header(s) and prevents sendmail from making the decisions - according to reports that I've had.

The genericstable just decides the apparent email from address depending on the login user name. Then a simple line in sendmail.cf forwards *.ampr.org to your ampr.org smarthost - your TNOS.

The text I use to prepare the /etc/genericstable.db and .pag is:

djb2 styw.rmur@nat10.kelag.at
m1aax wbgw@wsm.wielun.pl

and I have to use the hash format as that is about all that my makemap program supports - 'makemap -v hash genericstable < genericstable.txt'.

In /etc/sendmail.cf I have added this line, note the context:

# figure out what should stay in our local mail system

R$* < @ $* . ampr . org . > $#esmtp $@ smart.ampr.org. $: $1 < @ $2 . ampr . org >

This is where smart.ampr.org is the TNOS.

This method still requires proper DNS lookups.

Also remember to add a Cw line to allow sendmail to accept mail for your ampr.org address as well as your demon.co.uk address.

I hope that helps, a full copy of the sendmail.cf file is available if you like.

73 G7PIT

----------
From: Ken Adams[SMTP:erd.iyracewloc@mobil.cz]
Sent: Saturday, February 01, 1997 10:55 PM
To: Linux-Hams Mailing List
Subject: Sendmail & Tnos

Hi Everyone

What I would like to do is this...

On my Demon Internet Machine I have a user account of 'g7oah'. I use this
for Amateur related E-mail on the Internet. I would like to use this for my
AmprNET mail too. When I read mail from AmprNET and write mail to got out, I
would like my localhost sendmail to look at the E-mail address to look for
..ampr.org and send it to my Tnos and send anything else to the mail