Same old sendmail "loops back to me", not solved with FAQ, etc.

Jez Hancock jez.hancock at munk.nu
Sun Apr 20 06:32:34 PDT 2003


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 at 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 `<HOSTNAME>.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 '<HOSTNAME>.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


More information about the freebsd-questions mailing list