Portál AbcLinuxu, 8. května 2025 02:37
# SASL CONFIG
#
broken_sasl_auth_clients = yes
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_relay_domains,
permit_inet_interfaces
smtpd_sasl_local_domain =
smtpd_sasl_authenticated_header = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
# TLS
#
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_security_level = encrypt
smtpd_tls_key_file = /etc/ssl/private/smtp-key.pem
smtpd_tls_cert_file = /etc/ssl/certs/smtp.pem
smtpd_tls_CAfile = /etc/ssl/private/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_tls_note_starttls_offer = yes
smtp_tls_key_file = /etc/ssl/private/smtp-key.pem
smtp_tls_cert_file = /etc/ssl/certs/smtp.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_req_ccert = no
smtpd_tls_dh1024_param_file = /etc/ssl/postfix/dh_1024.pem
smtpd_tls_dh512_param_file = /etc/ssl/postfix/dh_512.pem
smtpd_tls_eecdh_grade = strong
smtpd_sasl_tls_security_options = noanonymous
220 example.com ESMTP Postfix
EHLO example.com
250-example.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 STARTTLS
QUIT
221 2.0.0 Bye
Výpis z logu:
Jun 5 18:01:51 iaeste postfix/smtpd[68512]: connect from unknown[193.165.152.60]
Jun 5 18:01:51 iaeste postfix/smtpd[68512]: setting up TLS connection from unknown[193.165.152.60]
Jun 5 18:01:51 iaeste postfix/smtpd[68512]: Anonymous TLS connection established from unknown[193.165.152.60]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jun 5 18:02:10 iaeste postfix/smtpd[68512]: disconnect from unknown[193.165.152.60]
Jun 5 18:05:30 iaeste postfix/anvil[68514]: statistics: max connection rate 1/60s for (smtps:193.165.152.60) at Jun 5 18:01:51
Jun 5 18:05:30 iaeste postfix/anvil[68514]: statistics: max connection count 1 for (smtps:193.165.152.60) at Jun 5 18:01:51
Jun 5 18:05:30 iaeste postfix/anvil[68514]: statistics: max cache size 1 at Jun 5 18:01:51
Dovedl by mě někdo nakopnout, co dělám špatně? Na jiném serveru s podobnou konfigurací (jinak starší verze programů) se stejným klientem to běží v pohodě. Díky všem
Řešení dotazu:
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.