Navigation Menu

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/b3c8208d3fae7d696e3f to your computer and use it in GitHub Desktop.
Save sibok/b3c8208d3fae7d696e3f 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
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 = 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_default_action = accept
milter_protocol = 2
mime_header_checks = regexp:/etc/postfix/mime_header_checks
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 = inet:localhost:8891
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 = $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
smtp_use_tls = yes
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, permit_mynetworks, permit_sasl_authenticated, permit_dnswl_client list.dnswl.org, ,check_client_access regexp:/etc/postfix/client_restrictions
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_mynetworks, check_helo_access hash:/etc/postfix/helo_access, permit_sasl_authenticated, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_helo_hostname, permit
smtpd_junk_command_limit = 5
smtpd_milters = inet:localhost:8891, inet:localhost:8893
smtpd_recipient_limit = 16
smtpd_recipient_restrictions = reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, check_policy_service unix:private/policy-spf, permit_mynetworks, permit_sasl_authenticated, permit_dnswl_client list.dnswl.org, check_policy_service inet:127.0.0.1:10023, reject_unauth_destination, permit
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
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_sender_restrictions = warn_if_reject reject_non_fqdn_sender, warn_if_reject reject_unknown_sender_domain, warn_if_reject reject_unlisted_sender, warn_if_reject reject_authenticated_sender_login_mismatch, permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, 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 = 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
$ postconf -P
pickup/fifo/content_filter =
pickup/fifo/receive_override_options = no_header_body_checks
relay/unix/smtp_fallback_relay =
amavis/unix/disable_dns_lookups = yes
amavis/unix/max_use = 20
amavis/unix/smtp_data_done_timeout = 1200
amavis/unix/smtp_send_xforward_command = yes
127.0.0.1:10025/inet/content_filter =
127.0.0.1:10025/inet/local_header_rewrite_clients =
127.0.0.1:10025/inet/local_recipient_maps =
127.0.0.1:10025/inet/mynetworks = 127.0.0.0/8
127.0.0.1:10025/inet/receive_override_options = no_header_body_checks,no_unknown_recipient_checks,no_milters
127.0.0.1:10025/inet/relay_recipient_maps =
127.0.0.1:10025/inet/smtpd_client_connection_count_limit = 0
127.0.0.1:10025/inet/smtpd_client_connection_rate_limit = 0
127.0.0.1:10025/inet/smtpd_client_restrictions = permit_mynetworks,reject
127.0.0.1:10025/inet/smtpd_data_restrictions = reject_unauth_pipelining
127.0.0.1:10025/inet/smtpd_delay_reject = no
127.0.0.1:10025/inet/smtpd_end_of_data_restrictions =
127.0.0.1:10025/inet/smtpd_error_sleep_time = 0
127.0.0.1:10025/inet/smtpd_hard_error_limit = 1000
127.0.0.1:10025/inet/smtpd_helo_restrictions =
127.0.0.1:10025/inet/smtpd_milters =
127.0.0.1:10025/inet/smtpd_recipient_restrictions = permit_mynetworks,reject
127.0.0.1:10025/inet/smtpd_restriction_classes =
127.0.0.1:10025/inet/smtpd_sender_restrictions =
127.0.0.1:10025/inet/smtpd_soft_error_limit = 1001
submission/inet/smtpd_client_restrictions = permit_sasl_authenticated,reject_unauth_destination,reject
submission/inet/smtpd_sasl_auth_enable = yes
submission/inet/smtpd_sasl_security_options = noanonymous,noplaintext
submission/inet/smtpd_sasl_tls_security_options = noanonymous
submission/inet/smtpd_tls_auth_only = yes
submission/inet/smtpd_tls_security_level = encrypt
smtps/inet/smtpd_client_restrictions = permit_sasl_authenticated,reject
smtps/inet/smtpd_sasl_auth_enable = yes
smtps/inet/smtpd_sasl_security_options = noanonymous,noplaintext
smtps/inet/smtpd_sasl_tls_security_options = noanonymous
smtps/inet/smtpd_tls_auth_only = yes
smtps/inet/smtpd_tls_wrappermode = yes
$ cat /var/log/mail.log
Mar 27 18:54:48 we postfix/smtpd[1532]: connect from 235.Red-83-47-166.dynamicIP.rima-tde.net[83.47.166.235]
Mar 27 18:54:48 we postfix/smtpd[1532]: Anonymous TLS connection established from 235.red-83-47-166.dynamicip.rima-tde.net[83.47.166.235]: TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)
Mar 27 18:54:49 we postfix/smtpd[1532]: NOQUEUE: reject_warning: RCPT from 235.Red-83-47-166.dynamicIP.rima-tde.net[83.47.166.235]: 553 5.7.1 <pau@ofertamus.es>: Sender address rejected: not owned by user pau@example.com; from=<pau@ofertamus.es> to=<webeloping@example.com> proto=ESMTP helo=<PauPC.webeloping.es>
Mar 27 18:54:49 we postfix/smtpd[1532]: 0BF78403B3: client=235.Red-83-47-166.dynamicIP.rima-tde.net[83.47.166.235], sasl_method=PLAIN, sasl_username=pau@example.com
Mar 27 18:54:49 we postfix/cleanup[1539]: 0BF78403B3: message-id=<53346569.90508@ofertamus.es>
Mar 27 18:54:49 we opendkim[2492]: 0BF78403B3: DKIM-Signature field added (s=default, d=ofertamus.es)
Mar 27 18:54:49 we postfix/sendmail[1541]: fatal: opendmarc(119): No recipient addresses found in message header
Mar 27 18:54:49 we opendmarc[8851]: 0BF78403B3: pclose() returned status 19200
Mar 27 18:54:49 we opendmarc[8851]: 0BF78403B3: ofertamus.es none
Mar 27 18:54:49 we postfix/qmgr[23254]: 0BF78403B3: from=<pau@ofertamus.es>, size=708, nrcpt=1 (queue active)
Mar 27 18:54:49 we amavis[2723]: (02723-20) ESMTP::10024 /var/lib/amavis/tmp/amavis-20140327T170522-02723-tPHA9I7f: <pau@ofertamus.es> -> <webeloping@example.com> SIZE=708 Received: from we.webeloping.es ([127.0.0.1]) by localhost (we.webeloping.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <webeloping@example.com>; Thu, 27 Mar 2014 18:54:49 +0100 (CET)
Mar 27 18:54:49 we amavis[2723]: (02723-20) Checking: 0g1MmgDqwcDx [83.47.166.235] <pau@ofertamus.es> -> <webeloping@example.com>
Mar 27 18:54:49 we postfix/smtpd[1532]: disconnect from 235.Red-83-47-166.dynamicIP.rima-tde.net[83.47.166.235]
Mar 27 18:54:49 we opendkim[2492]: cache: 633 queries, 19 hits (3%), 46 expired, 28 keys
Mar 27 18:54:54 we postfix/smtpd[1549]: connect from we.webeloping.es[127.0.0.1]
Mar 27 18:54:54 we postfix/smtpd[1549]: A52E542404: client=we.webeloping.es[127.0.0.1]
Mar 27 18:54:54 we postfix/cleanup[1539]: A52E542404: message-id=<53346569.90508@ofertamus.es>
Mar 27 18:54:54 we postfix/qmgr[23254]: A52E542404: from=<pau@ofertamus.es>, size=1746, nrcpt=1 (queue active)
Mar 27 18:54:54 we postfix/smtpd[1549]: disconnect from we.webeloping.es[127.0.0.1]
Mar 27 18:54:54 we amavis[2723]: (02723-20) FWD from <pau@ofertamus.es> -> <webeloping@example.com>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A52E542404
Mar 27 18:54:54 we amavis[2723]: (02723-20) Passed CLEAN {RelayedInbound}, [83.47.166.235]:47227 [83.47.166.235] <pau@ofertamus.es> -> <webeloping@example.com>, Queue-ID: 0BF78403B3, Message-ID: <53346569.90508@ofertamus.es>, mail_id: 0g1MmgDqwcDx, Hits: -3, size: 1221, queued_as: A52E542404, dkim_sd=default:ofertamus.es, 5442 ms
Mar 27 18:54:54 we postfix/smtp[1543]: 0BF78403B3: to=<webeloping@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.7, delays=0.27/0.02/0/5.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A52E542404)
Mar 27 18:54:54 we postfix/qmgr[23254]: 0BF78403B3: removed
Mar 27 18:54:54 we postfix/virtual[1552]: A52E542404: to=<webeloping@example.com>, relay=virtual, delay=0.09, delays=0.04/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to maildir)
Mar 27 18:54:54 we postfix/qmgr[23254]: A52E542404: removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment