From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 19:25:29 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 11920106564A for ; Wed, 20 Apr 2011 19:25:29 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id DB9CB8FC15 for ; Wed, 20 Apr 2011 19:25:28 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.4/8.14.4) with ESMTP id p3KIlapX097441 for ; Wed, 20 Apr 2011 13:47:36 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <97439.1303325256.1@dc.cis.okstate.edu> Date: Wed, 20 Apr 2011 13:47:36 -0500 From: Martin McCormick Subject: Modifying Sendmail's Configuration the Correct way. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 19:25:29 -0000 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.