Step 1:
install packages
#yum install sendmail sendmailcf sendmaildoc
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:160

MASQUERADE_AS(`dns.com’)
Line no:164
FEATURE(masquerade_envelope)dnl
Line no:168
FEATURE(masquerade_entire_domain)dnl
#vim /etc/mail/localhostnames
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
0 Comments