Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################
- # Default settings
- ##################
- biff = no
- append_dot_mydomain = no
- readme_directory = no
- smtpd_banner = $myhostname ESMTP $mail_name
- ################
- # TLS parameters
- ################
- smtpd_sasl_auth_enable = yes
- broken_sasl_auth_clients = yes
- smtpd_sasl_authenticated_header = yes
- smtpd_use_tls = yes
- smtpd_tls_cert_file = /etc/ssl/self-signed/server.pem
- smtpd_tls_key_file = $smtpd_tls_cert_file
- ###############
- # Main settings
- ###############
- myhostname = mail.gorix.com.ar
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- myorigin = $mydomain
- mydestination =
- mynetworks = 127.0.0.0/8
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- ##################
- # Relayhost
- ##################
- smtp_sasl_auth_enable = yes
- smtp_sasl_security_options = noanonymous
- smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
- smtp_tls_CAfile = /etc/postfix/cacert.pem
- smtp_use_tls = yes
- relayhost = mail.relayhost.com.ar
- ##################
- # Virtual Settings
- ##################
- virtual_mailbox_base = /home/vmail
- virtual_transport = virtual
- virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf
- virtual_mailbox_domains = mysql:/etc/postfix/sql/virtual_domains_maps.cf
- virtual_mailbox_maps = mysql:/etc/postfix/sql/virtual_mailbox_maps.cf
- virtual_minimum_uid = 5000
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- # Domains for which we are a secondary MX
- relay_domains = mysql:/etc/postfix/sql/relay_domains_maps.cf
- ##################
- # Sasl
- ##################
- smtpd_sender_restrictions =
- permit_mynetworks
- permit_sasl_authenticated
- permit_tls_clientcerts
- ##################
- # NO open relay
- ##################
- smtpd_recipient_restrictions =
- permit_mynetworks
- permit_sasl_authenticated
- reject_unauth_destination
- reject_unlisted_recipient
- reject_unverified_recipient
- ##################
- # Blocking certain attachments
- ##################
- header_checks = regexp:/etc/postfix/header_checks
- mime_header_checks = regexp:/etc/postfix/mime_header_checks
- message_size_limit = 20480000
- ##################
- # RBL Lists
- ##################
- smtpd_recipient_restrictions =
- permit_mynetworks
- permit_sasl_authenticated
- reject_unauth_destination
- reject_unlisted_recipient
- reject_unverified_recipient
- reject_rbl_client zen.spamhaus.org
Advertisement
Add Comment
Please, Sign In to add comment