Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail deployment exercise 1

Status
Not open for further replies.
Sep 13, 1999
3
CA
I am carefully working through Costales and Allman's superb book 'sendmail', published by Oreilly, 2nd Edition. I am up to about page 140. So far, the book has covered the creation of a sendmail.cf file that forwards all mail to a Central Mail Hub, whether local or remote. Since I do not have a Central Mail Hub, it is somewhat difficult to test out all my experiments with the sendmail.cf . Luckily I seem to have acquired a number of PCs that could happily run Linux. I have also configured a DNS, using BIND and NAMED. <br>
<br>
Does anyone have any suggestions on what would be a good way to set up a test Central Mail Hub for my little Internet? I am thinking that I would like to actually create my own Mail Hub but again I am not sure if this would be helpful. <br>
<br>
Thank you for your advice and time.<br>
<br>
Simon Brown
 
Create your configuration file similar to the following:<br>
<br>
divert(0)dnl<br>
include(./m4/cf.m4)dnl<br>
OSTYPE(`linux')<br>
FEATURE(`nouucp')<br>
MAILER(`smtp')<br>
MAILER(`local')<br>
<br>
Run that through m4 as described in the bat book to get your cf file. You might need to tweak this a little bit. For example, if you find that your mail header From: line ends up looking like "me@my.domain.my.domain" then add:<br>
<br>
FEATURE(`nocanonify')<br>
<br>
Once your're happy with the above, another excellent feature that's worth looking into is using procmail as your local mailer. Remove the "MAILER(`local')" part and add "FEATURE(`local_procmail')".<br>
<br>
Hopefully, that should be enough to get you going. Remember to backup your existing sendmail.cf before replacing it with a new one!<br>
<br>
Good luck ;^)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top