Configure Send mail Server Red hat in sendmail.mc Rhel5 file

system4: senmail server in linux
Step 1:
install packages
#yum install sendmail sendmail­cf sendmail­doc
Step 2:
edit configuration file
#vim /etc/mail/sendmail.mc
Line no:116(disable the line) that is dnl #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl
Line no:160config in sendmail.mc rhel5 file
MASQUERADE_AS(`dns.com’)
Line no:164
FEATURE(masquerade_envelope)dnl
Line no:168
FEATURE(masquerade_entire_domain)dnl
#vim /etc/mail/local­host­names
dns.com
system4.dns.com
system4
Step 3:
restart the sendmail service
#chkconfig sendmail on
#service sendmail restart
Step 4:
send mail to user
#mail ­v ­s “test” dns@ dns.com
sample mail
.
cc:
configure install sendmail
server

Related post