Мужики подскажите в каком направлении копать?
Собрал postfix с поддержкой SASL.
Когда авторизируюсь с помощью The BAT в логе warnings следующее:
#cat warnings
Aug 23 02:13:02 gw postfix/smtpd[20452]: warning: SASL authentication failure: OTP: auxprop backend can't store properties Aug 23 02:13:10 gw postfix/smtpd[20452]: warning: SASL authentication failure: no secret in database Aug 23 02:13:10 gw postfix/smtpd[20452]: warning: stels.lancronix.ru[192.168.100.4]: SASL CRAM-MD5 authentication failed Aug 23 02:13:11 gw postfix/smtpd[20452]: warning: SASL authentication failure: Password verification failed Aug 23 02:13:11 gw postfix/smtpd[20452]: warning: stels.lancronix.ru[192.168.100.4]: SASL PLAIN authentication failed
/usr/lib/sasl2/smtpd.conf
allowplaintext: yes
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login
sql_engine: mysql
sql_hostnames: localhost
sql_user: postf
sql_passwd: pass
sql_database: mail
sql_select: SELECT password FROM aliases WHERE alias='%u@%r';
/etc/postfix/main.cf
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
html_directory = /etc/postfix/html_dir
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = /etc/postfix/readme_dir
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
smtpd_banner = :-)
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
mailq_path = /usr/bin/mailq
setgid_group = postdrop
mail_owner = postfix
default_privs = nobody
myhostname = mydomain.ru
mydomain = mydomain.ru
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = xxx.x.xx.xx, 127.0.0.0/8, 192.168.100.0/24
alias_maps = mysql:/etc/postfix/aliases.cf
alias_database = mysql:/etc/postfix/aliases.cf
broken_sasl_auth_clients = yes
transport_maps = mysql:/etc/postfix/transport.cf
virtual_mailbox_base = /
virtual_uid_maps = mysql:/etc/postfix/ids.cf
virtual_gid_maps = mysql:/etc/postfix/gids.cf
virtual_mailbox_maps = mysql:/etc/postfix/aliases.cf
virtual_maps = mysql:/etc/postfix/remote_aliases.cf
relay_domains = $transport_maps
enable_sasl_authentication = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd.conf
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, check_relay_domains
smtpd_etrn_restrictions = permit_mynetworks, reject
disable_vrfy_command = yes