<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Hosting Destek Platformu &#187; bind</title>
	<atom:link href="http://www.hostingdestek.com/category/dns/bind/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hostingdestek.com</link>
	<description>Pratik ve yararlı sistem yönetim bilgileri</description>
	<lastBuildDate>Wed, 30 Dec 2009 15:00:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exim üzerine domainkeys kurulumu</title>
		<link>http://www.hostingdestek.com/exim-uzerine-domainkeys-kurulumu/</link>
		<comments>http://www.hostingdestek.com/exim-uzerine-domainkeys-kurulumu/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 13:31:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel Kontrol Paneli]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DirectadminKontrol Paneli]]></category>
		<category><![CDATA[Dns]]></category>
		<category><![CDATA[Eposta]]></category>
		<category><![CDATA[Microsoft Dns]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[exim]]></category>

		<guid isPermaLink="false">http://www.hostingdestek.com/?p=177</guid>
		<description><![CDATA[domainkey özellikle yahoo tarafından takip edilen, gmailinde gizli gizli takip ettiği, fakat henüz hayata geçirmediği bir spam tespit yöntemidir.
Birçoğunuzun bildiği gibi birçok email servis sağlayıcısı SPF koruması yapmaktadır. Web sitesi için girdiğimiz &#8220;bu site bu ip adresinden mail gönderir, farklı ipden mail alırsan bu spam olabilir&#8221; şeklinde girdiğimiz kayıda SPF kaydı diyoruz. Domainkeys uygulaması ise [...]]]></description>
			<content:encoded><![CDATA[<p>domainkey özellikle yahoo tarafından takip edilen, gmailinde gizli gizli takip ettiği, fakat henüz hayata geçirmediği bir spam tespit yöntemidir.</p>
<p>Birçoğunuzun bildiği gibi birçok email servis sağlayıcısı SPF koruması yapmaktadır. Web sitesi için girdiğimiz &#8220;bu site bu ip adresinden mail gönderir, farklı ipden mail alırsan bu spam olabilir&#8221; şeklinde girdiğimiz kayıda SPF kaydı diyoruz. Domainkeys uygulaması ise çok farklıdır. Her web sitesi için SSL aracılığı ile özel bir kod üretilir ve bu kod DNS kaydı olarak tanımlanır. Gönderilen her mail, bu kod ile işaretlenir. Maili alan servis sağlayıcı, email headerında yer alan domainkey ile, sitenin dnsinde girilmiş olan domainkey kaydını kıyaslar, eğer kayıtlar biribirine uyuyor ise emaili kabul eder. Bu uygulamayı yahooda inboxa mail gönderme problemi yaşayan siteler için yapabiliriz. Büyük oranda başarı sağlanacaktır.</p>
<p>Kurulum ileri derecede linux bilgisi gerektirmektedir. Bu nedenle kendinize güvenmiyor iseniz, çalışan sisteminizi bozmayın <img src='http://www.hostingdestek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Domain Key Kurulumu</p>
<p><span style="font-family: Verdana; font-size: x-small;"><strong>cd /usr/local/src</strong></span></p>
<p><strong><span style="font-family: Verdana; font-size: x-small;"><span style="text-decoration: underline;">Öncelikle libdomainskeys kurulumunu  yapalım;</span></span></strong></p>
<p><span style="font-family: Verdana; font-size: x-small;">wget <a href="http://mesh.dl.sourceforge.net/sourceforge/domainkeys/libdomainkeys-0.69.tar.gz">http://mesh.dl.sourceforge.net/sourceforge/domainkeys/libdomainkeys-0.69.tar.gz</a><br />
tar  -zxvf libdomainkeys-0.69.tar.gz<br />
cd libdomainkeys-0.69<br />
make<br />
echo  &#8220;-lresolv&#8221; &gt; dns.lib<br />
make</span></p>
<p><strong><span style="font-family: Verdana; font-size: x-small;"><span style="text-decoration: underline;">Kurulum bittikten  sonra;</span></span></strong></p>
<p><span style="font-family: Verdana; font-size: x-small;">cd..<br />
mv libdomainkeys-0.69  libdomainkeys</p>
<p><span style="text-decoration: underline;"><strong>Libdomainkeys kurulumu bitti şimdi eximi  domainkeys desteği ile compile edelim;</p>
<p></strong></span>wget <a href="ftp://ftp.exim.org/pub/exim/exim4/exim-4.69.tar.gz">ftp://ftp.exim.org/pub/exim/exim4/exim-4.69.tar.gz</a><br />
tar  -zxvf exim-4.69.tar.gz<br />
cd exim-4.69/Local<br />
wget <a href="http://www.directadmin.com/Makefile">www.directadmin.com/Makefile</a><br />
perl  -pi -e &#8217;s/^EXTRALIBS/#EXTRALIBS/&#8217; Makefile</p>
<p><strong><span style="text-decoration: underline;">Makefile dosyasına  domainkeys desteğini eklemek  için;</p>
<p></span></strong>EXPERIMENTAL_DOMAINKEYS=yes<br />
CFLAGS  +=  -I/usr/local/src/libdomainkeys<br />
LDFLAGS += -ldomainkeys  -L/usr/local/src/libdomainkeys</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">HAVE_ICONV=yes<br />
CFLAGS=-O  -I/usr/local/include<br />
EXTRALIBS_EXIM=-L/usr/local/lib  -liconv<br />
HAVE_ICONV=yes<br />
CFLAGS=-O  -I/usr/local/include<br />
EXTRALIBS_EXIM=-L/usr/local/lib -liconv</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">LOOKUP_LIBS=-L/usr/lib/mysql -L/usr/lib/  -lssl</p>
<p>Makefile dosyasını kaydetip çıkıyoruz.</p>
<p><span style="text-decoration: underline;"><strong>Eximi  compile etmeye başlayalım;</strong></span></span></p>
<p><span style="font-family: Verdana; font-size: x-small;">cd ..<br />
make<br />
make install</p>
<p>compile  sırasında 2 hata alabilirsiniz;</p>
<p>1) liconv kütüphanesini  bulamayabilir;</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">cd /usr/local/directadmin/custombuild<br />
./build  iconv</p>
<p>2) db.h hatası verebilir</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">yum -y install db4-devel -&gt; centos<br />
apt-get  install libdb4.4-dev -&gt; directadmin</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">3) /usr/bin/ld: cannot find -lperl</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">apt-get install libperl-dev</p>
<p>Debian 5.0 ise;</p>
<p>wget <a href="http://files.directadmin.com/services/debian_5.0/da_exim-4.69.deb">http://files.directadmin.com/services/debian_5.0/da_exim-4.69.deb</a><br />
dpkg  -i da_exim-4.69.deb</p>
<p><strong><span style="text-decoration: underline;">Exim compile olduktan sonra sistemi  compile edilmiş dosyaları tanıtalım;<br />
</span></strong></span><span style="font-family: Verdana; font-size: x-small;"><br />
cp -f /usr/sbin/exim-4.69-X /usr/sbin/exim  ( her compile  işleminden sonra -X gibi bir sayı verilir. dosyanın en son compile edilen exime  ait rakamı içerdiğine emin olalım, exim-4.69-5 demek 5. compile dan sonra oluşan  dosya demek)<br />
</span><span style="font-family: Verdana; font-size: x-small;">chmod 4755  /usr/sbin/exim</span></p>
<p><span style="font-family: Verdana; font-size: x-small;"><strong><span style="text-decoration: underline;">Exim.conf dosyasına domain key  değişlenlerini ekleyerek restart edelim;</span></strong></span></p>
<p><span style="font-family: Verdana; font-size: x-small;">nano /etc/exim.conf<br />
</span><strong><span style="text-decoration: underline;"><span style="font-family: Verdana; font-size: x-small;"><br />
Bul: </span></span></strong></p>
<p><span style="font-family: Verdana; font-size: x-small;">remote_smtp:<br />
driver = smtp</span></p>
<p><span style="font-family: Verdana; font-size: x-small;"><strong><span style="text-decoration: underline;">Değiştir:</p>
<p></span></strong>remote_smtp:<br />
driver =  smtp<br />
dk_selector = myselector<br />
dk_private_key =  /usr/local/src/dk/rsa.private<br />
dk_canon = nofws </span></p>
<p><span style="font-family: Verdana; font-size: x-small;">Kaydet ve /etc/init.d/exim restart ile hata verip  vermediğini kontrol et.</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">nano /etc/bind/named.conf.options (options yoksa  named.confa ekleyebiliriz, zaten options named.conf a include  ediliyor)</p>
<p><strong><span style="text-decoration: underline;">Bu satırı ekliyoruz:</span></strong> check-names master  ignore;</p>
<p>Kaydetip çıkıyoruz ve /etc/init.d/named  restart</p>
<p><strong><span style="text-decoration: underline;">Domain keyini oluşturuyoruz;</span></strong></span></p>
<p><span style="font-family: Verdana; font-size: x-small;">cd /usr/local/src<br />
mkdir dk; chown mail  dk<br />
openssl genrsa -out rsa.private 768<br />
openssl rsa -in rsa.private -out  rsa.public -pubout -outform PEM</p>
<p>Burada rsa.private dosyasının  tamamlayıcısı olarak rsa.public keyini oluşturuyoruz. DNS kayıtlarına rsa.public  keyini ekliycez.</span></p>
<p><span style="font-family: Verdana; font-size: x-small;"><strong><span style="text-decoration: underline;">Oluşturduğumuz key için DNS kaydi  giriyoruz;</p>
<p></span></strong>DNS yönetim menüsüne girdikten sonra 2 ayrı kayıt  girmemiz gerekmektedir;</span></p>
<p><span style="font-family: Verdana; font-size: x-small;">1) _domainkey için TXT kaydı giriyoruz, t=y test  modu demektir ve bu şekilde kalmalıdır, o=- sadece bu domaine özel kayıt  demektir.</p>
<p><span style="text-decoration: underline;"><strong>1. kayıt: </strong></span>_domainkey.oyuncakkepce.com.    TXT     &#8220;t=y; o=-&#8221;</span></p>
<p><span style="font-family: Verdana; font-size: x-small;"><br />
2) myselector._domainkey için TXT kaydı giriyoruz, önemli olan nokta p=  kısmına doğru keyi kopyalamaktır;</p>
<p>nano /usr/local/src/dk/rsa.public</p>
<p>&#8212;&#8211;BEGIN PUBLIC  KEY&#8212;&#8211;<br />
MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOcABVeOelBOPlhdUEvGlCGsXiQ3NzDM<br />
6USi5t/NpMAfnmc9fR0LzS6USDhclAPCBbH+QM8UYUPxlFHFEsdhM+FtOXN9RM7j<br />
DX3ZHtD4vLSscqtL3y54qIMK9yz/G8iZlwIDAQAB<br />
&#8212;&#8211;END  PUBLIC KEY&#8212;&#8211;</p>
<p>Kayıt aşağıdaki gibi olmalıdır;</p>
<p><strong><span style="text-decoration: underline;">2. kayıt:</span> </strong>myselector._domainkey.oyuncakkepce.com.  TXT     &#8220;k=rsa; t=y;  p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOcABVeOelBOPlhdUEvGlCGsXiQ3NzDM6USi5t/NpMAfnmc9fR0LzS6USDhclAPCBbH+QM8UYUPxlFHFEsdhM+FtOXN9RM7jDX3ZHtD4vLSscqtL3y54qIMK9yz/G8iZlwIDAQAB&#8221;</p>
<p>DNS ve Exim servisini restart ettikten sonra kurulumu bitiriyoruz ve test  aşamasına geçiyoruz;;</p>
<p>/etc/init.d/exim restart</p>
<p>/etc/init.d/named restart</p>
<p><strong><span style="text-decoration: underline;">Domain Key desteğini test edelim;</span></strong></p>
<p><strong></strong>1) Öncelikle key ve selector testi yapıyoruz;</p>
<p><a href="http://domainkeys.sourceforge.net/policycheck.html">http://domainkeys.sourceforge.net/policycheck.html</a></p>
<p>Testing oyuncakkepce.com<br />
New test<br />
Policy TXT=t=y; o=-</p>
<p>This policy record appears valid.</p>
<p>Tag  Value  Explanation<br />
o  -  Domain signs *ALL* email<br />
t  y  Domain is  in test mode</p>
<p>2) Selector testi yapıyoruz;</p>
<p><a href="http://domainkeys.sourceforge.net/selectorcheck.html">http://domainkeys.sourceforge.net/selectorcheck.html</a></p>
<p>myselector._domainkey.oyuncakkepce.com<br />
New  test<br />
TXT Record length = 182</p>
<p>k=rsa; t=y;  p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOcABVeOelBOPlhdUEvGlCGsXiQ3NzDM6U</p>
<p>&#8230;Si5t/NpMAfnmc9fR0LzS6USDhclAPCBbH+QM8UYUPxlFHFEsdhM+FtOXN9RM7jDX3ZHtD4vLSscqtL3y</p>
<p>&#8230;54qIMK9yz/G8iZlwIDAQAB</p>
<p>This selector appears valid.</p>
<p>Tag  Value  Explanation<br />
k  rsa  The public key algorithm used to verify  the signature<br />
p  MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOcABVeOelBOPlhdUEvGlCGs&#8230;   Modulus Size=768 Exponent=65537<br />
t  y  This Selector is in test mode</p>
<p>3) Robotlara mail göndererek test ediyoruz;</p>
<p><a href="mailto:dkim-test@altn.com">dkim-test@altn.com</a><br />
<a href="mailto:sa-test@sendmail.net">sa-test@sendmail.net</a><br />
<a href="mailto:check-auth@verifier.port25.com">check-auth@verifier.port25.com</a><br />
<a href="mailto:dk@dk.crynwr.com">dk@dk.crynwr.com</a><br />
<a href="mailto:dktest@exhalus.net">dktest@exhalus.net</a></p>
<p>Kayıtların doğru olması için bize aşağıdaki gibi email dönüşü olması  gerekmektedir;</p>
<p>Summary of  Results<br />
==========================================================<br />
SPF  check:          pass<br />
DomainKeys check:   pass<br />
DKIM check:          neutral<br />
Sender-ID check:    pass<br />
SpamAssassin check: ham<br />
domainkeys=pass <a href="mailto:header.from=info@oyuncakkepce.com">header.from=info@oyuncakkepce.com</a> (good)</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hostingdestek.com/exim-uzerine-domainkeys-kurulumu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
