# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
#biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# DKIM
milter_default_action = accept
milter_protocol = 6
smtpd_milters = unix:opendkim/opendkim.sock
non_smtpd_milters = unix:opendkim/opendkim.sock
#LDAP
virtual_mailbox_domains = meine-domain.de
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
#Kopano
#virtual_transport = lmtp:unix:/var/spool/kopano/dagent.sock
virtual_transport = lmtp:127.0.0.1:2003
#RBL and so on
#default_rbl_reply = $rbl_code RBLTRAP: You can't send us a E-mail today!!!
default_rbl_reply = $rbl_code RBLTRAP: We find out that your Mailserver is listed on one of our SpamService Providers // $rbl_class [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
# TLS parameters
smtpd_tls_key_file = /etc/letsencrypt/live/mail.meine-domain.de/privkey.pem
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.meine-domain.de/fullchain.pem
smtpd_tls_security_level = may
smtp_tls_loglevel = 1
smtpd_tls_auth_only = yes
tls_ssl_options = NO_COMPRESSION
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_mandatory_ciphers = high
tls_high_cipherlist=EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SH
smtpd_tls_eecdh_grade=ultra
#smtpd_tls_exclude_ciphers = ECDHE-RSA-RC4-SHA
#smtpd_tls_mandatory_exclude_ciphers = ECDHE-RSA-RC4-SHA
smtpd_tls_received_header = yes
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
#smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.meine-domain.de
alias_maps = hash:/etc/aliases
#alias_database = hash:/etc/aliases
mydestination = localdomain, localhost, localhost.localdomain, localhost, meinserver.serverprofi24.de, mail.meine-domain.de
relayhost =
mynetworks = 127.0.0.1, 0.0.0.0
#mailbox_size_limit = 0
#recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
smtpd_helo_required = yes
smtpd_delay_reject = yes
smtpd_sender_restrictions =
permit_mynetworks,
reject_unknown_sender_domain,
reject_non_fqdn_sender
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_unknown_helo_hostname,
reject_unknown_sender_domain,
permit_dnswl_client list.dnswl.org,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client ix.dnsbl.manitu.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client psbl.surriel.com,
reject_rbl_client dnsbl.sorbs.net
check_policy_service inet:127.0.0.1:2501,
permit
content_filter = smtp-amavis:[127.0.0.1]:10024
compatibility_level = 2