Date: Wed, 20 Apr 2011 15:38:19 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Modifying Sendmail's Configuration the Correct way. Message-ID: <4DAF362B.3040805@FreeBSD.org> In-Reply-To: <201104201847.p3KIlapX097441@dc.cis.okstate.edu> References: <201104201847.p3KIlapX097441@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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: <edit .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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DAF362B.3040805>