{"id":42,"date":"2009-09-19T01:37:53","date_gmt":"2009-09-18T22:37:53","guid":{"rendered":"http:\/\/www.umutbesler.com\/?page_id=42"},"modified":"2021-11-10T11:56:05","modified_gmt":"2021-11-10T08:56:05","slug":"debian-uzerinde-postfix-mail-server-kurulum-dokumani-postfixmysqlcourier-imapsmtp-authspamassassinclamav","status":"publish","type":"page","link":"http:\/\/www.umutbesler.com\/dokumanlar\/debian-uzerinde-postfix-mail-server-kurulum-dokumani-postfixmysqlcourier-imapsmtp-authspamassassinclamav\/","title":{"rendered":"Debian \u00dczerinde Postfix Mail Server Kurulum Dokumani (Postfix+Mysql+Courier Imap+SMTP Auth+Spamassassin+Clamav)"},"content":{"rendered":"
Debian \u00dczerinde Postfix Mail Server Kurulum Dokumani (Postfix+Mysql+Courier Imap+SMTP Auth+Spamassassin+Clamav)<\/strong> Bu dokuman Postfix mail server uzerinde virtual domain olusturarak mail hizmeti vermeyi aciklayacaktir. Bu kurulumdan \u00f6nce daha \u00f6nce yazm\u0131\u015f oldu\u011fum postfix<\/a> d\u00f6k\u00fcman\u0131na bir g\u00f6z atman\u0131z\u0131 tavsiye ederim.<\/p>\n Oncelikle kurulmasi gereken paketler: apt-get install postfix-mysql postfix-tls postfix Mysql :<\/strong> Domain bilgilerimizi mysql database\u2019inde tutacagiz. Bunun avantaji kullanicilarin database\u2019den direk eklenip silinebilmesidir. Boylece sistem icin web arayuzude yazilmasi kolaylasacaktir.<\/p>\n Postfix :<\/strong> Mail server olarak postfix kullanacagiz. MySql :
\nHazirlayan :<\/strong> Umut Besler
\n17.04.2006<\/p>\n
\nKurulum tamamland\u0131\u011f\u0131nda MySQL \u00fczerinden kullan\u0131c\u0131 kontrol\u00fc yapan, gelen emaillere virus ve spam kontrol\u00fc yapan bir sisteme sahip olacaks\u0131n\u0131z.<\/p>\n
\nDebian’\u0131n bize sa\u011flad\u0131\u011f\u0131 en b\u00fcy\u00fck avantajlardan biri olan apt ile kurulum yapaca\u011f\u0131z.
\nT\u00fcm paketlerin kurulumu i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 s\u0131rayla vermelisiniz:<\/p>\n
\napt-get install libsasl2 libsasl2-dev libsasl2-modules-sql
\napt-get install spamassassin
\napt-get install amavisd-new
\napt-get install clamav clamav-daemon lha arj
\napt-get install unrar zoo nomarch lzop
\napt-get install libsasl2-modules libsasl2-modules-gssapi-heimdal
\napt-get install courier-authdaemon courier-authmysql courier-imap courier-imap-ssl courier-pop-ssl courier-pop
\ntouch \/var\/lib\/amavis\/whitelist_sender
\nchown amavis:amavis \/var\/lib\/amavis\/whitelist_sender
\ntouch \/var\/lib\/amavis\/blacklist_sender
\nchown amavis:amavis \/var\/lib\/amavis\/blacklist_sender<\/p>\n
\nCourier Imap :<\/strong> Imap ve pop3 server olarak kullanacagiz.
\nCyrus Sasl :<\/strong> SMTP Auth yapilabilmesi icin gerekli program.
\nAmavisd-new : <\/strong>Spam ve vir\u00fcs kontrol\u00fc i\u00e7in gerekli program.
\nClamav : <\/strong>Virus program\u0131.
\nSpamassassin : <\/strong>Spam kontrol\u00fc yapan program.<\/p>\n
\n<\/strong>Mysql database yaratmak i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 verebilirsiniz:
\n
\nCREATE TABLE `users` (
\n`id` varchar(128) NOT NULL default '',
\n`address` varchar(128) NOT NULL default '',
\n`crypt` varchar(128) NOT NULL default '',
\n`clear` varchar(128) NOT NULL default '',
\n`name` varchar(128) NOT NULL default '',
\n`uid` smallint(5) unsigned NOT NULL default '1000',
\n`gid` smallint(5) unsigned NOT NULL default '1000',
\n`home` varchar(128) NOT NULL default '\/',
\n`domain` varchar(128) NOT NULL default '',
\n`maildir` varchar(255) NOT NULL default '',
\n`imapok` tinyint(3) unsigned NOT NULL default '1',
\n`bool1` tinyint(3) unsigned NOT NULL default '1',
\n`bool2` tinyint(3) unsigned NOT NULL default '1',
\n`quota` varchar(10) NOT NULL default '5000',
\nPRIMARY KEY (`id`),
\nUNIQUE KEY `address` (`address`),
\nUNIQUE KEY `id` (`id`),
\nKEY `id_2` (`id`),
\nKEY `address_2` (`address`)
\n) ENGINE=MyISAM;<\/code><\/p>\nCREATE TABLE `virtual` (
\n`address` varchar(255) NOT NULL default '',
\n`goto` text NOT NULL,
\nUNIQUE KEY `address` (`address`)
\n) ENGINE=MyISAM;<\/code><\/p>\n
\n<\/code><\/code><\/p>\n
CREATE TABLE `transport` (
\n`domain` varchar(128) NOT NULL default '',
\n`transport` varchar(128) NOT NULL default 'virtual:',
\nUNIQUE KEY `domain` (`domain`)
\n) ENGINE=MyISAM;
\n<\/code>
\nTransport taki alanlarin aciklamalari:<\/strong><\/p>\n