Monday, March 19, 2012

Mail Server Setup


# rpm -qa|grep sendmail

# rpm -qa|grep xinetd

# vi /var/named/example.com

Line 12. ID IN MX 10 mail.example.com.

14 . Mail In CNAME linux205

:wq

# service named restart

# rndc reload

# vi /etc/mail/sendmail.mc

Search:

/DAEMON_OPTION- [block thi line]

/LOCAL_DOMAIN- [ LOCAL_DOMAIN(‘example.com’)dnl ] :wq

# vi /etc/xinetd.d/ipop3

Disable=no

:wq

# make -C /etc/mail

# service sendmail restart

# service xinetd restart

# echo “msg body”|mail -v -s “subject” a1@example.com [to send msg to a1(user name)]

[quit-> to save mail & exit-> to exit without save]

No comments:

Post a Comment