LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Steps to Configure Sendmail server. (https://www.linuxquestions.org/questions/linux-newbie-8/steps-to-configure-sendmail-server-836455/)

gardenair 10-05-2010 11:42 PM

Steps to Configure Sendmail server.
 
Hi,
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.
mypass

vishesh 10-06-2010 12:04 AM

Googling will help you. Remember that main sendmail configuration file is /etc/mail/sendmail.cf , but don't directly edit this edit , instead edit /etc/mail/sendmail.mc(macro directive file) and after that issue make command in /etc/mail folder that will make changes in /etc/mail/sendmail.cf. i hope following link may help you
http://www.linuxhomenetworking.com/w...x_Mail_Servers

Thanks

prayag_pjs 10-06-2010 12:48 AM

Hi,

Follow this link

http://www.wikihow.com/Configure-Sendmail

captainhardway 10-06-2010 01:19 AM

Quote:

Originally Posted by gardenair (Post 4119027)
Hi,
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.
mypass

Greetings.

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

192.168.0.1 RELAY
192.168.10.1 RELAY
10.0.0.1 RELAY
support.name.com RELAY
home.net RELAY
Connect:fmadeuphost.ru ERROR:5.0.0:550 Dont accept Spam
Connect:doesnotexist.tw REJECT
Connect:someplace.net ERROR:5.0.0:550 Dont accept Spam

domaintable - mine is empty.
mailertable - mine is emtpy.

virtualusertable - example

root@support.name.com c.hwaye
c.hwaye@support.name.com c.hwaye
ampk@support.name.com ampk
melny@support.name.com melny
sbrna@support.name.com sbrna
@support.name.com %1@support.name.com

Aliases - Example

#New Entries
root: c.hwaye


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
newaliases

Now to edit the file that controls the sendmail.cf file.

pico /usr/share/sendmail/cf/cf/sendmail-slackware.mc
(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

/etc/rc.d/rc.sendmail start

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.

gardenair 10-06-2010 03:37 AM

thanks for your detail reply but for red hat i need the steps to configure sendmail.I am configuring it 1st time .


All times are GMT -5. The time now is 08:21 PM.