# See /usr/share/postfix/main.cf.dist for a commented, more complete version # compatibility_level = 2 myhostname = h96.hostsharing.net mynetworks = 127.0.0.0/8, 83.223.78.0/24, 83.223.79.0/24, 83.223.91.0/24, 83.223.94.0/24, 83.223.95.0/24, 83.223.90.224/27, 176.9.242.48/28, 176.9.242.64/28, 176.9.23.109/32, 5.9.109.47/32, 5.9.109.251/32, 144.76.133.96/27, [::1]/128, [2a01:37:1000::]/36, [2a01:37:2000::]/36, [2a01:37:3000::]/36, [2a01:4f8:150:2161::]/64, [2a01:4f8:162:501c::]/64, [2a01:4f8:162:50aa::]/64, [2a01:4f8:fff3:b8::]/64 inet_interfaces = all inet_protocols = ipv4, ipv6 relayhost = fmailout.hostsharing.net message_size_limit = 128000000 mailbox_size_limit = 512000000 mailbox_command = /usr/lib/dovecot/deliver -e alias_database = lmdb:/etc/aliases alias_maps = lmdb:/etc/aliases, lmdb:/etc/postfix-mailin/aliases virtual_maps = lmdb:/etc/postfix-mailin/virtual recipient_delimiter = + biff = no # notice recipients 2bounce_notice_recipient = postmaster@hostsharing.net bounce_notice_recipient = postmaster@hostsharing.net delay_notice_recipient = postmaster@hostsharing.net error_notice_recipient = postmaster@hostsharing.net # basic policy disable_vrfy_command = yes strict_rfc821_envelopes = yes # TLS # tls_random_source = dev:/dev/urandom #tls_high_cipherlist = EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+RC4:EDH+aRSA:EECDH:DES-CBC3-SHA:AES:CAMELLIA:!aNULL:!eNULL:!LOW:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!EDH:!DES:!3DES # smtpd / server # smtpd_banner = $myhostname ESMTP $mail_name smtpd_use_tls = yes smtpd_tls_auth_only = yes smtpd_tls_key_file = /etc/postfix-mailin/key.pem smtpd_tls_cert_file = /etc/postfix-mailin/cert.pem smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtpd_tls_ciphers = high smtpd_tls_mandatory_ciphers = high smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, TLSv1.2, TLSv1.3 smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, TLSv1.2, TLSv1.3 smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_tls_fingerprint_digest = sha1 smtpd_tls_ask_ccert = yes smtpd_tls_security_level = secure smtpd_delay_reject = yes smtpd_forbid_bare_newline = yes smtpd_forbid_bare_newline_exclusions = $mynetworks smtpd_helo_required = yes smtpd_client_restrictions = check_ccert_access lmdb:/etc/postfix-mailin/access, reject # smtp / client # smtp_destination_concurrency_limit = 5 smtp_use_tls = yes smtp_tls_key_file = /etc/postfix-mailin/key.pem smtp_tls_cert_file = /etc/postfix-mailin/cert.pem smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_tls_ciphers = high smtp_tls_mandatory_ciphers = high smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, TLSv1.2, TLSv1.3 smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1, TLSv1.2, TLSv1.3 smtp_tls_loglevel = 1 smtp_tls_note_starttls_offer = yes smtp_tls_security_level = verify # multi instance support # multi_instance_name = postfix-mailin data_directory = /var/lib/postfix-mailin queue_directory = /var/spool/postfix-mailin multi_instance_enable = yes