LINUX.ORG.RU

Dovecot + Posfix Debian 8

 , ,


0

0

Добрый день, помогите пожалуйста... Не работает связка сабжа

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
myhostname = afteroot.info
mynetworks = 127.0.0.0/8
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
readme_directory = no
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, permit
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_end_of_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_multi_recipient_bounce, permit
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname, permit
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_rbl_client sbl.spamhaus.org, reject_rbl_client dnsbl-1.uceprotect.net, reject_rbl_client dnsbl.sorbs.net, reject_rbl_client ix.dnsbl.manitu.net, reject_rbl_client bl.spamcop.net, reject_rbl_client access.redhawk.org, reject_rbl_client bl.deadbeef.com, reject_rbl_client dnsbl.cyberlogic.net, reject_rbl_client dul.ru, reject_rbl_client korea.services.net, reject_unknown_client_hostname, reject_unauth_pipelining, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, permit_sasl_authenticated, permit_tls_clientcerts, permit
smtpd_tls_cert_file = /etc/postfix/certificate/smtpd.pem
smtpd_tls_key_file = /etc/postfix/certificate/smtpd.key
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysqlconf/virtual_forwardings.cf, mysql:/etc/postfix/mysqlconf/virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysqlconf/virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysqlconf/virtual_mailboxes.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000

dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.5 
first_valid_uid = 5000
last_valid_uid = 5000
listen = *
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_gid = vmail
mail_location = mbox:~/:INBOX=/var/mail/%n
mail_uid = vmail
namespace {
  inbox = yes
  location = 
  prefix = INBOX.
  separator = .
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = imap
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-master {
    mode = 0600
    user = vmail
  }
  user = root
}
ssl_cert = </etc/dovecot/certificate/dovecot.pem
ssl_key = </etc/dovecot/certificate/dovecot.key
userdb {
  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  driver = static
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /var/log/dovecot-deliver.log
  mail_plugins = sieve
}

При попытке

telnet localhost 25 
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

В логах

  
postfix/smtpd[22855]: fatal: no SASL authentication mechanisms
postfix/master[19133]: warning: process /usr/lib/postfix/smtpd pid 22855 exit status 1
postfix/master[19133]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling


Уже не знаю де рыскать (



Последнее исправление: afteroot (всего исправлений: 5)

Ответ на: комментарий от afteroot

TLS/STARTTLS. Я тебе больше скажу SASL вообще мало клиентов поддерживают.

zloelamo ★★★★
()
3 ноября 2016 г.
Ответ на: комментарий от bass

Да, но уже все заработало! Не помню правда в чем там дело оказалось точно.. Но где-то передавался с логином и доменом, соответственно небыло такого логина.. только убрал @домен .. все заработало!

afteroot
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.