From owner-freebsd-questions@FreeBSD.ORG Sun Apr 20 06:32:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E08D437B401 for ; Sun, 20 Apr 2003 06:32:33 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9959B43F3F for ; Sun, 20 Apr 2003 06:32:32 -0700 (PDT) (envelope-from munk@users.munk.nu) Received: from localhost ([127.0.0.1] helo=users.munk.nu ident=munk) by mail.munk.nu with esmtp (Exim 4.14) id 197Ewq-000IUV-V3; Sun, 20 Apr 2003 14:33:36 +0100 Received: (from munk@localhost) by users.munk.nu (8.12.9/8.12.8/Submit) id h3KDXZWX071082; Sun, 20 Apr 2003 14:33:35 +0100 (BST) Date: Sun, 20 Apr 2003 14:33:35 +0100 From: Jez Hancock To: Christopher Nehren Message-ID: <20030420133335.GB70273@users.munk.nu> Mail-Followup-To: Christopher Nehren , FreeBSD questions List References: <1050842887.2369.9.camel@prophecy.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050842887.2369.9.camel@prophecy.dyndns.org> User-Agent: Mutt/1.4.1i cc: FreeBSD questions List Subject: Re: Same old sendmail "loops back to me", not solved with FAQ, etc. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 13:32:34 -0000 Hi, Firstly have you tried setting up an MX record for prophecy.dyndns.org so it points to your latest IP addr each time you reconnect? In general regarding the whole freebsd sendmail gubbins... On Sun, Apr 20, 2003 at 08:48:07AM -0400, Christopher Nehren wrote: > Yes, I've read the FAQ. Yes, I've searched numerous newsgroups on > http://marc.theaimsgroup.com . Yes, I've put it in the class w in all of > the half-dozen FreeBSD sendmail configuration files (which aren't even > mentioned in the Handbook, something I think is a bit odd). Yes, I've > put it in the /etc/mail/local-host-names file. What could possibly be > the problem? > > Some version information: > > 220 prophecy.dyndns.org ESMTP Sendmail 8.12.6p2/8.12.6; Sun, 20 Apr 2003 > 08:41:17 -0400 (EDT) > > FreeBSD prophecy.dyndns.org 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: > Thu Apr 3 22:18:32 EST 2003 > root@prophecy.dyndns.org:/usr/obj/usr/src/sys/PROPHECY i386 Try and stay clear of changing the sendmail.cf files directly. Instead do this: cd /etc/mail/ cp freebsd.mc prophecy.dyndns.org.mc (Make all changes to this file from now on and when you've made a change to it at any time, make sure to rebuild a new .cf file from it using 'make', see below:). Now check that this line is in /etc/mail/prophecy.dyndns.org.mc: define(`confCW_FILE', `-o /etc/mail/local-host-names') And then: cp /etc/defaults/make.conf /etc/make.conf Edit /etc/make.conf so it includes: SENDMAIL_MC=/etc/mail/prophecy.dyndns.org.mc (this ensures that when you 'make installworld' your config is used) (note you only really have to copy the bit above into the /etc/make.conf file, the file only has effect when you run 'make' in /usr/src afaik) Edit your /etc/local-host-names file so it includes: prophecy.dyndns.org (sounds like you did this already:) cd /etc/mail make all cp prophecy.dyndns.org.cf freebsd.cf make restart The 'make all' line makes the cf file 'prophecy.dyndns.org.cf' from the prophecy.dyndns.org.mc file and also makes any map and aliases dbs if those files have changed at all since the last 'make'. The 'make restart' just restarts the sendmail binaries for the msp (client runner) and mta (the main mail tx agent). For full details see the /etc/mail/Makefile file for info on various targets to make in /etc/mail: # # $FreeBSD: src/etc/mail/Makefile,v 1.9.2.23 2003/02/12 03:57:52 gshapiro Exp $ # # This Makefile provides an easy way to generate the configuration # file and database maps for the sendmail(8) daemon. # # The user-driven targets are: # # all - Build cf, maps and aliases # cf - Build the .cf file from .mc file # maps - Build the feature maps # aliases - Build the sendmail aliases # install - Install the .cf file as /etc/mail/sendmail.cf # # For acting on both the MTA daemon and MSP queue running daemon: # start - Start both the sendmail MTA daemon and MSP queue running # daemon with the flags defined in /etc/defaults/rc.conf or # /etc/rc.conf # stop - Stop both the sendmail MTA daemon and MSP queue running # daemon # restart - Restart both the sendmail MTA daemon and MSP queue running # daemon # # For acting on just the MTA daemon: # start-mta - Start the sendmail MTA daemon with the flags defined in # /etc/defaults/rc.conf or /etc/rc.conf # stop-mta - Stop the sendmail MTA daemon # restart-mta - Restart the sendmail MTA daemon # # For acting on just the MSP queue running daemon: # start-mspq - Start the sendmail MSP queue running daemon with the # flags defined in /etc/defaults/rc.conf or /etc/rc.conf # stop-mspq - Stop the sendmail MSP queue running daemon # restart-mspq - Restart the sendmail MSP queue running daemon # # Calling `make' will generate the updated versions when either the # aliases or one of the map files were changed. # # A `make install` is only necessary after modifying the .mc file. In # this case one would normally also call `make restart' to allow the # running sendmail to pick up the changes as well. # # ------------------------------------------------------------------------ # This Makefile uses `.mc' as the default MTA .mc file. This # can be changed by defining SENDMAIL_MC in /etc/make.conf, e.g.: # # SENDMAIL_MC=/etc/mail/myconfig.mc # # If '.mc' does not exist, it is created using 'freebsd.mc' # as a template. # # It also uses 'freebsd.submit.mc' as the default mail submission .mc file. # This can be changed by defining SENDMAIL_SUBMIT_MC in /etc/make.conf, # e.g.: # # SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc # ------------------------------------------------------------------------ # # The Makefile knows about the following maps: # access, bitdomain, domaintable, genericstable, mailertable, userdb, # uucpdomain, virtusertable I don't think this is documented as you say and I struggled for ages working it out (I gave up yesterday after 2 years and moved to exim - I learnt more about sendmail in 1 day from just reading the exim docs than I did in 2 years from reading the sendmail docs!). Anyway hope that vaguely helps. Jez