Modifying Sendmail's Configuration the Correct way.

Mike Tancsa mike at sentex.net
Wed Apr 20 19:35:10 UTC 2011


On 4/20/2011 2:47 PM, Martin McCormick wrote:
> dnl Dialup users should uncomment and define this appropriately
> dnl define(`SMART_HOST', `your.isp.mail.server')
> define(`SMART_HOST', `mailserver.okstate.edu')
> 

I usually do
make
make install
make stop
make start


after the first make, you should be able to diff the created .cf file
and the actuall sendmail.cf file. It doesnt actually install it, it just
creates a temp copy.


0(cage)# make
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cf.m4 cage.simianscience.com.mc >
cage.simianscience.com.cf
0(cage)# diff -u sendmail.cf cage.simianscience.com.cf
--- sendmail.cf 2011-04-20 15:32:46.000000000 -0400
+++ cage.simianscience.com.cf   2011-04-20 15:32:52.000000000 -0400
@@ -76,6 +76,7 @@



+
 #####  $Id: proto.m4,v 8.741 2009/12/11 00:04:53 ca Exp $  #####

 # level 10 config file format
@@ -110,7 +111,7 @@
 CP.

 # "Smart" relay host (may be null)
-DS
+DSsmarthost2.sentex.ca


 # operators that cannot be in local usernames (i.e., network indicators)
1(cage)#

Then a full stop and start after the install should get you what you want.

	---Mike




-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-questions mailing list