Strona 1 z 1

Postfix, dovecot i sasl - wymuszenie SSL/TLS z zaszyfrowanym hasłem

: 30 września 2011, 15:17
autor: Olivia
Witam.

Mam problem z ustawieniem na serwerze wymuszenia SSL/TLC z opcją szyfrowanego hasła. IMAP działa z opcjami STARTTLS (hasło nie szyfrowane), SSL/TLS z hasłem szyfrowanym i nie szyfrowanym. Niestety SMTP działa tylko z STARTTLS z nieszyfrowanym hasłem.

Chciałabym na początek włączyć możliwość obsługi SSL/TLS z opcją szyfrowanego hasła w SMTP. Jako mogę to zrobić?

Serwer:

Kod: Zaznacz cały

2.6.32-5-amd64 #1 SMP Fri Sep 9 20:23:16 UTC 2011 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.2 (squeeze)
Release:        6.0.2
Codename:       squeeze

Kod: Zaznacz cały

dpkg -l | grep postfix
ii  postfix                             2.7.1-1+squeeze1             High-performance mail transport agent
ii  postfix-doc                         2.7.1-1+squeeze1             Documentation for Postfix
ii  postfix-mysql                       2.7.1-1+squeeze1             MySQL map support for Postfix

Kod: Zaznacz cały

dpkg -l | grep sasl
ii  libsasl2-2                          2.1.23.dfsg1-7               Cyrus SASL - authentication abstraction library
ii  libsasl2-modules                    2.1.23.dfsg1-7               Cyrus SASL - pluggable authentication modules
ii  sasl2-bin                           2.1.23.dfsg1-7               Cyrus SASL - administration programs for SASL users database

Kod: Zaznacz cały

dpkg -l | grep dovecot
ii  dovecot-common                      1:1.2.15-7                   secure mail server that supports mbox and maildir mailboxes
ii  dovecot-imapd                       1:1.2.15-7                   secure IMAP server that supports mbox and maildir mailboxes
ii  dovecot-pop3d                       1:1.2.15-7                   secure POP3 server that supports mbox and maildir mailboxes
Main.cf:

Kod: Zaznacz cały

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_use_tls = yes
smtp_use_tls = yes
#smtpd_tls_security_level = may
#smtp_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
 permit_mynetworks
  permit_sasl_authenticated
  reject_unauth_destination
  reject_rbl_client dnsbl.sorbs.net
  reject_rbl_client bl.spamcop.net
  reject_rbl_client zen.spamhaus.org
  reject_rbl_client dnsbl-1.uceprotect.net
  reject_unauth_destination

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = XX
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = XXX
mydestination = XXX
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf


virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd.conf

Kod: Zaznacz cały

pwcheck_method: authdaemond
#pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
authdaemond_path: /courier-authdaemon-socket/socket
log_level: 4


: 30 września 2011, 19:02
autor: VMLine
Sporo poradników jest dostępnych w sieci... Bez sensu teraz spamować kolejnymi. Poszukaj na howtoforge.net.