Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 1998 13:52:54 +1000
From:      Ashley <ashley@labyrinth.net.au>
To:        faq@FreeBSD.ORG
Subject:   FAQ112.html#112
Message-ID:  <199804130353.NAA22791@minotaur.labyrinth.net.au>

next in thread | raw e-mail | index | archive | help
In the FreeBSD FAQ "8.18. How do I set up mail with a dialup connection to
the 'net?" the following is included to create a sendmail.cf file. 

VERSIONID(`bsd.home.mc version 1.0')
OSTYPE(bsd4.4)dnl
FEATURE(nouucp)dnl
MAILER(local)dnl
MAILER(smtp)dnl
Cwlocalhost
Cwbsd.home
CwmyISP.com
MASQUERADE_AS(`myISP.com')dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(nocanonify)dnl
FEATURE(nodns)dnl
define(SMART_HOST, `relay.myISP.com')
DmmyISP.com
define(`confDOMAIN_NAME',`myISP.com')dnl
define(`confDELIVERY_MODE',`deferred')dnl

however, if you implement this it makes the local machine believe you are
your ISP, and doesn't just fix the From in headers. for this to work
correctly it should have three changes made

VERSIONID(`bsd.home.mc version 1.0')
OSTYPE(bsd4.4)dnl
FEATURE(nouucp)dnl
MAILER(local)dnl
MAILER(smtp)dnl
Cwlocalhost
Cwbsd.home

CwmyISP.com   <<< deleted 

MASQUERADE_AS(`myISP.com')dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(nocanonify)dnl
FEATURE(nodns)dnl
define(SMART_HOST, `relay.myISP.com')
DmmyISP.com                                  <<< should be Dmbsd.home
define(`confDOMAIN_NAME',`myISP.com')dnl     <<< myISP.com should be bsd.home
define(`confDELIVERY_MODE',`deferred')dnl

so to create a fully functioning sendmail.cf file, the mc file should
include this....

VERSIONID(`bsd.home.mc version 1.0')
OSTYPE(bsd4.4)dnl
FEATURE(nouucp)dnl
MAILER(local)dnl
MAILER(smtp)dnl
Cwlocalhost
Cwbsd.home
MASQUERADE_AS(`myISP.com')dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(nocanonify)dnl
FEATURE(nodns)dnl
define(SMART_HOST, `relay.myISP.com')
Dmbsd.home
define(`confDOMAIN_NAME',`bsd.home')dnl
define(`confDELIVERY_MODE',`deferred')dnl


Ciao.
Ashley.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804130353.NAA22791>