davay vot tak, avtorizaciyu po ssl ya ne vklyu4al, ya prosto sdelal local smtp server v klientami v postgrese s tls support, a teper xo4u prikrutit clamsmtp
esli otklyu4at tls, to clamsmtp rabotaet, esli ne otklyu4at tls, to vse......
host 127.0.0.1[127.0.0.1] said: 530 Must issue a STARTTLS
> command first (in reply to MAIL FROM command)dayu confi:
main.conf:
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_enforce_tls = yes
smtpd_tls_auth_only = yes
tls_random_source = dev:/dev/urandom
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings
v master.cf:#
scan unix - - n - 16 smtp
127.0.0.1:10026 inet n - n - 16 smtp
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
-o smtp_use_tls=yes
-o smtpd_use_tls=yes
-o smtp_tls_note_starttls_offer=yes
-o smtpd_tls_key_file=/usr/local/etc/postfix/ssl/smtpd.pem
-o smtpd_tls_cert_file=/usr/local/etc/postfix/ssl/smtpd.pem
-o smtpd_tls_cert_file=/usr/local/etc/postfix/ssl/smtpd.pem
-o smtpd_tls_received_header=yes
-o smtpd_tls_session_cache_timeout=3600s
-o tls_random_source=/dev/urandom