URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 96508
[ Назад ]

Исходное сообщение
"postfix+dovecotSASL"

Отправлено AnatoliyB , 19-Мрт-16 20:49 
Доброго времени суток всем!
Почти допилил сервер, но как обычно/назло вылезла еще одна проблема
Никак не получается прикрутить по человечески smtp-авторизацию
(по pop3 dovecot забирает почту как часы при этом)
в main.cf имеем:
<code>
inet_protocols = ipv4

smtpd_sasl_auth_enable = yes
smtpd_sasl_auth_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
#smtpd_sasl_password_maps = mysql:/etc/postfix/mysql-passwd.cf

debug_peer_level = 2
debugger_command =
                   PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
                   xxgdb $daemon_directory/$process_name $process_id & sleep 5
smtpd_client_restrictions =
    permit_sasl_authenticated,
    check_client_access mysql:/etc/postfix/mysql-passwd.cf

smtpd_sender_restrictions =
    permit_sasl_authenticated,
    check_sender_access mysql:/etc/postfix/mysql-passwd.cf

</code>

Запрос логина/пароля к клиентской программе идет,
но smtp авторизация не проходит :)
- даже обращения к dovecot в логах не вижу

Думаю, корень зла именно здесь
<code>
postconf -n
----//----
postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_type=dovecot
----//----
</code>

Подскажите плиз, как бороть :)


Содержание

Сообщения в этом обсуждении
"postfix+dovecotSASL"
Отправлено asavah , 20-Мрт-16 00:42 
а довекот знает что он аутентифицировать должен?
также на права сокетов смотри

у меня так в dovecot.conf:
--------------------------------
service auth {
    unix_listener /var/spool/postfix/private/dovecot-auth {
        user = postfix
        group = postfix
        mode = 0666
    }
    unix_listener auth-master {
        user = vmail
        group = vmail
        mode = 0666
    }
    unix_listener auth-userdb {
        user = vmail
        group = vmail
        mode = 0660
    }
}
---------------------------------
в main.cf у меня так так:
---------------------------------
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth


"postfix+dovecotSASL"
Отправлено PavelR , 20-Мрт-16 05:54 
> postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_type=dovecot

man 5 postconf

smtp_sasl_type (default: cyrus)
       The SASL plug-in type that the  Postfix  SMTP  client  should  use  for
       authentication.


"postfix+dovecotSASL"
Отправлено asavah , 20-Мрт-16 13:30 
http://www.postfix.org/postconf.5.html#smtpd_sasl_type

"postfix+dovecotSASL"
Отправлено asavah , 20-Мрт-16 13:32 
> http://www.postfix.org/postconf.5.html#smtpd_sasl_type
> This feature is available in Postfix 2.3 and later.

осталось выяснить какой версии у ОП postfix


"postfix+dovecotSASL"
Отправлено AnatoliyB , 20-Мрт-16 19:19 
>> http://www.postfix.org/postconf.5.html#smtpd_sasl_type
>> This feature is available in Postfix 2.3 and later.
> осталось выяснить какой версии у ОП postfix

mail_version = 2.11.3


"postfix+dovecotSASL"
Отправлено AnatoliyB , 20-Мрт-16 19:35 
>> postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_type=dovecot
> man 5 postconf
> smtp_sasl_type (default: cyrus)
>        The SASL plug-in type that
> the  Postfix  SMTP  client  should  use
>  for
>        authentication.

PavelR спасибо огромное (что ткнули носом куда надо :)
всего-то надо было писать smtp_sasl_type а не smtp_sasl_auth_type
вот и верь после этого яндексу :)


"postfix+dovecotSASL"
Отправлено PavelR , 20-Мрт-16 22:22 
>>> postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_type=dovecot
>> man 5 postconf
>> smtp_sasl_type (default: cyrus)
>>        The SASL plug-in type that
>> the  Postfix  SMTP  client  should  use
>>  for
>>        authentication.
> PavelR спасибо огромное (что ткнули носом куда надо :)
> всего-то надо было писать smtp_sasl_type а не smtp_sasl_auth_type
> вот и верь после этого яндексу :)

Верить надо оф. документации. ) Затем - исходникам )