Configuration Of Sendmail Server
# Configuration Of Sendmail Server
----------------------------------
# Port Number:25
----------------
# Required RPMS:
----------------
sendmail-8.13.8-2.el5
sendmail-cf-8.13.8-2.el5
sendmail-doc-8.13.8-2.el5
sendmail-devel-8.13.8-2.el5
dovecot-1.0-1.2.rc15.el5
# Configuration Files:
----------------------
/etc/mail/sendmail.mc
/etc/dovecot.conf
# Services & Daemons:
---------------------
sendmail
dovecot
# Configuration Steps:
----------------------
# Goto the configuration file and disable line no.116 and Add your domain name
to the line no.155
vi /etc/mail/sendmail.mc
116 dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
155 LOCAL_DOMAIN(`server.cms.com')dnl
:wq
# Redirect the output of this file as,
cd /etc/mail/
m4 sendmail.mc > sendmail.cf
# Then Goto the following file and enable the protocols at line no.17.
vi /etc/dovecot.conf
17 protocols = imap imaps pop3 pop3s
:wq
# Goto the following file and disable all the lines in the file and add the line
vi /etc/mail/access
10 Connect:192.168.150.0/24 RELAY
:wq
# Also mention the aliases for user and root
vi /etc/aliases
099 root: user1
100 user1: root
:wq
newaliases
# If DNS is configured then add the MX entries in both the zone files.
cd /var/named/chroot/var/named
vi forward.zone
13 host1 IN MX 10 192.168.150.52
:wq
named-checkzone cms.com forward.zone
vi reverse.zone
13 52 IN MX 10 host1.cms.com.
:wq
named-checkzone cms.com reverse.zone
/etc/init.d/named restart
# Turn on the services
chkconfig sendmail on
service sendmail restart
chkconfig dovecot on
service sendmail restart
# Send the mails from server to verify it.
mail user1@host1.cms.com
Subject:Hello
Hi! This is Viraj.
Plz, Meet me soon.
.
Cc:user1@server.cms.com
# Now goto the client machine and check the mails by giving the command,
mail
----------------------------------
# Port Number:25
----------------
# Required RPMS:
----------------
sendmail-8.13.8-2.el5
sendmail-cf-8.13.8-2.el5
sendmail-doc-8.13.8-2.el5
sendmail-devel-8.13.8-2.el5
dovecot-1.0-1.2.rc15.el5
# Configuration Files:
----------------------
/etc/mail/sendmail.mc
/etc/dovecot.conf
# Services & Daemons:
---------------------
sendmail
dovecot
# Configuration Steps:
----------------------
# Goto the configuration file and disable line no.116 and Add your domain name
to the line no.155
vi /etc/mail/sendmail.mc
116 dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
155 LOCAL_DOMAIN(`server.cms.com')dnl
:wq
# Redirect the output of this file as,
cd /etc/mail/
m4 sendmail.mc > sendmail.cf
# Then Goto the following file and enable the protocols at line no.17.
vi /etc/dovecot.conf
17 protocols = imap imaps pop3 pop3s
:wq
# Goto the following file and disable all the lines in the file and add the line
vi /etc/mail/access
10 Connect:192.168.150.0/24 RELAY
:wq
# Also mention the aliases for user and root
vi /etc/aliases
099 root: user1
100 user1: root
:wq
newaliases
# If DNS is configured then add the MX entries in both the zone files.
cd /var/named/chroot/var/named
vi forward.zone
13 host1 IN MX 10 192.168.150.52
:wq
named-checkzone cms.com forward.zone
vi reverse.zone
13 52 IN MX 10 host1.cms.com.
:wq
named-checkzone cms.com reverse.zone
/etc/init.d/named restart
# Turn on the services
chkconfig sendmail on
service sendmail restart
chkconfig dovecot on
service sendmail restart
# Send the mails from server to verify it.
mail user1@host1.cms.com
Subject:Hello
Hi! This is Viraj.
Plz, Meet me soon.
.
Cc:user1@server.cms.com
# Now goto the client machine and check the mails by giving the command,
Comments