Помогите разобраться с авторизацией smtp сесии, то-етсь что бы при каждой отправки письма вводился пароль у пользователей.
на данный ммоент что происходит.
Код: Выделить всё
cat /etc/postfix/main.cf | grep -v "#"
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.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
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
anvil_rate_time_unit = 300s
smtpd_client_message_rate_limit = 30
smtpd_soft_error_limit = 1
smtpd_error_sleep_time = 15
smtpd_hard_error_limit = 2
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains
myhostname = mail.it.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = it.ru, localhost.ru, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 0.0.0.0/0
mailbox_size_limit = 10240000
recipient_delimiter = +
inet_interfaces = all
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
virtual_mailbox_domains = ee.ru ro.ru er.ru lx.ru
virtual_mailbox_base = /var/spool/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
relay_domains = $mydestination, $virtual_mailbox_domain
Код: Выделить всё
# cat /etc/postfix/master.cf | grep -v "#"
smtp inet n - - - - smtpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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_fallback_relay=
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}
Код: Выделить всё
cat /etc/dovecot/dovecot.conf | grep -v "#" | sed '/./,$!d'
protocols = pop3
disable_plaintext_auth = no
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /etc/postfix/ssl/smtpd.pem
ssl_key_file = /etc/postfix/ssl/smtpd.pem
mail_location = maildir:/var/spool/mail/vhosts/%d/%n
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth_username_format = %Ln@%Ld
auth_debug = yes
auth default {
mechanisms = plain login
passdb passwd-file {
args = /etc/dovecot/passwd
}
userdb passwd-file {
args = /etc/dovecot/users
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/dovecot-auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
Код: Выделить всё
cat /var/log/mail.err
ug 8 20:45:18 infirst postfix/smtpd[4887]: fatal: no SASL authentication mechanisms
Aug 8 20:45:18 infirst postfix/smtpd[4888]: fatal: no SASL authentication mechanisms
Aug 8 20:45:18 infirst postfix/smtpd[4889]: fatal: no SASL authentication mechanisms
Aug 8 20:46:19 infirst postfix/smtpd[5652]: fatal: no SASL authentication mechanisms
Aug 8 20:46:19 infirst postfix/smtpd[5655]: fatal: no SASL authentication mechanisms
Aug 8 20:46:19 infirst postfix/smtpd[5657]: fatal: no SASL authentication mechanisms
Aug 8 20:46:19 infirst postfix/smtpd[5658]: fatal: no SASL authentication mechanisms
Aug 8 20:46:19 infirst postfix/smtpd[5660]: fatal: no SASL authentication mechanisms
Код: Выделить всё
# uname -a
Linux it.ru 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
Помогите пожалуйста разобраться.