Добрый день.
Поставил свзяку Postfix + ssl+ mysql+ courier-imap+ clamav+spamassassin.
Поп3д на 995 порту юзеров пускает, но время от времени не принимает логин и пароль.
Вот логи Бата:
[10:10:36] C: Connected to bla-bla.com, port 995
[10:10:37] S: +OK Hello there.
[10:10:37] C: USER roman
[10:10:37] S: +OK Password required.
[10:10:37] C: PASS ybhdfyf
[10:10:42] S: -ERR Login failed.
[10:12:59] C: Connected to bla-bla.com, port 995
[10:12:59] S: +OK Hello there.
[10:12:59] C: USER roman
[10:12:59] S: +OK Password required.
[10:12:59] C: PASS ybhdfyf
[10:12:59] S: +OK logged in.
[10:12:59] C: STAT
[10:12:59] S: +OK 0 0
[10:12:59] C: QUIT
Где копать и куда смотреть не понятно...
2-й вопрос.
smtpd коннектится по starttls, но не хочет аутентифицировать юзеров вообще. Пароли хранятся в Мускуле в МД5. Использую pam-sql.
Конфиги:
>cat pam.conf:
smtp auth sufficient pam_mysql.so user=postfix passwd=postfix db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1
smtp account sufficient pam_mysql.so user=postfix passwd=postfix db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1
/usr/local/etc/authlib>cat authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD postfix
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD '1111'
MYSQL_GID_FIELD '1111'
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/var/spool/mail/virtual'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota
MYSQL_WHERE_CLAUSE active='1'
/usr/local/etc/authlib>cat authdaemonrc
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=2
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""
/usr/local/lib/sasl2>cat smtpd.conf
pwcheck_method: saslauthd
log_level: 3
/etc/postfix>cat main.cf
....
smtpd_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtp_use_tls = yes
smtp_tls_key_file = /usr/local/share/courier-imap/pop3d.pem
smtp_tls_cert_file = $smtp_tls_key_file
smtp_tls_CAfile = $smtp_tls_key_file
smtp_tls_note_starttls_offer = yes
#smtpd_tls_auth_only = yes
smtpd_use_tls = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_key_file = /usr/local/share/courier-imap/pop3d.pem
smtpd_tls_cert_file = $smtpd_tls_key_file
smtpd_tls_CAfile = $smtpd_tls_key_file
...