BSDPORTAL.RU
http://bsdportal.ru/

postfix и TLS
http://bsdportal.ru/viewtopic.php?f=9&t=29346
Страница 1 из 1

Автор:  vknmurm [ Вт 17 янв, 2023 7:25 pm ]
Заголовок сообщения:  postfix и TLS

Мне не удается настроить отправку почты через порт 465 postfix'a (ver 3.7) на виртуальной машине с freebsd 13.1
Через 25 порт почта уходит без проблем.
В main.cf указаны сертификат домена, промежуточный сертификат и приватный ключ.
В master.cf - smtps (пробовал с разными опциями).

======main.cf==========================
inet_protocols = all

# smtp CA path (default to system-wide location)
smtp_tls_CApath = /etc/ssl/certs
meta_directory = /usr/libexec/postfix
shlib_directory = /usr/lib/postfix

smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/certs/an51.su-private.key
smtpd_tls_cert_file = /etc/ssl/certs/an51.su.crt
smtpd_tls_CAfile = /etc/ssl/certs/an51.su-prom.crt
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
=====================================

===========master.cf====================
smtp inet n - n - - smtpd
smtps inet n - n - - smtpd -v
=====================================

C:\Users\User>openssl s_client -connect homebsd.an51.su:465
CONNECTED(000001C4)
C88E0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:ssl\record\ssl3_record.c:355:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 321 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
C:\Users\User>

Кто-нибудь может подсказать, что у меня не так?

Вложения:
Скриншот 17-01-2023 17.56.14.jpg
Скриншот 17-01-2023 17.56.14.jpg [ 36.73 КБ | Просмотров: 322 ]
Скриншот 17-01-2023 17.41.18.jpg
Скриншот 17-01-2023 17.41.18.jpg [ 49.91 КБ | Просмотров: 322 ]

Страница 1 из 1 Часовой пояс: UTC + 4 часа
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/