Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myorigin = /etc/mailname
- myhostname = mail.mydomain.com
- mydomain = mydomain.com
- mydestination = $mydomain, $myhostname, localhost
- smtpd_banner = $myhostname ESMTP $mail_name (PDP-11)
- 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
- queue_run_delay = 300
- readme_directory = /usr/share/doc/postfix
- # TLS settings
- smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
- smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_tls_security_level = may
- # Client auth
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_sasl_auth_enable = yes
- broken_sasl_auth_clients = yes
- smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
- # Smarthost
- relayhost = [mail.provider.com]:587
- # Smarthost auth
- smtp_sasl_auth_enable = yes
- smtp_sasl_security_options = noanonymous
- smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- mynetworks = 127.0.0.0/8 192.168.0.0/24
- mailbox_command = /usr/lib/dovecot/deliver
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- inet_protocols = ipv4
- html_directory = /usr/share/doc/postfix/html
- # Transport Maps
- transport_maps = hash:/etc/postfix/transport
- # Aliases
- sender_canonical_maps = hash:/etc/postfix/sender_canonical
- local_recipient_maps =
- # Spam and virus filter
- content_filter = smtp-amavis:[127.0.0.1]:10024
- receive_override_options = no_address_mappings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement