Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
- 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
- # TLS parameters
- smtpd_tls_cert_file = /etc/ssl/certs/mail-selfsigned.crt
- smtpd_tls_key_file = /etc/ssl/private/mail-selfsigned.key
- smtpd_tls_security_level = may
- smtpd_tls_auth_only = yes
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtp_tls_security_level = may
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtp_tls_CApath = /etc/ssl/certs
- # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
- # information on enabling SSL in the smtp client.
- myhostname = mail.4skill.ru
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- myorigin = /etc/mailname
- mydestination =
- relayhost =
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- inet_protocols = all
- compatibility_level = 2
- message_size_limit = 15630000
- # Virtual Domain parameters
- virtual_mailbox_domains = 4skill.ru
- smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ad_sender_login_maps.cf
- virtual_mailbox_maps = proxy:ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
- virtual_alias_maps = proxy:ldap:/etc/postfix/ad_virtual_group_maps.cf
- virtual_uid_maps = static:1001
- virtual_gid_maps = static:1001
- virtual_mailbox_base = /var/vmail
- # Virtual Transport
- dovecot_destination_recipient_limit = 1
- virtual_transport = dovecot
- # SASL
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- # Restrictions
- smtpd_client_restrictions =
- permit_mynetworks
- check_client_access hash:/etc/postfix/client_access
- reject_unknown_client_hostname
- mua_client_restrictions =
- check_client_access hash:/etc/postfix/client_access
- smtpd_helo_required = yes
- smtpd_helo_restrictions =
- permit_mynetworks
- check_helo_access hash:/etc/postfix/helo_access
- reject_invalid_helo_hostname
- reject_non_fqdn_helo_hostname
- reject_unknown_helo_hostname
- mua_helo_restrictions =
- check_helo_access hash:/etc/postfix/helo_access
- reject_invalid_helo_hostname
- smtpd_sender_restrictions =
- permit_mynetworks
- check_sender_access hash:/etc/postfix/sender_access
- reject_non_fqdn_sender
- reject_unknown_sender_domain
- reject_sender_login_mismatch
- reject_unlisted_sender
- mua_sender_restrictions =
- check_sender_access hash:/etc/postfix/sender_access
- reject_sender_login_mismatch
- smtpd_relay_restrictions =
- permit_mynetworks
- permit_sasl_authenticated
- defer_unauth_destination
- smtpd_recipient_restrictions =
- reject_non_fqdn_recipient
- reject_unknown_recipient_domain
- check_policy_service inet:127.0.0.1:12340
- smtpd_data_restrictions =
- reject_unauth_pipelining
- reject_multi_recipient_bounce
- smtpd_etrn_restrictions =
- permit_mynetworks
- reject
- disable_vrfy_command = yes
- smtpd_discard_ehlo_keywords = vrfy etrn
- header_checks = regexp:/etc/postfix/header_check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement