Skip to content

Instantly share code, notes, and snippets.

@sibok
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sibok/df8c8fc0d85785978c85 to your computer and use it in GitHub Desktop.
Save sibok/df8c8fc0d85785978c85 to your computer and use it in GitHub Desktop.
2bounce_notice_recipient = $delay_notice_recipient
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
biff = no
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
delay_notice_recipient = admin
delay_warning_time = 30m
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
inet_protocols = all
lmtp_tls_session_cache_database = btree:/var/lib/postfix/lmtp_scache
local_recipient_maps =
mail_owner = postfix
mailbox_size_limit = 512000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = host.example1.es host.example1.com host_alias.example1.es
host_alias.example1.com www.example1.es www.example1.com
maximal_backoff_time = 8000s
maximal_queue_lifetime = 5d
message_size_limit = 36700160
milter_default_action = accept
milter_protocol = 2
mime_header_checks = regexp:/etc/postfix/mime_header_checks
minimal_backoff_time = 1000s
mydestination =
mydomain = example1.es
myhostname = host.example1.es
mynetworks_style = host
myorigin = example1.es
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = $smtpd_milters
notify_classes = bounce, delay, policy, protocol, resource, software
policy-spf_time_limit = 3600s
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
receive_override_options = no_address_mappings
relayhost =
relocated_maps = mysql:/etc/postfix/mysql_relocated.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_canonical_maps = hash:/etc/postfix/generic
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_generic_maps = hash:/etc/postfix/generic
smtp_helo_timeout = 60s
smtp_tls_CAfile = /etc/ssl/certs/sf_bundle.pem
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions =
permit_mynetworks,
permit_dnswl_client list.dnswl.org,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
permit_sasl_authenticated,
warn_if_reject reject_unknown_helo_hostname,
reject_invalid_hostname,
reject_non_fqdn_hostname,
check_client_access regexp:/etc/postfix/client_restrictions
smtpd_data_restrictions =
reject_unauth_pipelining
smtpd_helo_restrictions =
permit_mynetworks,
check_helo_access hash:/etc/postfix/helo_access,
permit_sasl_authenticated,
warn_if_reject reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_unknown_helo_hostname,
permit
smtpd_recipient_restrictions =
permit_mynetworks,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
warn_if_reject reject_unlisted_sender,
warn_if_reject reject_authenticated_sender_login_mismatch,
permit_sasl_authenticated,
reject_unauth_pipelining,
reject_unauth_destination,
permit_dnswl_client list.dnswl.org,
reject_rhsbl_helo dbl.spamhaus.org,
reject_rhsbl_sender dbl.spamhaus.org,
check_policy_service inet:127.0.0.1:10023,
check_policy_service unix:private/policy-spf,
permit
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
smtpd_sender_restrictions =
permit_mynetworks,
warn_if_reject reject_non_fqdn_sender,
warn_if_reject reject_unknown_sender_domain,
permit_sasl_authenticated,
reject_unauth_pipelining,
permit
smtpd_delay_reject = yes
smtpd_error_sleep_time = 5
smtpd_hard_error_limit = 12
smtpd_helo_required = yes
smtpd_junk_command_limit = 5
smtpd_milters = inet:localhost:8891, inet:localhost:8893
smtpd_recipient_limit = 16
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/
mysql_sender_login_maps.cf
smtpd_soft_error_limit = 3
smtpd_tls_cert_file = /etc/ssl/certs/example1.es.pem
smtpd_tls_key_file = /etc/ssl/private/example1.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = mysql:/etc/postfix/mysql_transport.cf
transport_retry_time = 30s
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf, mysql:/etc/postfix/
mysql_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
virtual_uid_maps = static:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment