The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
linux+postfix+sasl, !*! Alessandro1991, 14-Июл-18, 22:18  [смотреть все]
Здравствуйте!
не могу поладить sasl.
выдает ошибку
fatal: no SASL authentication mechanisms

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

append_dot_mydomain = no
readme_directory = no

smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_cert_file = /etc/ssl/certs/server.pem
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = debian.test.ru
myorigin = $myhostname
mydestination = localhost

mailbox_size_limit = 16252928000
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/sql/virtual-mailbox-domains.cf

virtual_mailbox_maps = mysql:/etc/postfix/sql/virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/sql/virtual-alias-maps.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

smtpd_sender_restriction = permit_mynetworks,
                           check_sender_access mysql:/etc/postfix/mysql-sender.cf,
                           reject_unknown_sender_domain,
                           reject_unverified_sender,
                           reject

smtpd_client_restriction = permit_mynetworks,
                           reject


smtpd_recipient_restrictions = permit_sasl_authenticated,
                               permit_mynetworks,
                               reject_unauth_destination,
                               reject_non_fqdn_hostname,
                               reject_non_fqdn_sender,
                               reject_non_fqdn_recipient,
                               reject_unauth_pipelining,
                               reject_invalid_hostname,
                               check_policy_service inet:127.0.0.1:10023,
                               check_sender_access hash:/etc/postfix/sender_access,
                               check_helo_access hash:/etc/postfix/helo_access,
                               permit
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,
                          permit_sasl_authenticated,
                          reject_invalid_hostname,
                          reject_non_fqdn_hostname,
                          reject_unknown_hostname,
                          permit
smtpd_delay_reject = yes
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, permit

mynetworks = 127.0.0.0/8 172.16.0.0/22 172.17.0.0/22 192.168.4.0/24 192.168.5.0/24 192.168.6.0/24 192.168.7.0/24 192.168.8.0/24 192.168.9.0/24

message_size_limit = 31457280

recieve_override_options = no_address_mappingsaddress_verify_sender
address_verify_sender =$double_bounce_sender
default_process_limit = 150

compatibility_level = 2

и в dovecot \ 10-master.conf

auth_mechanisms = plain cram-md5

unix_listener /var/spool/postfix/private/auth {
       mode = 0660
     user = postfix
        group = postfix

  }

}

  • linux+postfix+sasl, !*! wizard22, 11:19 , 15-Июл-18 (1)
    Sendmail, postfix и другие почтовые серверы (не все, конечно) имеют в своем составе только реализацию SASL клиента. Для использования SASL нужно иметь внешний сервис SASL (SASL сервер).
    Проверьте, что вы установили все нужные пакеты и сервис SASL запущен.
    Ну, и есть google в помощь как обычно.
    Успехов.
  • linux+postfix+sasl, !*! fantom, 11:02 , 16-Июл-18 (2)
    >[оверквотинг удален]
    > default_process_limit = 150
    > compatibility_level = 2
    > и в dovecot \ 10-master.conf
    > auth_mechanisms = plain cram-md5
    > unix_listener /var/spool/postfix/private/auth {
    >        mode = 0660
    >      user = postfix
    >         group = postfix
    >   }
    > }

    постфикс по дефолту ищет cyrus-sasl, а не doveot.
    вы точно постфиксу объяснили, что ходить надо к довекоту???

  • linux+postfix+sasl, !*! ann none, 11:56 , 16-Июл-18 (3)
    Для начала проверьте собран ли postfix с поддержкой аутентификации в dovecot.
    Что скажет postconf -a.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру