Domainkey Setting for Sendmail

<SPAN style=”FONT-FAMILY: 굴림; FONT-SIZE: 9pt; mso-no-proof: yes” lang=EN-US><?xml:namespace prefix = v ns = “urn:schemas-microsoft-com:vml” /><v:shape style=”WIDTH: 400.5pt; HEIGHT: 251.25pt; VISIBILITY: visible; mso-wrap-style: square” id=그림_x0020_3 type=”#_x0000_t75” o:spid=”_x0000_i1025”></v:shape></SPAN><SPAN style=”FONT-FAMILY: 굴림; FONT-SIZE: 9pt” lang=EN-US>

<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” />


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 15pt" lang=EN-US><FONT color=#000000>Domainkey Setting for Sendmail </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </P>

2011.12.14  by netggio (http://netggio.pe.kr)</FONT></o:p></SPAN> 

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>1. </SPAN>기본 환경<SPAN style="mso-bidi-font-weight: bold" lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt; mso-bidi-font-weight: bold" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000>**<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>1-1, centos 5.XX  </SPAN>****테스트 진행함<SPAN lang=EN-US>(아래의 패키지 필수로 설치 되어 있어야함<SPAN lang=EN-US>)</SPAN></SPAN>**</FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test alex]# rpm -qa | grep sendmail</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>sendmail-8.13.8-8.el5</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>sendmail-cf-8.13.8-8.el5</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>sendmail-devel-8.13.8-8.el5</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test alex]# rpm -qa | grep openssl</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>openssl-0.9.8b-10.el5</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>openssl-devel-0.9.8b-10.el5</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>2, DKIM </SPAN>설치<SPAN lang=EN-US> (</SPAN><SPAN style="FONT-FAMILY: 굴림" lang=EN-US>[http://sourceforge.net/projects/dkim-milter][1]</SPAN><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>)</SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>2-1, DKIM </SPAN>설치<SPAN lang=EN-US>(dkim-milter-2.8.3.tar.gz 버전으로 진행함<SPAN lang=EN-US>)</SPAN></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test alex]# /usr/sbin/adduser -M dkim -s /sbin/nologin</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test alex]# tar xzvf dkim-milter-2.8.3.tar.gz </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test alex]# cd dkim-milter-2.8.3</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim-milter-2.8.3]# sh ./Build </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim-milter-2.8.3]# sh ./Build install</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim-milter-2.8.3]# mkdir -p /etc/dkim/domainkeys/</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>2-2, DKIM config </SPAN>파일 생성 <SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# vi /etc/dkim/dkim.conf</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Canonicalization simple </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Domain netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>KeyFile /etc/dkim/domainkeys/netggio.pe.kr.key.pem </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>MTA MSA </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Selector default</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>SignatureAlgorithm rsa-sha256 </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Socket inet:8891@localhost</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Syslog Yes</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Userid mail</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>InternalHosts /etc/dkim/internal.txt</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>2-3, DKIM config – allow ip </SPAN>리스트 파일 생성 <SPAN lang=EN-US>– STMP를 이용할 <SPAN lang=EN-US>IP</SPAN>를 적어주면됨<SPAN lang=EN-US></SPAN></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# vi /etc/dkim/internal.txt</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>127.0.0.1</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>192.168.1.0/24</FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>2-4, </SPAN>부팅시<SPAN lang=EN-US> dkim-fillter 데몬 구동되게<SPAN lang=EN-US> rc.local</SPAN>에 추가<SPAN lang=EN-US></SPAN></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test domainkeys]# echo “/usr/sbin/dkim-filter -x /etc/dkim/dkim.conf” >> /etc/rc.local</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>3, DNS</SPAN>서버<SPAN lang=EN-US>/ 발송서버에 사용할 <SPAN lang=EN-US>DomainKey </SPAN>적용<SPAN lang=EN-US></SPAN></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>3-1, Domainkey </SPAN>생성<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# cd /etc/dkim/domainkeys</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# /usr/bin/dkim-genkey -d netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# /bin/mv default.private netggio.pe.kr.key.pem</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# /bin/chmod –R 600 /etc/dkim/</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test dkim]# /bin/chown -R dkim.dkim /etc/dkim/</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>3-2, DNS Record </SPAN>추가<SPAN lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>Domainkey </SPAN>를 생성하면<SPAN lang=EN-US> default.txt 에<SPAN lang=EN-US> DNS</SPAN>에 추가할<SPAN lang=EN-US> key</SPAN>값이 생성되며<SPAN lang=EN-US>, default.txt</SPAN>파일의<SPAN lang=EN-US> key</SPAN>값을 <SPAN lang=EN-US></SPAN></SPAN></FONT>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>Nameserver </SPAN>의 해당 도메인의 레코드에 추가해주면 됨<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test domainkeys]# cat /etc/dkim/domainkeys/default.txt</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>default._domainkey IN TXT “v=DKIM1; g=*; k=rsa; p=IGfMA0GUAA4GKQDOp2fz+SHHFzwd6qWfQ+ePXrvOcHCV0hY+dfdfefefef “</FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>4, DNS Record </SPAN>확인 <SPAN lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림" lang=EN-US>[http://www.smtp.com/support/dkim][2]</SPAN><SPAN style="FONT-FAMILY: 굴림; COLOR: #002060; FONT-SIZE: 9pt" lang=EN-US> </SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000>ex: Domain -> </FONT>netggio.pe.kr<FONT color=#000000>  Selector -> </FONT>default<FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>5, </SPAN>샌드메일 확인 및 설정<SPAN lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>5-1, Sendmail Access </SPAN>확인<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test mail]# cat /etc/mail/access</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Connect:localhost.localdomain           RELAY</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Connect:localhost                       RELAY</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Connect:127.0.0.1                       RELAY</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>Connect:192.168.1                      RELAY</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>5-2, Hosts </SPAN>파일 확인<SPAN lang=EN-US></SPAN></FONT>




<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test mail]# cat /etc/hosts</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff># Do not remove the following line, or various programs</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>118.219.234.79 smtp.netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>192.168.1.100  smtp.netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>127.0.0.1     smtp.netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>5-3, local-host-names </SPAN>파일 확인<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test mail]# cat /etc/mail/local-host-names</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>smtp.netggio.pe.kr</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT style="BACKGROUND-COLOR: #000000" color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>5-4, /etc/mail/sendmail.cf</SPAN>에 <SPAN lang=EN-US>dkim 적용<SPAN lang=EN-US></SPAN></SPAN></FONT>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>/etc/mail/sendmail.mc </SPAN>파일 최하단에 아래의 라인 추가<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>INPUT_MAIL_FILTER(`dkim-filter’, `S=inet:8891@localhost’)</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>/etc/mail/sendmail.mc </SPAN>파일의 아래의 내용 각각 수정<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<FONT color=#ffffff><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl (</SPAN>변경전<SPAN lang=EN-US>)</SPAN></FONT>


<SPAN style="FONT-FAMILY: Wingdings; FONT-SIZE: 9pt; mso-hansi-font-family: 굴림; mso-ascii-font-family: 굴림; mso-fareast-font-family: 굴림; mso-char-type: symbol; mso-symbol-font-family: Wingdings" lang=EN-US><FONT color=#000000>à</FONT></SPAN><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT>DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA’)dnl<FONT color=#000000> (</FONT></SPAN><FONT color=#ffffff>변경후<SPAN lang=EN-US>)</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>


<FONT color=#ffffff><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>LOCAL_DOMAIN(`localhost.localdomain’)dnl (</SPAN>변경전<SPAN lang=EN-US>)</SPAN></FONT>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000>-> </FONT>LOCAL_DOMAIN(`smtp.netggio.pe.kr’)dnl<FONT color=#000000> (</FONT></SPAN><FONT color=#000000>변경후<SPAN lang=EN-US>)</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US>sendmail.cf </SPAN>생성<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test mail]# /usr/bin/m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>6, </SPAN>샌드 메일 재시작<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test domainkeys]# /etc/init.d/sendmail restart</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>7, dkim-fillter </SPAN>데몬 구동<SPAN lang=EN-US></SPAN></FONT>



<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff>[root@netggio-test domainkeys]# /usr/sbin/dkim-filter -x /etc/dkim/dkim.conf</FONT></SPAN>


<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#ffffff> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>8, dkim-fillter </SPAN>데몬 확인<SPAN lang=EN-US></SPAN></FONT>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt; mso-no-proof: yes" lang=EN-US><v:shapetype id=\_x0000\_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shapetype><v:shape style="WIDTH: 444.75pt; HEIGHT: 224.25pt; VISIBILITY: visible; mso-wrap-style: square" id=그림\_x0020\_21 type="#\_x0000\_t75" o:spid="\_x0000\_i1026"></v:shape></SPAN><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US><FONT color=#000000> </FONT></SPAN>

<FONT color=#000000><SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US>9. </SPAN>메일 발송 테스트 <SPAN lang=EN-US></SPAN></FONT>

<SPAN style="FONT-FAMILY: 굴림; mso-bidi-font-size: 10.0pt" lang=EN-US><FONT color=#000000 size=2> </FONT></SPAN>

<FONT color=#000000>메일 발송 테스트후 메일을 받아보면<SPAN lang=EN-US>, 메일 헤더값에<SPAN lang=EN-US> DKIM-Signature</SPAN>을 볼 수 있으며 정상으로 보면 됨<SPAN lang=EN-US></SPAN></FONT></SPAN>

<SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt; mso-no-proof: yes" lang=EN-US><v:shape style="WIDTH: 400.5pt; HEIGHT: 251.25pt; VISIBILITY: visible; mso-wrap-style: square" id=그림\_x0020\_3 type="#\_x0000\_t75" o:spid="\_x0000\_i1025"></v:shape></SPAN><SPAN style="FONT-FAMILY: 굴림; FONT-SIZE: 9pt" lang=EN-US></SPAN>

</FONT></o:p></SPAN>

[1]: http://sourceforge.net/projects/dkim-milter [2]: http://www.smtp.com/support/dkim

Written on December 14, 2011