Skip to content

Instantly share code, notes, and snippets.

@sibok
Created July 23, 2014 10:31
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/f8a84b00918928885178 to your computer and use it in GitHub Desktop.
Save sibok/f8a84b00918928885178 to your computer and use it in GitHub Desktop.
postconf -n
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
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
masquerade_domains = mail.webeloping.es mail.webeloping.com we.webeloping.es we.webeloping.com www.webeloping.es www.webeloping.com
maximal_backoff_time = 8000s
maximal_queue_lifetime = 5d
message_size_limit = 36700160
milter_DKIM = inet:localhost:8891
milter_default_action = accept
milter_protocol = 6
minimal_backoff_time = 1000s
mydestination =
mydomain = webeloping.es
myhostname = we.webeloping.es
mynetworks_style = host
myorigin = webeloping.es
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = $milter_DKIM
notify_classes = bounce, delay, policy, protocol, resource, software
policy-spf_time_limit = 3600s
queue_directory = /var/spool/postfix
receive_override_options = no_address_mappings
relayhost =
relocated_maps = proxy:mysql:/etc/postfix/mysql_relocated.cf
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 = $smtpd_tls_CAfile
smtp_tls_CApath = $smtpd_tls_CApath
smtp_tls_cert_file = $smtpd_tls_cert_file
smtp_tls_key_file = $smtpd_tls_key_file
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = reject_rbl_client blackholes.easynet.nl, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, ,check_client_access regexp:/etc/postfix/client_restrictions permit
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_error_sleep_time = 5
smtpd_hard_error_limit = 12
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated, reject_non_fqdn_hostname, reject_invalid_hostname, reject_unknown_helo_hostname, reject_rhsbl_helo dbl.spamhaus.org, permit
smtpd_junk_command_limit = 5
smtpd_milters = $milter_DKIM
smtpd_recipient_limit = 16
smtpd_recipient_restrictions = reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_sasl_authenticated, check_policy_service unix:private/policy-spf, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, ,permit
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, reject_rhsbl_sender dbl.spamhaus.org, reject_unlisted_sender, reject_authenticated_sender_login_mismatch, permit_sasl_authenticated, permit_dnswl_client list.dnswl.org, permit
smtpd_soft_error_limit = 3
smtpd_tls_CAfile = /etc/ssl/certs/startssl_ca-bundle.pem.pem
smtpd_tls_CApath = /etc/ssl/certs
smtpd_tls_cert_file = /etc/ssl/certs/class2.webeloping_es.pem
smtpd_tls_key_file = /etc/ssl/private/class2.webeloping_es.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 = proxy:mysql:/etc/postfix/mysql_transport.cf
transport_retry_time = 30s
unknown_local_recipient_reject_code = 450
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_alias.cf, proxy:mysql:/etc/postfix/mysql_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_mailbox.cf
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment