Postfix проблемы с аутентификацией в sasldb и mysql
Добавлено: 2011-03-11 21:20:59
Добрый день, система (debian 6.0). Установлено (postfix libsasl2-modules, sasl2-bin, courier-imap, courier-pop) не проходит аутентификация через sasldb и mysql.
вот что делал
1. запускаю сервис "/etc/init.d/saslauthd start"
в процессах висит так
(/usr/sbin/saslauthd -a sasldb -c -m /var/run/saslauthd -n 5)
2. создаю пользователя " saslpasswd2 -c test@test.com"
3. смотрю пользователя в базе " sasldblistusers2 "
4. получаю ответ " test@test.com: userPassword " пока все нормально
5. проверяю " testsaslauthd -u test@test.com -p 123456 "
6. получаю ответ " 0: NO "authentication failed" "
7. в логе auth.log такое содержание ошибки
8. /etc/postfix/sasl/smtpd.conf
9. postconf -n
В логах пишет такое
auth.log
mail.log
Помогите пожалуйста уже незнаю что и делать.... Спасибо всем заранее!
вот что делал
1. запускаю сервис "/etc/init.d/saslauthd start"
в процессах висит так
(/usr/sbin/saslauthd -a sasldb -c -m /var/run/saslauthd -n 5)
2. создаю пользователя " saslpasswd2 -c test@test.com"
3. смотрю пользователя в базе " sasldblistusers2 "
4. получаю ответ " test@test.com: userPassword " пока все нормально
5. проверяю " testsaslauthd -u test@test.com -p 123456 "
6. получаю ответ " 0: NO "authentication failed" "
7. в логе auth.log такое содержание ошибки
Код: Выделить всё
saslauthd[]: do_auth : auth failure: [user=test@test.com] [service=imap] [realm=] [mech=sasldb] [reason=Unknown]
Код: Выделить всё
mech_list: plain login cdram-md5 digest-md
pwcheck_method: saslauthd
Код: Выделить всё
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
disable_vrfy_command = no
home_mailbox = .Maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = $virtual_mailbox_maps $virtual_maps $transport_maps $alias_maps
local_transport = local
mail_owner = postfix
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 51200000
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 20240000
mydestination = effective.com.ua, localhost.$mydomain $mydomain
mydomain = effective.com.ua
myhostname = effective.com.ua
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
relay_domains = $transport_maps
relay_domains_reject_code = 554
sample_directory = /etc/postfix
sendmail_path = /usr/bin/mailq
setgid_group = postdrop
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access_client, reject_unknown_address, reject_unknown_recipient_domain, reject_unknown_sender_domain, reject_unauth_pipelining, reject_rbl_client blackholes.mail-abuse.org, reject_rbl_client dialups.mail-abuse.org, reject_rbl_client dnsbl.njabl.org, reject_rbl_client combined.njabl.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client dnsbl.njabl.org
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_unauth_pipelining, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unknown_address, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client dnsbl.njabl.org, reject_rbl_client dialup.blacklist.jippg.org, reject_rbl_client dialups.mail-abuse.org, reject_rbl_client blackholes.mail-abuse.org, reject_rbl_client combined.njabl.org,
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access_domain, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unknown_address, reject_unauth_pipelining, reject_unlisted_sender, reject_rbl_client sbl-xbl.spamhaus.org reject_rbl_client dnsbl.njabl.org, reject_rbl_client dialup.blacklist.jippg.org, reject_rbl_client dialups.mail-abuse.org,
transport_maps = mysql:/etc/postfix/sql/transport.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/sql/aliases.cf
virtual_gid_maps = mysql:/etc/postfix/sql/gids.cf
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_maps = mysql:/etc/postfix/sql/users.cf
virtual_uid_maps = mysql:/etc/postfix/sql/uids.cf
auth.log
Код: Выделить всё
Mar 11 17:17:57 effective postfix/smtpd[16916]: sql_select option missing
Mar 11 17:17:57 effective postfix/smtpd[16916]: auxpropfunc error no mechanism available
Mar 11 17:17:57 effective postfix/smtpd[16916]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Mar 11 17:24:45 effective postfix/smtpd[16968]: sql_select option missing
Mar 11 17:24:45 effective postfix/smtpd[16968]: auxpropfunc error no mechanism available
Mar 11 17:24:45 effective postfix/smtpd[16968]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Mar 11 17:30:14 effective postfix/smtpd[16985]: sql_select option missing
Mar 11 17:30:14 effective postfix/smtpd[16985]: auxpropfunc error no mechanism available
Mar 11 17:30:14 effective postfix/smtpd[16985]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Mar 11 18:03:50 effective saslpasswd2: sql_select option missing
Mar 11 18:03:50 effective saslpasswd2: auxpropfunc error no mechanism available
Mar 11 18:03:50 effective saslpasswd2: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Код: Выделить всё
Mar 11 17:36:10 effective pop3d: Connection, ip=[::ffff:212.26.158.100]
Mar 11 17:36:10 effective pop3d: LOGIN FAILED, user=info@test.com.ua, ip=[::ffff:212.26.158.100]
Mar 11 17:36:15 effective pop3d: LOGOUT, ip=[::ffff:212.26.158.100]
Mar 11 17:36:15 effective pop3d: Disconnected, ip=[::ffff:212.26.158.100]