From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 19:38:27 2011 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 3C901106564A for ; Wed, 20 Apr 2011 19:38:27 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 118108FC0C for ; Wed, 20 Apr 2011 19:38:26 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QCdDE-000Mw8-4E; Wed, 20 Apr 2011 15:37:26 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id DFA8E4D20C35; Wed, 20 Apr 2011 15:38:19 -0400 (EDT) Message-ID: <4DAF362B.3040805@FreeBSD.org> Date: Wed, 20 Apr 2011 15:38:19 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Martin McCormick References: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> In-Reply-To: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: ** X-Spam-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-questions@freebsd.org Subject: Re: Modifying Sendmail's Configuration the Correct way. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 19:38:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/20/11 2:47 PM, Martin McCormick wrote: > The /etc/mail/sendmail.cf file very clearly tells one > not to edit it directly so I edited the > /etc/mail/my.name.domain.mc file as stated in documentation to > cause this system to send all out-bound mail through a "smart host." > > The .mc file part that adds the smart host looks like: > > dnl Dialup users should uncomment and define this appropriately > dnl define(`SMART_HOST', `your.isp.mail.server') > define(`SMART_HOST', `mailserver.okstate.edu') > > After that, I did a make in that directory and things > seemed to go well. After restarting sendmail, it still wanted to > resolve normally and not use the gateway. > > The only way we could get it to behave as desired was to > do what one is not supposed to do and edit sendmail.cf and add > the mailserver.okstate.edu name right against the line beginning > with DS > > After another restart, everything worked. What am I > failing to do as this is not the proper way to reconfigure > sendmail? > > The DS line in the master file looks like > > DSmailserver.okstate.edu > > Many thanks and the handbook is very helpful but I > haven't seemed to run across anything that directly addresses > this situation. Hi Martin, Try these commands, and the sendmail.cf will be updated from the .mc file: make install make restart Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2vNisACgkQ0sRouByUApDFLQCfcnoA8rbGxi5NunLjKlnfaxSS E7sAmweUPxSIHqkU6crW8Qjxmp8+Nmf8 =bO3y -----END PGP SIGNATURE-----