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

Исходное сообщение
"Postfix + Dovecot авторизация passwd:unknown user"

Отправлено Frag , 06-Ноя-10 13:45 
Настроен postfix(2.3.3) + dovecot(1.0.7), почту забирает нормально, авторизация проходит, при попытке послать письмо выдает unknown user.
Заметил, что при авторизации по POP в качестве имени пользователя посылается user, а при авторизации SMTP посылается user@mydomen.ru, соответственно в системных пользователях user@mydomen.ru нет... Скорее всего тут затык. Где это можно поправить?
SMTP dovecot: Nov 06 13:42:37 Info: auth(default): passwd(user@mydomen.ru): lookup
POP  dovecot: Nov 06 13:36:51 Info: auth(default): passwd(user,192.168.255.1): lookup

postconf -n

address_verify_sender = <>
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 536870912
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mydomen.ru
myhostname = mail.mydomen.ru
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_always_send_ehlo = yes
smtpd_banner = $myhostname
smtpd_client_restrictions = permit_mynetworks,permit_sasl_authenticated,check_client_access regexp:/etc/postfix/dul_checks,reject_rbl_client zen.spamhaus.org,reject_rbl_client cbl.abuseat.org,reject_rbl_client combined.njabl.org,reject_rbl_client dul.ru,reject_rbl_client dnsbl.njabl.ru,reject_rbl_client work.drbl.caravan.ru,reject_unauth_pipelining,permit
smtpd_delay_reject = yes
smtpd_etrn_restrictions = reject
smtpd_hard_error_limit = 8
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,check_helo_access regexp:/etc/postfix/helo_regexp,check_helo_access regexp:/etc/postfix/dul_checks,reject_non_fqdn_hostname,reject_unknown_hostname,reject_invalid_hostname,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks,permit_sasl_authenticated,check_sender_access regexp:/etc/postfix/sender_access,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unverified_sender,permit
strict_rfc821_envelopes = yes
unknown_local_recipient_reject_code = 550


dovecot -n

# 1.0.7: /etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
protocols: pop3 pop3s
listen: *:110
ssl_listen: *:995
ssl_cipher_list: ALL:!LOW:!SSLv2
disable_plaintext_auth: yes
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/pop3-login
login_greeting: Greetings...
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable: /usr/libexec/dovecot/pop3
mail_plugin_dir: /usr/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug_passwords: yes
  passdb:
    driver: pam
    args: dovecot
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: dovecot
      group: dovecot

cat dovecot.log

dovecot: Nov 06 13:36:51 Info: auth(default): client in: AUTH   1       PLAIN   service=POP3    secured lip=192.168.255.4       rip=192.168.255.1       resp=AGEucGVybWlub3YAMTExMTEx
dovecot: Nov 06 13:36:51 Info: auth(default): pam(user,192.168.255.1): lookup service=dovecot
dovecot: Nov 06 13:36:51 Info: auth(default): client out: OK    1       user=user
dovecot: Nov 06 13:36:51 Info: auth(default): master in: REQUEST        2       1906    1
dovecot: Nov 06 13:36:51 Info: auth(default): passwd(user,192.168.255.1): lookup
dovecot: Nov 06 13:36:51 Info: auth(default): master out: USER  2       user      system_user=user  uid=500 gid=514 home=/home/user
dovecot: Nov 06 13:36:51 Info: POP3(user): Effective uid=500, gid=514
dovecot: Nov 06 13:36:51 Info: POP3(user): maildir: data=/home/user/Maildir
dovecot: Nov 06 13:36:51 Info: POP3(user): maildir: root=/home/user/Maildir, index=/home/user/Maildir, control=, inbox=
dovecot: Nov 06 13:36:51 Info: pop3-login: Login: user=<user>, method=PLAIN, rip=192.168.255.1, lip=192.168.255.4, TLS
dovecot: Nov 06 13:36:51 Info: POP3(user): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
dovecot: Nov 06 13:42:36 Info: auth(default): new auth connection: pid=2041
dovecot: Nov 06 13:42:36 Info: auth(default): client in: AUTH   1       LOGIN   service=smtp
dovecot: Nov 06 13:42:36 Info: auth(default): client out: CONT  1       VXNlcm5hbWU6
dovecot: Nov 06 13:42:36 Info: auth(default): client in: CONT   1       YS5wZXJtaW5vdg==
dovecot: Nov 06 13:42:36 Info: auth(default): client out: CONT  1       UGFzc3dvcmQ6
dovecot: Nov 06 13:42:37 Info: auth(default): client in: CONT   1       MTExMTEx
dovecot: Nov 06 13:42:37 Info: auth(default): pam(user): lookup service=dovecot
dovecot: Nov 06 13:42:37 Info: auth(default): client out: OK    1       user=user
dovecot: Nov 06 13:42:37 Info: auth(default): master in: USER   1       user@mydomen.ru  service=deliver
dovecot: Nov 06 13:42:37 Info: auth(default): passwd(user@mydomen.ru): lookup
dovecot: Nov 06 13:42:37 Info: auth(default): passwd(user@mydomen.ru): unknown user
dovecot: Nov 06 13:42:37 Info: auth(default): master out: NOTFOUND      1
dovecot: Nov 06 13:42:37 Info: auth(default): master in: USER   1       user@mydomen.ru  service=deliver
dovecot: Nov 06 13:42:37 Info: auth(default): passwd(user@mydomen.ru): lookup
dovecot: Nov 06 13:42:37 Info: auth(default): passwd(user@mydomen.ru): unknown user
dovecot: Nov 06 13:42:37 Info: auth(default): master out: NOTFOUND      1

cat maillog

Nov  6 13:42:36 gate postfix/smtpd[2041]: connect from unknown[192.168.255.1]
Nov  6 13:42:37 gate postfix/smtpd[2041]: 1D82E2D5003F: client=unknown[192.168.255.1], sasl_method=LOGIN, sasl_username=user
Nov  6 13:42:37 gate postfix/cleanup[2046]: 1D82E2D5003F: message-id=<009601cb7d9e$c32a1190$068e1009@frag>
Nov  6 13:42:37 gate postfix/qmgr[1820]: 1D82E2D5003F: from=<user@mydomen.ru>, size=13524, nrcpt=1 (queue active)
Nov  6 13:42:37 gate postfix/pipe[2048]: 1D82E2D5003F: to=<user@mydomen.ru>, relay=dovecot, delay=0.13, delays=0.11/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Nov  6 13:42:37 gate postfix/cleanup[2046]: 32A772D50044: message-id=<20101106104237.32A772D50044@user@mydomen.ru>
Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: from=<>, size=15264, nrcpt=1 (queue active)
Nov  6 13:42:37 gate postfix/bounce[2050]: 1D82E2D5003F: sender non-delivery notification: 32A772D50044
Nov  6 13:42:37 gate postfix/qmgr[1820]: 1D82E2D5003F: removed
Nov  6 13:42:37 gate postfix/pipe[2048]: 32A772D50044: to=<user@mydomen.ru>, relay=dovecot, delay=0.01, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: removed
Nov  6 13:42:37 gate postfix/smtpd[2041]: disconnect from unknown[192.168.255.1]


Содержание

Сообщения в этом обсуждении
"Postfix + Dovecot авторизация passwd:unknown user"
Отправлено Hammer , 10-Ноя-10 01:05 
>[оверквотинг удален]
> Nov  6 13:42:37 gate postfix/cleanup[2046]: 32A772D50044: message-id=<20101106104237.32A772D50044@user@mydomen.ru>
> Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: from=<>, size=15264, nrcpt=1 (queue
> active)
> Nov  6 13:42:37 gate postfix/bounce[2050]: 1D82E2D5003F: sender non-delivery notification:
> 32A772D50044
> Nov  6 13:42:37 gate postfix/qmgr[1820]: 1D82E2D5003F: removed
> Nov  6 13:42:37 gate postfix/pipe[2048]: 32A772D50044: to=<user@mydomen.ru>, relay=dovecot,
> delay=0.01, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
> Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: removed
> Nov  6 13:42:37 gate postfix/smtpd[2041]: disconnect from unknown[192.168.255.1]

Покажи smtpd.conf который в /usr/local/lib/sasl2 лежит.


"Postfix + Dovecot авторизация passwd:unknown user"
Отправлено Frag , 10-Ноя-10 19:56 
>[оверквотинг удален]
>> Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: from=<>, size=15264, nrcpt=1 (queue
>> active)
>> Nov  6 13:42:37 gate postfix/bounce[2050]: 1D82E2D5003F: sender non-delivery notification:
>> 32A772D50044
>> Nov  6 13:42:37 gate postfix/qmgr[1820]: 1D82E2D5003F: removed
>> Nov  6 13:42:37 gate postfix/pipe[2048]: 32A772D50044: to=<user@mydomen.ru>, relay=dovecot,
>> delay=0.01, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
>> Nov  6 13:42:37 gate postfix/qmgr[1820]: 32A772D50044: removed
>> Nov  6 13:42:37 gate postfix/smtpd[2041]: disconnect from unknown[192.168.255.1]
> Покажи smtpd.conf который в /usr/local/lib/sasl2 лежит.

/usr/local/lib/sasl2 не нашел, нашел в /usr/lib/sasl2
[root@gate sasl2]# cat smtpd.conf
pwcheck_method: saslauthd

Разве этот файл не относится к cyrus-sasl? Точнее разве он влияет ан dovecot?