Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Ошибка dovecot - fatal: no sasl authentication mechanisms  (Прочитано 15493 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Ошибка dovecot - fatal: no sasl authentication mechanisms
« : 25 Октября 2012, 14:38:35 »
День добрый.
поставил ubuntu server 12.10

Пытаюсь настроить postfix+dovecot в связке с mysql , письма с сервера отправляются, а вот на приём не работает. в логах ошибка - fatal: no sasl authentication mechanisms , много гуглил, везде пути решения разные, в частности - прописать прямой путь до /var/run/dovecot/ к примеру, но заходя по указанному пути я вижу что папки dovecot в run нету, хотя служба запущена.
Так же в конфигах встречаются path= /var/spool/postfix/private/auth , так в private никакого auth тоже нету, так и должно быть? 
Может быть какой-то пакет не установлен, или я не понимаю просто чего-то..

Оффлайн kom-pik

  • Любитель
  • *
  • Сообщений: 88
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #1 : 25 Октября 2012, 14:54:11 »

Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #2 : 25 Октября 2012, 15:28:11 »
main.cf

#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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 = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.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 = pm.mydomain.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
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,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
#smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
html_directory = /usr/share/doc/postfix/html


master

# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#dnsblog   unix  -       -       -       -       0       dnsblog
#tlsproxy  unix  -       -       -       -       0       tlsproxy
#submission inet n       -       -       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o syslog_name=postfix/smtps
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
## and other message envelope options.
# ====================================================================
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

dovecot unix - n n - - pipe

  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}



Dovecot
protocols = pop3 imap

disable_plaintext_auth = no

mail_location = maildir:/home/vmail/%d/%n


namespace {
    type=private

    separator = .

    prefix = INBOX.

    inbox = yes

}

#mechanisms = plain login

passdb sql {

    args = /etc/dovecot/dovecot-sql.conf

}

userdb static {

    args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes

}
# edit conf.d/master.conf.
listen = *, ::

# Base directory where to store runtime data.
base_dir = /var/run/dovecot/

#10-auth.conf
disable_plaintext_auth = yes

#10-master.conf
service pop3-login {
  inet_listener pop3 {
    #port = 110
  }
  inet_listener pop3s {
    #port = 995
    #ssl = yes
  }
}

service lmtp {
  unix_listener lmtp {
    #mode = 0666
  }

  # Create inet listener only if you can't use the above UNIX socket
  #inet_listener lmtp {
    # Avoid making LMTP visible for the entire internet
    #address =
    #port =
  #}
service imap-login {
  inet_listener imap {
    #port = 143
  }
  inet_listener imaps {
    #port = 993
    #ssl = yes
  }

#15-lda.conf
protocol lda {
  # Space separated list of plugins to load (default is global mail_plugins).
  #mail_plugins = $mail_plugins

  log_path = /home/vmail/dovecot-deliver.log

  auth_socket_path = /var/run/dovecot/auth-master

  postmaster_address = postmaster@pm.host.ru

 # global_script_path = /home/vmail/globalsieverc


}



Что-то ещё наверно менял, но уже не помню..
« Последнее редактирование: 26 Октября 2012, 14:21:53 от jazzon »

Оффлайн Karl500

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 2267
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #3 : 25 Октября 2012, 16:11:34 »
Если в postfix указано
smtpd_sasl_path = private/authэто значит, что postfix ожидает увидеть сокет в директории /var/spool/postfix/private/auth
Соответственно, в dovecot.conf в разделе "auth default { socket listen { client {" должно быть указано
      path = /var/spool/postfix/private/auth
      user = postfix
      group = postfix
      mode = 0660
« Последнее редактирование: 25 Октября 2012, 16:13:50 от Karl500 »

Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #4 : 26 Октября 2012, 12:54:41 »
переделал..
Система всё равно не фурычит :-\

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-17-generic i686 Ubuntu 12.10 ext4
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
first_valid_uid = 150
last_valid_uid = 150
mail_gid = vmail
mail_location = maildir:/var/vmail/%d/%n
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational re$
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  separator = .
  type = private
}
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  separator = .
  type = private
}
namespace inbox {
  location =
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = passwd-file
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = pop3 imap
service auth {
  unix_listener /var/spool/postfix/private/auth {
  group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0600
    user = vmail
  }
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  driver = passwd-file
}
userdb {
  driver = passwd
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  log_path = /home/vmail/dovecot-deliver.log
}


# 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 (Ubuntu)
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 = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.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

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

myhostname = pm.host.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
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,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
#smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
html_directory = /usr/share/doc/postfix/html



В логах ошибки..
Oct 26 14:26:37 pm postfix/smtpd[5186]: connect from forward17.mail.yandex.net[95.108.253.142]
Oct 26 14:26:37 pm postfix/smtpd[5186]: warning: SASL: Connect to /var/run/dovecot/auth-client failed: No such file or directory
Oct 26 14:26:37 pm postfix/smtpd[5186]: fatal: no SASL authentication mechanisms
Oct 26 14:26:38 pm postfix/master[2812]: warning: process /usr/lib/postfix/smtpd pid 5186 exit status 1
Oct 26 14:26:38 pm postfix/master[2812]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct 26 14:28:18 pm postfix/anvil[5188]: statistics: max connection rate 1/60s for (smtp:95.108.253.142) at Oct 26 14:26:37
Oct 26 14:28:18 pm postfix/anvil[5188]: statistics: max connection count 1 for (smtp:95.108.253.142) at Oct 26 14:26:37
Oct 26 14:28:18 pm postfix/anvil[5188]: statistics: max cache size 1 at Oct 26 14:26:37
Oct 26 14:30:02 pm postfix/pickup[5091]: 6047B3A03DF: uid=33 from=<www-data>
Oct 26 14:30:02 pm postfix/cleanup[5562]: 6047B3A03DF: message-id=<20121026083002.6047B3A03DF@pm.host.ru>
Oct 26 14:30:02 pm postfix/qmgr[2816]: 6047B3A03DF: from=<www-data@pm.host.ru>, size=932, nrcpt=1 (queue active)
Oct 26 14:30:02 pm postfix/pipe[5571]: 6047B3A03DF: to=<root@pm.host.ru>, orig_to=<root>, relay=dovecot, delay=0.26, delays=0.16/0.01/0/0.09, dsn=5.1.1, status=bounced (user unknown)
Oct 26 14:30:02 pm postfix/cleanup[5562]: 8D29A3A03E1: message-id=<20121026083002.8D29A3A03E1@pm.host.ru>
Oct 26 14:30:02 pm postfix/qmgr[2816]: 8D29A3A03E1: from=<>, size=2708, nrcpt=1 (queue active)
Oct 26 14:30:02 pm postfix/bounce[5573]: 6047B3A03DF: sender non-delivery notification: 8D29A3A03E1
Oct 26 14:30:02 pm postfix/qmgr[2816]: 6047B3A03DF: removed
Oct 26 14:30:02 pm postfix/pipe[5571]: 8D29A3A03E1: to=<www-data@pm.host.ru>, relay=dovecot, delay=0.13, delays=0.07/0/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Oct 26 14:30:02 pm postfix/qmgr[2816]: 8D29A3A03E1: removed


проблема с правами доступа остаётся, если я правильно понимаю. если теперь есть файл /var/run/dovecot/auth-client, то какие права доступа надо выставить? я пробовал даже 777, но это не решает проблему

Оффлайн kom-pik

  • Любитель
  • *
  • Сообщений: 88
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #5 : 26 Октября 2012, 13:02:29 »
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot

auth default {
mechanisms = plain login
}
socket listen {
   client {
     path = /var/spool/postfix/private/auth
     mode = 0660
     user = postfix
     group = postfix
   }
}

Оффлайн Karl500

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 2267
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #6 : 26 Октября 2012, 13:03:48 »
Oct 26 14:26:37 pm postfix/smtpd[5186]: warning: SASL: Connect to /var/run/dovecot/auth-client failed: No such file or directory


Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #7 : 26 Октября 2012, 14:21:30 »
Зашевелилось!
Объясните ещё пожалуйста, после перезапуска postfix и dovecot содержимое папки /var/run/dovecot наследует права 600 и хозяин становится root.  как запустить сервисы чтоб не возникало ошибок доступа ?
Oct 26 16:01:48 lda: Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +r perm: /var/$
Oct 26 16:01:48 lda: Fatal: Internal error occurred. Refer to server log for more information.

И почта я так понимаю не проходит на сервер, судя по логам, не понимаю по чему.

Oct 26 16:01:48 pm postfix/qmgr[7812]: 1FB663A09A9: from=<me@ya.ru>, size=1552, nrcpt=1 (queue active)
Oct 26 16:01:48 pm postfix/pipe[7935]: 1FB663A09A9: to=<postmaster@pm.host.ru>, relay=dovecot, delay=310, delays=310/0.02/0/0.1, dsn=4.3.0, status=deferred (temporary failure)
Oct 26 16:02:54 pm postfix/anvil[7828]: statistics: max connection rate 1/60s for (smtp:95.108.253.142) at Oct 26 15:57:47
Oct 26 16:02:54 pm postfix/anvil[7828]: statistics: max connection count 1 for (smtp:95.108.253.142) at Oct 26 15:57:47
Oct 26 16:02:54 pm postfix/anvil[7828]: statistics: max cache size 2 at Oct 26 15:57:59

в /var/vmail пусто  :idiot2:,

Я может быть вообще нубовские вопросы задаю, прошу понять и простить  ::)

Оффлайн kom-pik

  • Любитель
  • *
  • Сообщений: 88
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #8 : 26 Октября 2012, 15:39:37 »
socket listen {

master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}

client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
покажи
ls -al /var/run/dovecot/

Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #9 : 29 Октября 2012, 08:24:54 »
/svn/redmine/apps/redmine/htdocs# ls -al /var/run/dovecot/
итого 8
drwsrwsrwx  4 dovecot vmail 560 окт.  26 16:14 .
drwxr-xr-x 26 root    root  820 окт.  29 09:56 ..
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 anvil
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 anvil-auth-penalty
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 auth-client
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 auth-login
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 auth-master
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 auth-userdb
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 auth-worker
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 config
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 dict
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 director-admin
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 dns-client
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 doveadm-server
lrwxrwxrwx  1 dovecot vmail  25 окт.  26 16:14 dovecot.conf -> /etc/dovecot/dovecot.conf
drwsrwsrwx  2 dovecot vmail  40 окт.  26 16:14 empty
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 indexer
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 indexer-worker
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 ipc
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 log-errors
drwsrwsrwx  2 dovecot vmail 160 окт.  26 16:14 login
-rwxrwxrwx  1 dovecot vmail   4 окт.  26 16:14 master.pid
-rwxrwxrwx  1 dovecot vmail  21 окт.  26 16:14 mounts
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 replication-notify
prwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 replication-notify-fifo
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 replicator
srwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 stats
prwxrwxrwx  1 dovecot vmail   0 окт.  26 16:14 stats-mail


Сечас все письма отправленные на серер возвращаются со статусом либо
Action: failed
Status: 5.1.1
Diagnostic-Code: x-unix; user unknown

либо

user unknown in virtual mailbox

Oct 29 11:02:03 pm postfix/smtpd[2635]: connect from forward8.mail.yandex.net[77.88.61.38]
Oct 29 11:02:03 pm postfix/smtpd[2635]: NOQUEUE: reject: RCPT from forward8.mail.yandex.net[77.88.61.38]: 550 5.1.1 <root@pm.host.ru>: Recipient address rejected: User unknown in virtual mailbox table; from=<*.ya.ru> to=<root@pm.host.ru> proto=ESMTP helo=<forward8.mail.yandex.net>
Oct 29 11:02:03 pm postfix/smtpd[2635]: disconnect from forward8.mail.yandex.net[77.88.61.38]


непонимаю почему говорит  "User unknown in virtual mailbox table"
когда
mysql> select * from virtual_users;
+----+-----------+----------------------+----------------------------------+
| id | domain_id | user                 | password                         |
+----+-----------+----------------------+----------------------------------+
|  2 |         2 | postmaster           | e9d02c2b06de38e1f1969453b1d7f083 |
|  4 |         2 | root                 | 81dc9bdb52d04dc20036dbd8313ed055 |

dovecot_mysql.conf так выглядит
driver = mysql

connect = host=127.0.0.1 dbname=mailserver user=mailuser password=pass

default_pass_scheme = PLAIN-MD5

password_query = SELECT email as user, password FROM view_users WHERE email='%u';



Вроде бы решилось , написанием mydestination = localhost, $mydomain, $myhostname , изначально пусто было

Пользователь решил продолжить мысль 29 Октября 2012, 14:24:53:
Теперь не выходит авторизоваться. Весь день уже проковырялся, так и не понял.

В логах - sasl login authentication failed: UGFzc3dvcmQ6.

Авторизоваться через telnet, используя реквизиты из Mysql view_users тоже никак не выходит.

пробывал дописать в dovecot_mysql default_pass_scheme=plain_md5 - не помогло.

куда ещё смотреть - не понимаю.


 
« Последнее редактирование: 29 Октября 2012, 14:24:53 от jazzon »

Оффлайн kom-pik

  • Любитель
  • *
  • Сообщений: 88
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #10 : 29 Октября 2012, 14:42:34 »
логирование увеличь

Оффлайн jazzon

  • Автор темы
  • Новичок
  • *
  • Сообщений: 15
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #11 : 29 Октября 2012, 15:31:41 »
логирование увеличь
эм?
Oct 29 17:10:01 pm postfix/pickup[8025]: D4A043A0E6C: uid=33 from=<www-data>
Oct 29 17:10:01 pm postfix/cleanup[8766]: D4A043A0E6C: message-id=<20121029111001.D4A043A0E6C@pm.host.ru>
Oct 29 17:10:01 pm postfix/qmgr[8026]: D4A043A0E6C: from=<www-data@pm.host.ru>, size=932, nrcpt=1 (queue active)
Oct 29 17:10:01 pm postfix/local[8775]: D4A043A0E6C: to=<root@pm.host.ru>, orig_to=<root>, relay=local, delay=0.18, delays=0.12/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 29 17:10:01 pm postfix/qmgr[8026]: D4A043A0E6C: removed
Oct 29 17:16:31 pm dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Oct 29 17:16:31 pm dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Oct 29 17:16:31 pm dovecot: auth: Debug: passwd-file /etc/dovecot/dovecot-sql.conf: Read 4 users in 0 secs
Oct 29 17:16:31 pm dovecot: auth: Debug: auth client connected (pid=8776)
Oct 29 17:16:31 pm dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=pop3#011session=Lw8xzTDNxgC8SazC#011lip=62.168.255.42#011rip=188.73.172.194#011lport=110#011rport=34246#011resp=AHJvb3QAMTIzNA==
Oct 29 17:16:31 pm dovecot: auth: Debug: passwd-file(root,188.73.172.194,<Lw8xzTDNxgC8SazC>): lookup: user=root file=/etc/dovecot/dovecot-sql.conf
Oct 29 17:16:31 pm dovecot: auth: passwd-file(root,188.73.172.194,<Lw8xzTDNxgC8SazC>): unknown user
Oct 29 17:16:31 pm dovecot: auth-worker(8780): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Oct 29 17:16:31 pm dovecot: auth-worker(8780): Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Oct 29 17:16:31 pm dovecot: auth-worker(8780): Debug: passwd-file /etc/dovecot/dovecot-sql.conf: Read 4 users in 0 secs
Oct 29 17:16:31 pm dovecot: auth-worker(8780): Debug: pam(root,188.73.172.194): lookup service=dovecot
Oct 29 17:16:31 pm dovecot: auth-worker(8780): Debug: pam(root,188.73.172.194): #1/1 style=1 msg=Password:
Oct 29 17:16:33 pm dovecot: auth-worker(8780): pam(root,188.73.172.194): pam_authenticate() failed: Authentication failure (password mismatch?) (given password: 1234)
Oct 29 17:16:35 pm dovecot: auth: Debug: client out: FAIL#0111#011user=root
Oct 29 17:16:35 pm dovecot: pop3-login: Disconnected (auth failed, 1 attempts in 4 secs): user=<root>, method=PLAIN, rip=188.73.172.194, lip=62.168.255.42, session=<Lw8xzTDNxgC8SazC>
Oct 29 17:20:02 pm postfix/pickup[8025]: 45FB13A0E6C: uid=33 from=<www-data>
Oct 29 17:20:02 pm postfix/cleanup[8798]: 45FB13A0E6C: message-id=<20121029112002.45FB13A0E6C@pm.host.ru>
Oct 29 17:20:02 pm postfix/qmgr[8026]: 45FB13A0E6C: from=<www-data@pm.host.ru>, size=932, nrcpt=1 (queue active)
Oct 29 17:20:02 pm postfix/local[8807]: 45FB13A0E6C: to=<root@pm.host.ru>, orig_to=<root>, relay=local, delay=0.19, delays=0.13/0.01/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 29 17:20:02 pm postfix/qmgr[8026]: 45FB13A0E6C: removed

Пользователь решил продолжить мысль 30 Октября 2012, 08:21:15:
dovecot.info Говорит
Oct 30 10:57:34 pop3-login: Info: Disconnected (auth failed, 1 attempts in 5 secs): user=<root@pm.host.ru>, method=PLAIN, rip=188.73.172.194, lip=62.168.255.42, session=<ttKHnz/NIgC8SazC>
Oct 30 10:57:36 auth: Debug: auth client connected (pid=0)
Oct 30 10:57:36 auth: Debug: client in: AUTH    1       LOGIN   service=smtp    nologin lip=62.168.255.42       rip=188.73.172.194      secured
Oct 30 10:57:40 auth: Debug: client out: CONT   1       VXNlcm5hbWU6
Oct 30 10:57:40 auth: Debug: client in: CONT<hidden>
Oct 30 10:57:40 auth: Debug: client out: CONT   1       UGFzc3dvcmQ6
Oct 30 10:57:40 auth: Debug: client in: CONT<hidden>
Oct 30 10:57:40 auth: Debug: passwd-file(root@pm.host.ru,188.73.172.194): lookup: user=root@pm.host.ru file=/etc/dovecot/dovecot-sql.conf
Oct 30 10:57:40 auth: Info: passwd-file(root@pm.host.ru,188.73.172.194): unknown user
Oct 30 10:57:40 auth-worker(13145): Debug: pam(root@pm.host.ru,188.73.172.194): lookup service=dovecot
Oct 30 10:57:40 auth-worker(13145): Debug: pam(root@pm.host.ru,188.73.172.194): #1/1 style=1 msg=Password:
Oct 30 10:57:42 auth-worker(13145): Info: pam(root@pm.host.ru,188.73.172.194): pam_authenticate() failed: Authentication failure (password mismatch?)
Oct 30 10:57:44 auth: Debug: client out: FAIL   1       user=root@pm.host.ru

хотя юзер есть в базе такой..
« Последнее редактирование: 30 Октября 2012, 09:00:33 от jazzon »

Оффлайн mazgarov

  • Новичок
  • *
  • Сообщений: 1
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #12 : 26 Марта 2013, 19:54:27 »
Извените за странный вопрос, но проблема все еще актуально? У меня была подобная проблема, но каким то образом методом тыка я эту проблему устранил. Если интересно дайте знать. Писать долго, а я тут вижу что уже давно ни кто не обсуждает этот вопрос.

Оффлайн greshink

  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #13 : 09 Мая 2013, 12:30:43 »
Да актуальна! Не могу разобраться самостоятельно. Может ваши действия подойдут в моем случае?

Оффлайн sorbent

  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Ошибка dovecot - fatal: no sasl authentication mechanisms
« Ответ #14 : 03 Июня 2013, 23:40:21 »
Я тоже пришел с аналогичным вопросом — не создается сокет "private/auth".
В папке "/var/spool/postfix/private" не создается "auth".

Jun  3 05:35:20 ubuntu1 postfix/smtpd[21837]: Anonymous TLS connection established from unknown[192.168.0.105]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Jun  3 05:35:20 ubuntu1 postfix/smtpd[21837]: warning: SASL: Connect to private/auth failed: No such file or directory
Jun  3 05:35:20 ubuntu1 postfix/smtpd[21837]: fatal: no SASL authentication mechanisms
Jun  3 05:35:21 ubuntu1 postfix/master[21811]: warning: process /usr/lib/postfix/smtpd pid 21837 exit status 1
Уже даже и не знаю куда смотреть. В инете миллион конфигураций, но все они не работают. Помогите, кто чем может.

Версия Dovecot = 1.2.9. , версия Postfix = 2.7.0.

Уже все настроил: POP3(S) и IMAP(S) и отправку шифрованную и relay, — а вот проверку по паролю никак не могу из-за Давкота.

 

Страница сгенерирована за 0.102 секунд. Запросов: 26.