*BSD News Article 72737


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ifconfig alias and Sendmail
Date: 3 Jul 1996 00:30:48 -0500
Organization: Coverform Ltd.
Lines: 51
Message-ID: <4rd0i8$i6@anorak.coverform.lan>
References: <DtwILv.Iwu.E.fourthgen@fourthgen.fourthgen.com> <4rbac9$5eo@natasha.rmii.com>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Thomas R. Jacobs, Jr. (tjacobs@vaultbbs.com) wrote:
: tomg@fourthgen.fourthgen.com (Tom Greenwalt) wrote:

: >I'm trying to setup multiple domains on a single machine and 
: >thanks to FreeBSD homepage, I've found several examples for doing
: >that.  However, when I try to send test mail to a user on the new
: >domain, I get an error back from sendmail:

: >   ----- Transcript of session follows -----
: >553 fourthgen.com config error: mail loops back to myself
: >554 tomg@trancer.com... Local configuration error

: >Is there something I'm supposed to change in sendmail.cf to make
: >this work?
: >Thanks.


: If your current domain name is domain1.com and you want to add
: domain2.com then you should already have a line that looks like

: Cwdomain1.com

: in your /etc/sendmail.cf file.  Add another one right under it that
: looks like

: Cwdomain2.com

Read /usr/src/usr.sbin/sendmail/cf/README and
/usr/src/usr.sbin/sendmail/FAQ.  Your error message is mentioned in
the FAQ, and the README describes an alternative (and IMO an infinitely
more friendly) way of altering sendmail.cf:

anorak $ cat >anorak.mc <<eof
VERSIONID(`anorak.mc version 1.0')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
FEATURE(nodns)dnl
define(`SMART_HOST', awfulhak.demon.co.uk)dnl
MASQUERADE_AS( awfulhak.demon.co.uk )dnl
eof

anorak $ CFDIR=/usr/src/usr.sbin/sendmail/cf/
anorak $ m4 -D_CF_DIR_=$CFDIR ${CFDIR}m4/cf.m4 anorak.mc >/etc/sendmail.cf

And this is for my laptop - it hasn't got a real (DNS) name, it hasn't
got a DNS sometimes.  This is a "tricky" example....

Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....