From owner-freebsd-questions@FreeBSD.ORG Mon Feb 8 04:29:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA0AF1065670 for ; Mon, 8 Feb 2010 04:29:30 +0000 (UTC) (envelope-from john@dexter.starfire.mn.org) Received: from dexter.starfire.mn.org (starfire.skypoint.net [173.8.102.29]) by mx1.freebsd.org (Postfix) with ESMTP id 59B508FC08 for ; Mon, 8 Feb 2010 04:29:30 +0000 (UTC) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id o184TTg07634 for freebsd-questions@freebsd.org; Sun, 7 Feb 2010 22:29:29 -0600 (CST) (envelope-from john) Date: Sun, 7 Feb 2010 22:29:29 -0600 From: John To: freebsd-questions@freebsd.org Message-ID: <20100207222929.A6166@starfire.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: Breaking the sendmail code / sendmail for dummies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 04:29:31 -0000 OK - I'm chasing my tail here. I've been reading /etc/mail/README /usr/share/sendmail/cf/README and a lot of other README files, but I'm missing the big picture - I'm definitely beating my head against trees without a map of the forest. The last time I changed a *.cf file was in 2002, so my recollection is somewhat dimmed. In fact, the last time I did it before THAT was before the m4 macros were built - I used to write sendmail rules by hand. Somehow, there's a couple of really, really basic things that I've forgotten and cannot find, but I do remember how really, really messed up one could make things. Some things have just plain changed. It seems like there's two sets of files now - "sendmail.cf" and "submit.cf". All of the examples in /etc/mail seem to be so paired, and it created new files for me based on my "hostname" when I just typed "make". I think that knowing that is probably pretty important. A little background - elwood will be the mail hub. Any e-mail originating from within my local network should be re-written to eliminate the specific host name and only use the higher level domain. I belive that is "MASQUERADE_AS". In trying to make sure this is what I want, I keep running into references to the domain file and references like "../domain". Should I really be considering creating something regarding my local configuration in the /usr/share/sendmail/cf/domain directory? That seems - wrong. It should really be rather simple, because this system will accept all the e-mail, and other systems will use POP and/or IMAP to get the mail from it. It is the central clearing point for all incoming and outgoing mail. I think that I'm really close, I'm just somehow missing some of the very basic configuration "tricks" or "clues" and I'm not finding them. I've got local-host-names and relay-domains all set up and it seems to be using them, but that must be from the as-delivered sendmail.cf (or submit.cf) file, because I sure haven't done a make install-cf CF=elwood.starfire.mn.or.mc yet. But, even if I do that - what about the submit.cf file? There's a lot of ".mc" and ".cf" files in /etc/mail already, goodness knows what it's really doing. Not me, not yet. Please help me get there! Thanks. -- John Lind john@starfire.MN.ORG