본문 바로가기

기타/디지털

Sendmail RPM 설치 및 설정

Installation

1. install RPM

sendmail-8.12.8-4.rpm, sendmail-cf-8.12.8-4.rpm, imap-2001a-18.rpm

2. enabel IMAP, POP3

1) /etc/xinetd.d/imap : disable  = yes -> no
2) /etc/xinetd.d/ipop3 : disable  = yes -> no

3. Cyrus Sasl 적용

1) vi /etc/mail/sendmail.mc

dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
-> TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl

dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
-> define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
-> DAEMON_OPTIONS(`Port=smtp,Name=MTA')dnl

2) mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak
3) m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
4) vi /etc/mail/local-host-names

yourdomain.com
www.yourdomain.com

5) /etc/rc.d/init.d/sendmail restart

Config

1. makemap

apply change of access, domaintable, mailertable, virtusertable : makemap hash ***.db < ***

ref : procmail - http://trade.chonbuk.ac.kr/~leesl/procmail/index.html