Subject: simple sendmail hub
To: None <netbsd-help@netbsd.org>
From: James K. Lowden <jklowden@lowden.schemamania.org>
List: netbsd-help
Date: 07/11/2001 02:01:33
Hi, 

I'm sure I have a simple sendmail question, but hours of reading the docs 
don't make it look easy.  

If someone will tell me just what to do, I'll submit a FAQ item for it.  

My main box is named "lowden" and runs NetBSD 1.5 in my living room 
at 192.168.1.1.  I think of it as being in the tiny domain I have here 
called "schemamania.org".  

It's running an unmodified sendmail (uses the default configuration), so 
mail from mutt  carries a "from" address of 
jklowden@lowden.schemamania.org.  You can't send mail there because 
it's a non-routed ip address behind a NAT firewall.  

I want to "rewrite" (I think) the from address to 
read: jklowden@schemamania.org.  

In a related question, I do receive mail @schemamania.org (on a host 
called "home"), but that sendmail plunks the mail into its local spool 
instead of forwarding it to "lowden".  I get around this with a .forward file, 
but I'd like to know what the right way is.  

Do I really have to learn m4 and build a half dozen files to do this?  

I'm guessing that as DSL gains adherents, more people will want to do 
this sort of thing.  That's why I'm volunteering to document the easy 
answer, assuming there is one.  

Thanks for any help.  I realize this isn't a netbsd question and I know 
sendmail is a very big tool for such a simple job, but I like its 
granddaddiness and I *know* it can do this.  If only I don't go cross-eyed 
in the process.  

--jkl