2014. 10. 29. 09:11ㆍOS/CentOS
# yum -y install sendmail sendmail-cf
# vi /etc/mail/sendmail.cf
>---------------------------------------<
1239 (쉬프트+g)
R$* $#error $@ 5.7.1 $: "550 Relaying denied" <-주석
1329 (쉬프트+g)
R<FAIL> $#error $@ 5.7.1 $: "550 Relaying denied. IP name lookup failed " $&{client_name} <-주석
>---------------------------------------<
# vi /etc/mail/local-host-names
# vi /etc/mail/sendmail.mc
>---------------------------------------<
dnl define(`SMART_HOST', `smtp.your.provider')dnl
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
# 앞의 dnl 제거, smtp.your.provider 변경
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
# Addr=127.0.0.1 -> 제거
dnl FEATURE(masquerade_envelope)dnl
# 앞의 dnl 제거
FEATURE(`allmasquerade')
FEATURE(dnsbl,`sbl.spamhaus.org',`',`Rejected - see http://www.spamhaus.org/sbl/')dnl
FEATURE(dnsbl, `spamlist.or.kr', `Rejected - see http://www.kisarbl.or.kr/')dnl
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# service saslauthd start
# yum -y install dovecot
# vi /etc/dovecot/dovecot.conf
>---------------------------------------<
protocols = imap pop3 lmtp
listen = *, ::
>---------------------------------------<
# vi /etc/dovecot/conf.d/10-auth.conf
>---------------------------------------<
disable_plaintext_auth = no
>---------------------------------------<
# vi /etc/sysconfig/iptables
>---------------------------------------<
25
110
993
995
>---------------------------------------<
# service iptables restart
'OS > CentOS' 카테고리의 다른 글
[CentOS] rinetd (0) | 2014.10.29 |
---|---|
[CentOS] MySQL (0) | 2014.09.30 |
[CentOS] vsftpd (0) | 2014.09.24 |
[CentOS] Web (0) | 2014.09.05 |
[CentOS] Samba (0) | 2014.09.03 |