Связка Cyrus-sasl, Courier-authlib, Courier-imap, Mysql
Авторизация в клиенте проходит ОК, но отправляемая почта не доходит до адресата, так же и не приходит. Во время отправки:Aug 10 10:48:48 mx1 postfix/smtpd[15913]: warning: 192.168.254.132: hostname krosav4eg.xxx.ru verification failed: hostname nor servname provided, or not known
Aug 10 10:48:48 mx1 postfix/smtpd[15913]: connect from unknown[192.168.254.132]
Aug 10 10:48:48 mx1 postfix/smtpd[15913]: setting up TLS connection from unknown[192.168.254.132]
Aug 10 10:48:48 mx1 postfix/smtpd[15913]: Anonymous TLS connection established from unknown[192.168.254.132]: TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)
Aug 10 10:48:48 mx1 postfix/smtpd[15913]: 43360372517A: client=unknown[192.168.254.132], sasl_method=CRAM-MD5, sasl_username=amigo@xxx.ru
Aug 10 10:48:48 mx1 postfix/cleanup[15917]: 43360372517A: message-id=<4E4229D2.2040009@xxx.ru>
Aug 10 10:48:48 mx1 postfix/qmgr[1275]: 43360372517A: from=<amigo@xxx.ru>, size=583, nrcpt=1 (queue active)
Aug 10 10:48:48 mx1 postfix/pipe[15923]: 43360372517A: to=<amigo@xxx.ru>, relay=maildrop, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via maildrop service)
Aug 10 10:48:48 mx1 postfix/qmgr[1275]: 43360372517A: removed
Aug 10 10:48:48 mx1 postfix/smtpd[15913]: disconnect from unknown[192.168.254.132]
mx1% sudo authtest amigo@xxx.ru
Authentication succeeded.
Authenticated: amigo@xxx.ru (uid 1002, gid 1002)
Home Directory: /home/vmail
Maildir: xxx.ru/amigo/Maildir/
Quota: 50000000
Encrypted Password: (none)
Cleartext Password: xxxxxx
Options: disableimap=0,disablepop3=0,disablewebmail=0,sharedgroup=0
mx1% sudo maildrop -V 5 -d amigo@xxx.ru
Invalid user specified.
Что делать с последним я не знаю.
master.cf
smtp inet n - n - - smtpd
maildrop unix - n n - - pipe
flags=ODRhu user=vmail argv=/usr/local/bin/maildrop -d vmail ${recipient}
mx1% sudo postconf -n
alias_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/aliases.cf
allow_untrusted_routing = no
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 3
debug_peer_list = xxx.ru
default_destination_concurrency_limit = 10
default_destination_recipient_limit = 5
default_process_limit = 1000
disable_vrfy_command = yes
header_checks = regexp:$config_directory/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
initial_destination_concurrency = 5
local_destination_concurrency_limit = 2
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
maximal_backoff_time = 2000s
maximal_queue_lifetime = 3d
message_size_limit = 10000000
minimal_backoff_time = 1000s
mydestination = $mydomain, $transport_maps
mydomain = xxx.ru
myhostname = mx1.xxx.ru
mynetworks = localhost, 172.16.0.0/16, 192.168.254.254, 192.168.254.222, 192.168.254.253, 192.168.254.241, 192.168.254.243
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
receive_override_options = no_address_mappings
relocated_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/relocated.cf
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_always_send_ehlo = yes
smtp_destination_concurrency_limit = 10
smtp_helo_timeout = 180s
smtp_mail_timeout = 350s
smtp_rcpt_timeout = 350s
smtpd_banner = ESMTP READY ! ALL CONNECTION LOGGED !
smtpd_client_connection_count_limit = 5
smtpd_client_connection_rate_limit = 6
smtpd_client_message_rate_limit = 6
smtpd_client_recipient_rate_limit = 10
smtpd_client_restrictions = permit_mynetworks, check_client_access mysql:/usr/local/etc/postfix/mysqlLookupMaps/client.cf, permit_sasl_authenticated, permit
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_error_sleep_time = 2
smtpd_etrn_restrictions = reject
smtpd_hard_error_limit = 20
smtpd_helo_required = yes
smtpd_recipient_limit = 5
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_pipelining, reject_unknown_recipient_domain, reject_non_fqdn_recipient, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client opm.blitzed.org, reject_rbl_client list.dsbl.org, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org, check_recipient_access mysql:/usr/local/etc/postfix/mysqlLookupMaps/recipient.cf, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/sender-2.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, check_sender_access mysql:/usr/local/etc/postfix/mysqlLookupMaps/sender.cf, permit_sasl_authenticated, permit
smtpd_soft_error_limit = 10
smtpd_tls_cert_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_loglevel = 1
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
transport_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/transport.cf
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:1002
virtual_mailbox_base = /var/mx/vmail
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/virtual-maps.cf
virtual_minimum_uid = 1000
virtual_transport = /usr/local/bin/maildrop
virtual_uid_maps = static:1002