Страница 1 из 1
Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2012-03-01 23:18:16
xamen
Добрый вечер.
Я впервые занялся МТА и никак не получается завести Postfix. Все установлено на Debian_60_squeeze. И вот выдает следующую ошибку:
Код: Выделить всё
Mar 1 20:54:38 mail postfix/smtpd[24427]: fatal: no SASL authentication mechanisms
Mar 1 21:01:25 mail dovecot: auth(default): Error in configuration file /etc/dovecot/dovecot-sql.conf line 5: Unknown setting: dbname
Mar 1 21:01:25 mail dovecot: dovecot: Fatal: Auth process died too early - shutting down
Mar 1 21:02:37 mail postfix/smtpd[24485]: fatal: no SASL authentication mechanisms
Mar 1 21:04:39 mail postfix/smtpd[24500]: fatal: no SASL authentication mechanisms
Конфиг main.cf:
Код: Выделить всё
#myorigin = $mydomain
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
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 = mail.mmrf.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $mydomain, $myhostname
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_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_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destination
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2012-03-02 0:14:49
Electronik
причём тут main.cf
если ошибка в /etc/dovecot/dovecot-sql.conf line 5: Unknown setting: dbname
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2012-03-02 8:19:06
xamen
Не зависимо от ошибок Dovecot происходит конкретная ошибка в Postfix, т.е. ошибка fatal: no SASL authentication mechanisms появилась еще до запуска Dovecot. Меня именно эта ошибка интересует или они как-то могут быть связаны?
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2012-03-02 8:55:31
moury
Перед тем, как исправлять ошибки в конфигурации dovecot, отключите авторизацию в postfix.
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2012-03-03 17:48:08
xamen
Итак все вроде подправил теперь осталась только одна ошибка из-за которой тему и открывал.
Вот логи mail.err
Код: Выделить всё
Mar 3 15:16:01 mail postfix/smtpd[1410]: fatal: no SASL authentication mechanisms
Mar 3 15:17:22 mail postfix/smtpd[1417]: fatal: no SASL authentication mechanisms
Mar 3 15:18:43 mail postfix/smtpd[1418]: fatal: no SASL authentication mechanisms
mail.warn
Код: Выделить всё
Mar 3 15:18:43 mail postfix/smtpd[1418]: fatal: no SASL authentication mechanisms
Mar 3 15:18:44 mail postfix/master[1350]: warning: process /usr/lib/postfix/smtpd pid 1418 exit status 1
Mar 3 15:18:44 mail postfix/master[1350]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Mar 3 15:20:52 mail dovecot: dovecot: Killed with signal 15 (by pid=1525 uid=0 code=kill)
P.S.Буду рад любой помощи.
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2013-03-18 0:56:47
Konstantin124
Стоит Ubuntu 12.10+Postfix+Dovecot 2.1.7
mail.err выдает ошибки:
Mar 17 11:08:29 da postfix/smtpd[3263]: fatal: no SASL authentication mechanisms
Mar 17 11:08:29 da dovecot: master: Error: service(auth): command startup failed, throttling for 60 secs
postfix/main.cfg
Код: Выделить всё
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
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 = da.rs
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = da.rs, localhost.rs, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
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_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
postfix/master.cfg
Код: Выделить всё
# Postfix master process configuration file.
#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
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)
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.conf
Код: Выделить всё
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-25-generic i686 Ubuntu 12.10 ext3
auth_mechanisms = plain login
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
mail_privileged_group = mail
namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}
namespace inbox {
inbox = yes
location =
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
passdb {
driver = pam
}
protocols = imap pop3
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/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
driver = passwd
}
userdb {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
driver = static
}
userdb {
driver = passwd
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
log_path = /home/vmail/dovecot-deliver.log
postmaster_address = postmaster@da.rs
}
dovecot-sql.conf
Код: Выделить всё
# This file is opened as root, so it should be owned by root and mode 0600.
driver = mysql
connect = host=127.0.0.1 dbname=mailserver user=mailuser password=правильный пароль
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM view_users WHERE email='%u';
Прошу помощи уважаемого сообщества. Сам я только учусь.
Re: Postfix+dovecot: Ошибка SASL authentication mechanisms
Добавлено: 2013-03-18 11:10:21
Konstantin124