1752822 Members
4671 Online
108789 Solutions
New Discussion юеВ

Re: sendmail.cf

 
robert sears_1
Contributor

sendmail.cf

For someone who just learned of sendmails existance, what is the best way to edit the sendmail.cf to close an open rely? Is there some type of editing interface program available? It is all greek to me.

Thanks
Sears
3 REPLIES 3
John Palmer
Honored Contributor

Re: sendmail.cf

Robert,

The cynical answer is 'vi'.

One of the best reference sources on sendmail is the O'Reilly 'bat' book 'Sendmail' which runs to over 1000 pages!

However if you'd like to give some more information about what you need to do, I'm sure that someone on this forum will be able to help you.

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: sendmail.cf

Hi:

The vi editor is your standard for editing text files. Do a "man vi" to get an overview of this powerful tool. Do a "man sh-posix" and look at the discussion under "emacs editing mode" for the emacs/gmacs editor.

...JRF...
Rick Garland
Honored Contributor

Re: sendmail.cf

vi is the tool to modify the sendmail.cf file directly. There is also the m4 preprocessor for sendmail. Still need to use vi to do the initial configuration but it allows you to compile a sendmail.cf file. Once the new file has been tested and verified to work as expected, copy the old sendmail.cf to a bak copy, copt the newly generated sendmail.cf file into place and then stop/start the sendmail process.

As mentioned, the BAT book has a wealth of info. It is also a BIG book. There is info in there to tell you what the sendmail.cf needs and how to work the m4.