Postfix SMTP Mail Server Kurulumu
Redhat Enterprise Server, Veya Free CentOS Server Üzerinde Kurulumlar Aşamasında Postfix Paketi Seçilerek Sistem Kurulur.Firewall ve SE Linux Yapılandırmasında da SMTP 25 nolu porta iki yönlü erişim verilir. Sunucu Hali hazırda mevcutsa DVD üzerinden ilgili postfix paketleri bağımlılıklarıyla birlikte yüklenir.
işletim sistemi ve uygulama kurulumu sonrasında
vi /etc/prod_main.cf’ye girilerek networkler tanımlanarak dosya düzenlenir.Tüm firmaya özel ayarlamalar ilaveten yapılır.Firewall cihazlarından bu sunucu ip’si için dışarıya mail atma yetkisi verilir.
Örnek prod_main.cf Dosyası
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix debug_peer_level = 2 debugger_command = default_destination_concurrency_limit = 20 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all local_destination_concurrency_limit = 20 local_destination_recipient_limit = 10 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 14582950 milter_default_action = accept milter_protocol = 2 mime_header_checks = regexp:/etc/postfix/header_checks mydestination = $myhostname, localhost.$mydomain, localhost myhostname = mail1.maildomain.com.tr mynetworks = 10.100.114.72/32, 10.100.23.0/24, 10.100.119.76/32, 10.100.119.77/32 newaliases_path = /usr/bin/newaliases.postfix non_smtpd_milters = inet:localhost:20209 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.6/README_FILES sample_directory = /usr/share/doc/postfix-2.3.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_tls_loglevel = 1 smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_milters = inet:localhost:20209 tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550
Örnek simple main.cf konfigurasyon dosyası
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = smtp.maildomain.com.tr, localhost.maildomain.com.tr, localhost mydomain = localdomain.com.tr myhostname = smtplinux.maildomain.com.tr mynetworks = 10.100.23.0/24, 168.100.189.0/28, 127.0.0.0/8 mynetworks_style = subnet newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relayhost = smtp.maildomain.com.tr sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550
Ek’li dosya maximum transfer boyutunu görüntüleme
postconf | grep message_size_limit message_size_limit = 10240000
Ek’li dosya maximum transfer boyutunu değiştirme (50 MB)
postconf -e message_size_limit=52428800
Ayrıntılı Bilgi için