День добрый..
Установлен postfix+courier-imap+mysql+openssl. Мой ip внутренний:10.16.2.215. По незащищенному соединению получение и отправка почты (pop3d) происходит нормально.. При отправке почты с использованием TLS все вроде впорядке.. Но стоит использовать ssl thunderbird тупо висит.. в maillog: postfix/smtpd[10146]: connect from unknown[10.16.2.215] и далее этого ничего не происходит.. через пол минуты:
Jan 31 01:14:18 localhost postfix/smtpd[10146]: lost connection after UNKNOWN from unknown[10.16.2.215]
Jan 31 01:14:18 localhost postfix/smtpd[10146]: disconnect from unknown[10.16.2.215]
Jan 31 01:18:42 localhost postfix/smtpd[10243]: connect from unknown[10.16.2.215]
Jan 31 01:18:42 localhost postfix/smtpd[10243]: lost connection after CONNECT from unknown[10.16.2.215]
Jan 31 01:18:42 localhost postfix/smtpd[10243]: disconnect from unknown[10.16.2.215]
Далее pop3d-ssl.. pop3d работает нормально.. Стоит использовать ssl и thunderbird опять же тупо висит.. но в лог вообще ничего не пишет.. Kmail же выдает: could not login to 10.16.2.215. The server terminated the connection immediately.
openssl s_client -connect localhost:995 проходит с read:errno=0.
Как-то потерялся среди разнообразных гайдов по postfix+courier.. Не знаю на что здесь сетовать..
It is strictly discouraged to use this mode from main.cf. If you want to support this service, enable a special port in master.cf and specify "-o smtpd_tls_wrappermode=yes" (note: no space around the "=") as an smtpd(8) command line option. Port 465 (smtps) was once chosen for this feature.
Example:
/etc/postfix/master.cf:
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
murder, спасибо.. действительно помоголо.. Аутентификация на сервере smpt теперь действительно по ssl происходит.. Остается вопрос с pop3d-ssl.. Логирование в его конфиге не нашел.. есть какой-то courierlogger.. но когда делаю `courierlogger start` он тупо молчит.. В kmail ошибка выглядит как: "Could not login to $my_ip", так что сделал в /etc/courier/authlib/authdaemonrc DEBUG_LOGIN=2.. Но это никаких дополнительных сообщий в логи не привнесло.. Что бы еще сделать..(
For courier-imap, you need to set one of the following values in /usr/local/etc/authdaemonrc:
DEBUG_LOGIN=1 # turn on authentication debugging
DEBUG_LOGIN=2 # turn on authentication debugging AND show passwords
This setting is located at the very end of the configuration file.
After changing this setting, restart the authentication daemon by running the "authdaemond stop" and "authdaemond start" commands.
At this point, all debugging output goes to syslog at level 'debug', which is normally not shown. You will probably need to change your /etc/syslog.conf file to be able to see these messages. If you have an existing entry which says "mail.info" (which means facility 'mail', level 'info' or higher) then you can just change this to "mail.debug". Alternatively you can add a new entry like this:
*.debug /var/log/debug
Don't forget to create this file, and to send a HUP signal to syslogd to make it re-read its configuration:
# touch /var/log/debug
# killall -1 syslogd
If you don't want to mess around with your syslog configuration, you can also start authdaemond manually, and log its output to a file: