[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Regenerating the Sendmail.cf file Anyone ?



>   
> on the sendmail site , but this does not work
> 
> Anyone know the comand/s  ?
> 
> Am using RH5 


with redhat 5.x, you should be able to do the following:

cd /usr/lib/sendmail-cf/cf

In that directory, there is a file called redhat.mc. There are
additional configurations that you can do to this M4 file if you
need to add stuff like virtusertable or domaintable etc etc.

You can edit the file and add/edit stuff as you see fit.

If you just want to generate a new sendmail.cf, do the following:

m4 redhat.mc > redhat.cf

(if you have an existing sendmail.cf that you need to compare with
the new one, you want want to do a diff)

diff -U0 /etc/sendmail.cf redhat.cf


If satisfied that you have a good file, copy it over to be your
new sendmail.cf file.

cat redhat.cf > /etc/sendmail.cf


Now kill and restart the sendmail daemon.

/etc/rc.d/init.d/sendmail stop
killall sendmail
/etc/rc.d/init.d/sendmail start


Make sure the daemon successfully restarted:

ps auwwx|grep -i send




All of this assumes that you have a stock Redhat install with
a stock sendmail installed off the Redhat CD.


To summarize the commands again:


cd /usr/lib/sendmail-cf/cf
<edit redhat.mc if necessary>
m4 redhat.mc > redhat.cf
diff -U0 /etc/sendmail.cf redhat.cf
cat redhat.cf > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail stop
killall sendmail
/etc/rc.d/init.d/sendmail start

ps auwwx|grep -i send   (to ensure sendmail is running)



olmy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]