Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # hostname
- myhostname = mail.DOMAIN1
- myorigin = mail.DOMAIN1
- mydomain = DOMAIN1
- #
- mynetworks = 127.0.0.1, 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24
- # Accepted local emails
- mydestination = $myhostname, localhost, localhost.localdomain
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/lib/postfix/sbin
- data_directory = /var/lib/postfix
- mail_owner = postfix
- sendmail_path = /usr/sbin/sendmail
- newaliases_path = /usr/bin/newaliases
- mailq_path = /usr/bin/mailq
- setgid_group = postdrop
- debugger_command =
- PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
- ddd $daemon_directory/$process_name $process_id & sleep 5
- debug_peer_level = 9
- #
- # CUSTOM SETTINGS
- #
- unknown_local_recipient_reject_code = 550
- biff = no
- swap_bangpath = no
- allow_percent_hack = no
- allow_min_user = no
- disable_vrfy_command = yes
- inet_protocols = ipv4
- inet_interfaces = all
- # TLS settings.
- # SSL key, certificate, CA
- smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
- smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
- smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt
- smtpd_tls_CApath = /etc/ssl/certs
- #
- # Disable SSLv2, SSLv3
- smtpd_tls_protocols = !SSLv2 !SSLv3
- smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
- smtp_tls_protocols = !SSLv2 !SSLv3
- smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
- lmtp_tls_protocols = !SSLv2 !SSLv3
- lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
- # Fix 'The Logjam Attack'.
- #
- smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
- smtpd_tls_dh512_param_file = /etc/ssl/dh512_param.pem
- smtpd_tls_dh1024_param_file = /etc/ssl/dh2048_param.pem
- tls_random_source = dev:/dev/urandom
- smtp_tls_loglevel = 1
- smtpd_tls_loglevel = 1
- smtpd_tls_security_level = may
- smtp_tls_security_level = may
- # Use the same CA file as smtpd.
- smtp_tls_CApath = /etc/ssl/certs
- smtp_tls_CAfile = $smtpd_tls_CAfile
- smtp_tls_note_starttls_offer = yes
- header_checks = pcre:/etc/postfix/header_checks
- body_checks = pcre:/etc/postfix/body_checks.pcre
- #2 HELO restriction
- smtpd_helo_required = yes
- smtpd_helo_restrictions =
- permit_mynetworks
- permit_sasl_authenticated
- check_helo_access pcre:/etc/postfix/helo_access.pcre
- reject_non_fqdn_helo_hostname
- reject_unknown_helo_hostname
- # Sender restrictions
- smtpd_sender_restrictions =
- permit_mynetworks
- reject_unknown_sender_domain
- reject_non_fqdn_sender
- ####reject_unlisted_sender
- permit_sasl_authenticated
- # Recipient restrictions
- smtpd_recipient_restrictions =
- permit_mynetworks
- reject_non_fqdn_recipient
- reject_unlisted_recipient
- check_policy_service inet:127.0.0.1:7777
- permit_sasl_authenticated
- reject_unauth_destination
- smtpd_end_of_data_restrictions =
- check_policy_service inet:127.0.0.1:7777
- smtpd_data_restrictions = reject_unauth_pipelining
- proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions $sender_dependent_relayhost_maps
- enable_original_recipient = no
- # Virtual support.
- virtual_minimum_uid = 2000
- virtual_uid_maps = static:2000
- virtual_gid_maps = static:2000
- virtual_mailbox_base = /var/vmail
- # Do not set virtual_alias_domains.
- virtual_alias_domains =
- relayhost = [smtp.timeweb.ru]
- #for server
- smtpd_sasl_auth_enable = yes
- smtpd_use_tls = yes
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_security_options = noanonymous
- smtpd_tls_auth_only = yes
- smtpd_use_tls = yes
- smtpd_data_restrictions = reject_unauth_pipelining
- smtpd_reject_unlisted_recipient = yes
- #smtpd_reject_unlisted_sender = yes
- #for client
- smtp_sasl_auth_enable = yes
- smtp_tls_security_level=may
- smtp_sasl_tls_security_options = noanonymous
- smtp_sender_dependent_authentication = yes
- smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
- sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent
- smtp_connection_cache_on_demand = no
- smtp_tls_note_starttls_offer = yes
- alias_maps = hash:/etc/postfix/aliases
- alias_database = hash:/etc/postfix/aliases
- #50 Mb
- message_size_limit = 51200000
- mailbox_size_limit = 0
- # Postfix 2.11 and later supports multiple characters.
- recipient_delimiter = +
- compatibility_level = 2
- # Lookup virtual mail accounts
- #
- transport_maps =
- proxy:pgsql:/etc/postfix/pgsql/transport_maps_user.cf
- proxy:pgsql:/etc/postfix/pgsql/transport_maps_maillist.cf
- proxy:pgsql:/etc/postfix/pgsql/transport_maps_domain.cf
- hash:/etc/postfix/transport
- virtual_mailbox_domains =
- proxy:pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf
- virtual_mailbox_maps =
- proxy:pgsql:/etc/postfix/pgsql/virtual_mailbox_maps.cf
- virtual_alias_maps =
- proxy:pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf
- proxy:pgsql:/etc/postfix/pgsql/domain_alias_maps.cf
- proxy:pgsql:/etc/postfix/pgsql/catchall_maps.cf
- proxy:pgsql:/etc/postfix/pgsql/domain_alias_catchall_maps.cf
- sender_bcc_maps =
- proxy:pgsql:/etc/postfix/pgsql/sender_bcc_maps_user.cf
- proxy:pgsql:/etc/postfix/pgsql/sender_bcc_maps_domain.cf
- recipient_bcc_maps =
- proxy:pgsql:/etc/postfix/pgsql/recipient_bcc_maps_user.cf
- proxy:pgsql:/etc/postfix/pgsql/recipient_bcc_maps_domain.cf
- hash:/etc/postfix/recipient_bcc
- # Postscreen
- #
- postscreen_greet_action = drop
- postscreen_blacklist_action = drop
- postscreen_dnsbl_action = drop
- postscreen_dnsbl_threshold = 2
- postscreen_dnsbl_sites =
- zen.spamhaus.org=127.0.0.[2..11]*3
- b.barracudacentral.org=127.0.0.2*2
- postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply
- postscreen_access_list = permit_mynetworks cidr:/etc/postfix/postscreen_access.cidr
- postscreen_dnsbl_whitelist_threshold = -2
- # Dovecot SASL support.
- #
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/dovecot-auth
- virtual_transport = dovecot
- dovecot_destination_recipient_limit = 1
- # mlmmj - mailing list manager
- mlmmj_destination_recipient_limit = 1
- # Amavisd + SpamAssassin + ClamAV
- #
- content_filter = smtp-amavis:[127.0.0.1]:10024
- # Concurrency per recipient limit.
- smtp-amavis_destination_recipient_limit = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement