Originally Posted by gardenair
Anyone guide me the complete steps for configuring Sendmail in Red Hat Linux 4 Enterprise. I have already configured my DNS server and it is functional.
Thanks in advance for helping me.
I offer some frequently used commands in slackware. The following are the main configurationfiles and the commands will make the database(s) after editing the files. The file newaliases can be run just as is after editing the file aliases.
access - example
Connect:fmadeuphost.ru ERROR:5.0.0:550 Dont accept Spam
Connect:someplace.net ERROR:5.0.0:550 Dont accept Spam
domaintable - mine is empty.
mailertable - mine is emtpy.
virtualusertable - example
Aliases - Example
Now to compile all databases even if they are emtpy.
makemap hash /etc/mail/access < /etc/mail/access
makemap hash /etc/mail/domaintable < /etc/mail/domaintable
makemap hash /etc/mail/mailertable < /etc/mail/mailertable
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
Now to edit the file that controls the sendmail.cf file.
(make any changes needed here such as smart_host if needed.)
cp usr/share/sendmail/cf/cf/sendmail-slackware.mc /usr/share/sendmail/cf/cf/config.mc
sh build /usr/share/sendmail/cf/cf/config.mc
cp /usr/share/sendmail/cf/cf/config.cf /etc/mail/sendmail.cf
Also editing /etc/rc.d/rc.sendmail to be executable by all should start it on boot.
Thats the bare bones of sendmail slackware configuration, and may possibly get you up and running with some little tweaking for rh. Please post back if you have any question about what I wrote for you.
I hope this helps.