{"id":39,"date":"2008-08-26T13:25:15","date_gmt":"2008-08-26T10:25:15","guid":{"rendered":"http:\/\/blog.hostwebtr.com\/?p=39"},"modified":"2008-08-26T13:25:15","modified_gmt":"2008-08-26T10:25:15","slug":"postfix-e-mail-sunucusu-mailscanner-ve-clamav-kurulumu-mailscanner-konfigurasyonu","status":"publish","type":"post","link":"https:\/\/www.48k.com.tr\/postfix-e-mail-sunucusu-mailscanner-ve-clamav-kurulumu-mailscanner-konfigurasyonu\/","title":{"rendered":"Postfix E-Mail Sunucusu , MailScanner ve Clamav Kurulumu + Mailscanner konfigurasyonu"},"content":{"rendered":"

\"\"<\/a><\/p>\n

B\u00f6l\u00fcm 1:Kurulum<\/strong>
\n————————————————————————<\/p>\n

Bu d\u00f6k\u00fcmanda anlat\u0131lanlar size ne kazand\u0131r\u0131r?<\/p>\n

Kopyala & Yap\u0131\u015ft\u0131r y\u00f6ntemiyle bir e-mail sunucusuna sahip olursunuz.
\n\u00c7ok ba\u015far\u0131l\u0131 bir antispam uygulamas\u0131 olan mailscanner sayesinde spamlara bo\u011fulmass\u0131n\u0131z.
\nDebian GNU\/Linux i\u015fletim sistemini ilk kez kullan\u0131yorsan\u0131z,program kurman\u0131n\u0131n ne kadar rahat oldu\u011funu ke\u015ffedersiniz.
\nDaha \u00f6nce sat\u0131n ald\u0131\u011f\u0131n\u0131z bu tip bir yaz\u0131l\u0131m varsa “ah! t\u00fch! vah! diyebilirsiniz.Ne diyebilirim ki?Internette biraz ara\u015ft\u0131rma yapsayd\u0131n\u0131z!Ticari programlara binlerce dolar para verece\u011finize bu projelere biraz destek olsayd\u0131n\u0131z i\u00e7iniz daha rahat ederdi eminim…<\/p>\n

Kullan\u0131lan Yaz\u0131l\u0131mlar ve S\u00fcr\u00fcmleri<\/p>\n

Debian GNU\/Linux 4 (Etch)
\nPostfix 2.3.8-2
\nCourier pop 0.53.3-5
\nSasl 2.1.22
\nMysql 5.0.32
\nMailscanner 4.55.10-3
\nSpamassassin 3.1.7-2<\/p>\n

Postfix Kurulumu<\/p>\n

A\u015fa\u011f\u0131daki komutla kuruluma ba\u015flay\u0131n;<\/p>\n

apt-get install mysql-server-5.0 courier-authlib-mysql libpam-mysql libnss-mysql libsasl2-modules sasl2-bin postfix-mysql courier-pop postfix mailscanner<\/p><\/blockquote>\n

Yukar\u0131daki paketlerin konfigurasyonu esnas\u0131nda mysql,postfix,courier size bir tak\u0131m sorular soracakt\u0131r.Varsay\u0131lan cevaplar\u0131 verebilirsiniz.Konfigurasyon dosyalar\u0131n\u0131 de\u011fi\u015ftirece\u011fimiz i\u00e7in verece\u011finiz cevaplar \u00e7ok \u00f6nemli de\u011fil.<\/p>\n

Postfix’te \u00e7al\u0131\u015facak sanal mail klas\u00f6rleri i\u00e7in a\u015fa\u011f\u0131daki komutlarla kullan\u0131c\u0131y\u0131 sisteminize ekleyin.<\/p>\n

groupadd -g 5000 vmail
\nuseradd -m -d \/home\/vmail -u 5000 -g 5000 vmail<\/p><\/blockquote>\n

\/etc\/default klas\u00f6r\u00fc alt\u0131ndaki saslauthd dosyas\u0131n\u0131 a\u00e7\u0131n.a\u015fa\u011f\u0131daki sat\u0131rlar\u0131 ekleyin.<\/p>\n

\n
####################### \/etc\/default\/saslauthd #############################\n\nSTART=yes\n\nMECHANISMS=\"pam\"\n\nPARAMS=\"-m \/var\/spool\/postfix\/var\/run\/saslauthd -r\"\n\nOPTIONS=\"-c -m \/var\/spool\/postfix\/var\/run\/saslauthd -r\"<\/pre>\n
####################### \/etc\/default\/saslauthd #############################<\/pre>\n<\/blockquote>\n

Yukar\u0131daki dosyay\u0131 editledikten sonra kaydedip \u00e7\u0131k\u0131n.Az \u00f6nce postfix i\u00e7in saslauthd dosyas\u0131ndaki klas\u00f6r\u00fc olu\u015fturun<\/p>\n

mkdir -p \/var\/spool\/postfix\/var\/run\/saslauthd<\/p><\/blockquote>\n

Saslauthd servisini \u00e7al\u0131\u015ft\u0131r\u0131n.<\/p>\n

\/etc\/init.d\/saslauthd start<\/p><\/blockquote>\n

A\u015fa\u011f\u0131daki linkten postfix i\u00e7in konfigurasyon dosyalar\u0131n\u0131 sunucunuza indirin.Bunlar\u0131 \/etc\/postfix klas\u00f6r\u00fcne kopyalay\u0131n.\u0130sterseniz kopyalama yapmadan \u00f6nce bu klas\u00f6r\u00fc farkl\u0131 bir isimde kaydedip i\u00e7indeki dosyalar\u0131 silebilirsiniz.<\/p>\n

\/ Link postfix.tar<\/a> \/<\/p>\n

Postfixin mysql konfigurasyon dosyalar\u0131nda g\u00f6rece\u011finiz \u00fczere bir mysql veritaban\u0131na ihtiyac\u0131n\u0131z olacak.A\u015fa\u011f\u0131daki bu veritaban\u0131n\u0131n \u00f6rnek \u015femas\u0131n\u0131 indirip,phpmyadminle veya konsoldan mysql sunucunuza import edebilirsiniz.
\nBu a\u015famada,dosyalarda yaz\u0131l\u0131 olan mysql kullan\u0131c\u0131 bilgilerini diledi\u011finiz gibi de\u011fi\u015ftirebilirsiniz.Yeterki mysql sunucuda olu\u015fturaca\u011f\u0131n\u0131z kullan\u0131c\u0131 bilgileriyle ayn\u0131 olsun.<\/p>\n

\/ Link mail.sql<\/a> \/<\/p>\n

Not: Yukar\u0131da linki verilen sql \u015femas\u0131 herhangi bir veri i\u00e7ermiyor.Bu y\u00fczden dosyay\u0131\u00a0 veritaban\u0131n\u0131za import ettikten sonra sisteminize kullan\u0131c\u0131 eklemelisiniz.\u00d6nce domain tablosuna alanad\u0131n\u0131z\u0131 daha sonra users tablosuna s\u0131ras\u0131yla e-mail adresi,\u015fifre (ENCRYPT olmal\u0131) ve kota (BYTE tipinde) bilgilerini eklemelisiniz.
\n<\/span><\/p>\n

S\u0131ra benim bu kurulumu ilk yapt\u0131\u011f\u0131mda “niye \u00e7al\u0131\u015fm\u0131yor!” \u015feklinde s\u00f6ylenerek,k\u0131vrand\u0131\u011f\u0131m a\u015famada.A\u015fa\u011f\u0131daki linkteki dosyay\u0131 \/etc\/pam.d\/ dizinine kopyalay\u0131n.Dosyadaki mysql kullan\u0131c\u0131 bilgileri,postfix i\u00e7in indirdi\u011finiz dosyalardakilerle ayn\u0131 olmal\u0131d\u0131r.<\/p>\n

\/ Link smtp<\/a> \/<\/p>\n

Courier Pop Kurulumu<\/p>\n

Courier i\u00e7in \u00f6zel bir konfigurasyone gerek yok.A\u015fa\u011f\u0131daki dosyalar\u0131 \/etc\/courier alt\u0131na kopyalay\u0131n yeterli.Yine belirteyim,authmysqlrc dosyas\u0131ndaki mysql kullan\u0131c\u0131 da ayn\u0131 veritaban\u0131na ba\u011flanabilmesi laz\u0131m.<\/p>\n

\/ Link authmysqlrc<\/a>\/<\/p>\n

Mailscanner Kurulumu<\/p>\n

Mailscanner size ne avantaj sa\u011flar?<\/p>\n

– Y\u00fcksek trafikli mail gateway lerde rahatl\u0131kla kullanabilirsiniz.
\n– Mail trafi\u011finin \u00e7ok y\u00fcksek oldu\u011fu veya spam sald\u0131r\u0131s\u0131n\u0131n oldu\u011fu anlarda bile amavis e g\u00f6re bellek kullan\u0131m\u0131 \u00e7ok daha d\u00fc\u015f\u00fckt\u00fcr.
\n– \u00c7ok ayr\u0131nt\u0131l\u0131,kolayca anla\u015f\u0131l\u0131r konfigurasyon dosyalar\u0131na sahiptir ve esnek bir yap\u0131ya sahiptir.
\n– Acil durumlarda devre d\u0131\u015f\u0131 b\u0131rak\u0131lmas\u0131 \u00e7ok pratiktir.
\n– Pek \u00e7ok antivir\u00fcs yaz\u0131l\u0131m\u0131 ile uyumludur.<\/p>\n

-Postfix yap\u0131land\u0131rmas\u0131
\nMailscanner ile postfixin beraber \u00e7al\u0131\u015fabilmesi i\u00e7in main.cf dosyan\u0131za a\u015fa\u011f\u0131daki sat\u0131r\u0131 ekleyin<\/p>\n

header_checks = regexp:\/etc\/postfix\/header_checks<\/p><\/blockquote>\n

Daha sonra yeni \/etc\/postfix\/header_checks dosyan\u0131z\u0131 a\u00e7\u0131p a\u015fa\u011f\u0131daki sat\u0131r\u0131 ekleyin.<\/p>\n

\/^Received:\/ HOLD<\/p><\/blockquote>\n

Mailscanner ile birlikte clam antivir\u00fcs \u00fcn en g\u00fcncel versiyonunu kurabilmek i\u00e7in a\u015fa\u011f\u0131daki adresi \/etc\/apt\/sourcelist dosyan\u0131za ekleyin.<\/p>\n

deb http:\/\/volatile.debian.org\/debian-volatile etch\/volatile main<\/p><\/blockquote>\n

Daha sonra mailscanner ile birlikte clamav’\u0131 sisteminize kurun<\/p>\n

apt-get install clamav clamav-base clamav-daemon libclamav4 mailscanner<\/p><\/blockquote>\n

Kurulum tamamland\u0131ktan sonra s\u0131ras\u0131yla a\u015fa\u011f\u0131daki dosya izinlerini uygulay\u0131n.<\/p>\n

chown postfix.postfix \/var\/spool\/MailScanner\/ -R
\nchown postfix.postfix \/var\/lib\/MailScanner\/ -R
\nchown postfix.postfix \/var\/run\/MailScanner\/ -R
\nchown postfix.postfix \/var\/lock\/subsys\/MailScanner -R<\/p><\/blockquote>\n

daha sonra \/etc\/default\/mailscanner dosyas\u0131n\u0131 a\u00e7\u0131p a\u015fa\u011f\u0131daki sat\u0131r\u0131 aktif hale getirin<\/p>\n

#run_mailscanner=1<\/p><\/blockquote>\n

\/etc\/MailScanner\/MailScanner.conf dosyas\u0131n\u0131 a\u00e7\u0131p a\u015fa\u011f\u0131daki de\u011fi\u015fiklikleri yap\u0131n.<\/p>\n

Run As User = postfix
\nRun As Group = postfix
\nIncoming Queue Dir = \/var\/spool\/postfix\/hold
\nOutgoing Queue Dir = \/var\/spool\/postfix\/incoming
\nMTA = postfix<\/p><\/blockquote>\n

Yukar\u0131daki de\u011fi\u015fiklikleri yapt\u0131ktan sonra mailscanner ve postfix servisleri resetleyin.<\/p>\n

\/etc\/init.d\/mailscanner restart
\n\/etc\/init.d\/postfix restart<\/p><\/blockquote>\n

Notlar:<\/strong><\/span><\/p>\n

Mysql Sunucunuzdaki veritaban\u0131n\u0131za ilk kullan\u0131c\u0131n\u0131z\u0131 ekleyip thunderbird veya outlooktan deneme yapt\u0131\u011f\u0131n\u0131zda e-mail istemciniz hata verecektir.Bunun sebebi hen\u00fcz domain ve kullan\u0131c\u0131 klas\u00f6rleri ( Maildir ) olu\u015fmamas\u0131ndand\u0131r.Klas\u00f6rlerin otomatik yarat\u0131labilmesi i\u00e7in ,sisteme telnet ile 25.porta ba\u011flan\u0131p veya ba\u015fka bir e-mail hesab\u0131n\u0131zdan mail g\u00f6nderin.Sistem,kendisine gelen e-postalar\u0131n sahiplerini users ve domains tablolar\u0131ndan kontrol edecek,e\u011fer varsa gerekli klas\u00f6rleri olu\u015fturacakt\u0131r.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

B\u00f6l\u00fcm 1:Kurulum ———————————————————————— Bu d\u00f6k\u00fcmanda anlat\u0131lanlar size ne kazand\u0131r\u0131r? Kopyala & Yap\u0131\u015ft\u0131r y\u00f6ntemiyle bir e-mail sunucusuna sahip olursunuz. \u00c7ok ba\u015far\u0131l\u0131 bir antispam uygulamas\u0131 olan mailscanner sayesinde spamlara bo\u011fulmass\u0131n\u0131z. Debian GNU\/Linux i\u015fletim sistemini ilk kez kullan\u0131yorsan\u0131z,program kurman\u0131n\u0131n ne kadar rahat oldu\u011funu ke\u015ffedersiniz. Daha \u00f6nce sat\u0131n ald\u0131\u011f\u0131n\u0131z bu tip bir yaz\u0131l\u0131m varsa “ah! t\u00fch! vah! diyebilirsiniz.Ne diyebilirim […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[312],"tags":[320,321,281,322,292,323,303,295,324,325,326,206,327,328,329,330],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-e-mail-sunuculari","tag-anti-spam","tag-antispam","tag-antivirus","tag-belge","tag-content-filter","tag-dokuman","tag-e-mail","tag-icerik-filtreleme","tag-kurulum","tag-linux-e-mail-sunucusu","tag-linux-e-posta-sunucusu","tag-linux-sunucu","tag-postfix","tag-smtp","tag-spam","tag-virus"],"_links":{"self":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":0,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}