10 04 2014
CentOS – SendMail Install
postfix삭제
CentOS6부터는 기본을 postfix가 설치되므로
1 2 3 |
chkconfig --list|grep postfix yum remove postfix |
sendmail 설치
1 2 |
yum install -y sendmail yum install -y sendmail-cf |
“/etc/mail/sendmail.mc”파일 수정
1 |
vi /etc/mail/sendmail.mc |
인증이 필요할 경우는 아래와 같이 편집
1 2 3 4 5 6 |
dnl #TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl dnl #define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl ------- 주석을 해제한다---------- TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl 앞에 공백이 있으면 안됨 |
1 |
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf |
1 |
chkconfig saslauthd on |
(이렇게 하지 않으면 계속을 인증을 요구함)
1 |
vi /etc/mail/sendmail.cf |
서비스 시작
1 |
service sendmail restart |
- 메일서버 설정( 0.0.0.0 으로 설정하면 서버에 설정된 모든 도메인에 대한 설정)
1 2 3 4 5 6 7 8 9 |
[root@hae mail]# vi sendmail.mc .... dnl # The following causes sendmail to only listen on the IPv4 loopback address dnl # 127.0.0.1 and not on any other network devices. Remove the loopback dnl # address restriction to accept email from the internet or intranet. dnl # dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl .... |
- 서비스 확인
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@hae mail]# netstat -ant | grep 25 tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp 0 0 114.207.113.38:59544 114.207.113.38:25 TIME_WAIT tcp 0 0 127.0.0.1:44250 127.0.0.1:3399 ESTABLISHED tcp 0 0 127.0.0.1:44258 127.0.0.1:3399 ESTABLISHED tcp 0 0 114.207.113.38:25 218.38.12.28:64488 ESTABLISHED tcp 0 0 127.0.0.1:44254 127.0.0.1:3399 ESTABLISHED tcp 0 0 127.0.0.1:44252 127.0.0.1:3399 ESTABLISHED tcp 0 0 127.0.0.1:44256 127.0.0.1:3399 ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:3399 ::ffff:127.0.0.1:44250 ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:3399 ::ffff:127.0.0.1:44256 ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:3399 ::ffff:127.0.0.1:44254 ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:3399 ::ffff:127.0.0.1:44258 ESTABLISHED tcp 0 0 ::ffff:127.0.0.1:3399 ::ffff:127.0.0.1:44252 ESTABLISHED |
Wowza Media Server – 성능튜닝 Linux – sendmail multi queue