LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2010, 12:42 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
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
 
Old 10-06-2010, 01:04 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
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
 
Old 10-06-2010, 01:48 AM   #3
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Follow this link

http://www.wikihow.com/Configure-Sendmail
 
Old 10-06-2010, 02:19 AM   #4
captainhardway
LQ Newbie
 
Registered: Oct 2010
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by gardenair View Post
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.

Last edited by captainhardway; 10-06-2010 at 09:35 PM.
 
Old 10-06-2010, 04:37 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks for your detail reply but for red hat i need the steps to configure sendmail.I am configuring it 1st time .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
if somebody help plzz tell me the steps to configure sendmail on fedora8 ashishagni Linux - Newbie 3 05-27-2009 01:03 AM
How to configure a sendmail server to act as a relay server deep_jyotsingh Linux - Server 1 07-31-2008 12:12 AM
Can one configure sendmail to use an SMTP server? laggerific Linux - Software 1 02-16-2006 11:49 AM
How to configure sendmail to use other smtp server? josealexandre Linux - Newbie 2 10-12-2003 06:09 PM
Help me configure Sendmail server! tthai01 Linux - Networking 3 02-13-2003 07:25 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration