Postfix
Z wiki linux-user
Linia 1: | Linia 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Serwer]] | [[Category:Serwer]] | ||
== Postfix == | == Postfix == | ||
Linia 51: | Linia 33: | ||
=== Instalacja oprogramowania === | === Instalacja oprogramowania === | ||
+ | W tym momencie zainstalujemy potrzebne pakiety do uruchomienia serwera poczty wraz z kilkoma dodatkami. yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot system-switch-mail | ||
+ | |||
=== Konfiguracja postfix'a === | === Konfiguracja postfix'a === | ||
+ | Do konfiguracji postfix'a użyjemy bezpiecznej komendy '''postconf -e''', która edytuje plik zamieniając w pliku wartości, które my podajemy, zapobiega to wpisaniem dwóch takich samych poleceń, gdyż plik konfiguracyjny serwera postfix jest dość sporych rozmiarów. | ||
+ | postconf -e 'smtpd_sasl_local_domain =' | ||
+ | postconf -e 'smtpd_sasl_auth_enable = yes' | ||
+ | postconf -e 'smtpd_sasl_security_options = noanonymous' | ||
+ | postconf -e 'broken_sasl_auth_clients = yes' | ||
+ | postconf -e 'smtpd_sasl_authenticated_header = yes' | ||
+ | postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination, | ||
+ | reject_rbl_client,bl.spamcop.net' | ||
+ | postconf -e 'inet_interfaces = all' | ||
+ | postconf -e 'mynetworks = 127.0.0.0/8' | ||
+ | postconf -e 'myhostname = nazwa_hosta' | ||
+ | postconf -e 'mydomain = nazwa_domeny' | ||
+ | postconf -e 'myorigin = $myhostname' | ||
+ | postconf -e 'mydestination = $mydomain, $myhostname, localhost' | ||
+ | postconf -e 'relay_domains = $mydestination' | ||
+ | postconf -e 'home_mailbox = Maildir/' | ||
=== Konfiguracja smtpd === | === Konfiguracja smtpd === | ||
− | + | W systemie centos (32 bit) plik konfiguracyjny serwera smtpd znajduje się w ścieżce ''/usr/lib/sasl2/smtpd.conf''. Plik modyfikujesz następująco | |
− | W systemie centos (32 bit) plik konfiguracyjny serwera smtpd znajduje się w ścieżce /usr/lib/sasl2/smtpd.conf. Plik modyfikujesz następująco | + | pwcheck_method: saslauthd |
− | pwcheck_method: saslauthd | + | mech_list: plain login |
− | mech_list: plain login | + |