Subject: sendmail 8.10.12 config'd properly at install from pkgsrc?
To: None <netbsd-users@netbsd.org>
From: None <bmcewen@comcast.net>
List: netbsd-users
Date: 01/21/2004 15:10:47
Greetings;

Is there a current howto, or can someone provide a brief workflow, for getting 
sendmail (latest version from pkgsrc) configured to accept email from outside 
hosts in the NetBSD-cobalt 1.6.1 port?

I have spent a few days on this and not found a solution or a current 
documentation.  The documentation I have found is helpful but seems not quite 
right for this version of sendmail (from circa NetBSD 1.5.1 perhaps). Sendmail 
on install can send mail locally, can send mail out, but not receive.  I'm 
running on a Qube 2, NetBSD 1.6.1 installed from the netboot CD image, cable 
broadband behind NAT.  It's not a provider blocking issue as if I forward 
traffic to my current stmp/pop3 server, everything works, but port forwarding to the Qube, receiving doesn't occur.  Error is not relaying denied, there's just noone listening at port 25.

I assume there's something set by default that is different from the 1.5? era 
instructions in ch 13 of the manual at <http://www.netbsd.org/guide/en/> as part of relay or spam protection?  Although it is mentioned NOWHERE that I've found for NetBSD,  I've also tried a sendmail=YES instruction in rc.conf, per instructinos for redhat etc. found by google'ing.
 
I have tried adding an entry for my domain in the local-host-names, and manually  adding my domain to sendmail.cf (since sendmail won't be able to retrieve my external domain easily, I think that's needed).

I tried to edit netbsd-proto.mc to reflect these changes and run it thru m4 
again to make a new sendmail.cf, but I am unable to get m4 to parse this file 
properly, relative file references are always broken.

I'm pretty much stuck.  

I've read many references on getting sendmail config'd, borrowed the FreeBSD 
tome at the bookstore and looked at how THEY do it (they said, if sendmail doesn't work out of the box, don't try and fix it, just use qmail :)

Plus, the only tip in the MESSAGE for sendmail in pkgsrc says to set up a ln to 
/share/examples/whatever, but that makes (as far as I can see) anything trying 
to create or modify /etc/mail/mailer.conf (like m4) break until the ln is 
removed.

What is the workflow I should be following?  Does this really work, if running 
from scratch on a fresh install of the NetBSD 1.6.1 Cobalt net boot CD?  

What am I missing?

thanks,

Brian