soft_bounce = no
broken_sasl_auth_clients = yes
biff = no
bounce_queue_lifetime=0
command_time_limit=180
default_process_limit=180
default_destination_concurrency_limit = 50
default_destination_recipient_limit = 50
disable_vrfy_command = yes
empty_address_recipient = MAILER-DAEMON
maximal_backoff_time=1440
maximal_queue_lifetime=2
#mailbox_size_limit = 100000000
message_size_limit = 20400000
minimal_backoff_time=180
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
queue_minfree = 40000000
queue_run_delay=300
spf_explanation = "%{h} [%{i}] is not allowed to send mail for %{s} - SPF"
unknown_local_recipient_reject_code = 550
smtp_destination_concurrency_limit = 20
smtp_connection_cache_on_demand = yes
smtp_connection_cache_time_limit = 4s
smtp_cache_connection_destinations = terra.com.br, bol.com.br, uol.com.br, ig.com.br, hotmail.com, gmail.com
strict_rfc821_envelopes = yes
smtpd_banner = $myhostname ESMTP MailServer HighCompany.
smtpd_helo_required = yes
smtpd_delay_reject = yes
smtpd_error_sleep_time = 1s
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
sleep 5,
check_sender_access regexp:/usr/local/etc/postfix/sender_blocked,
check_recipient_access regexp:/usr/local/etc/postfix/recipient_blocked,
check_client_access regexp:/usr/local/etc/postfix/ip-access-ok,
check_client_access regexp:/usr/local/etc/postfix/ip-access-reject,
reject_unauth_destination,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client dialups.mail-abuse.org,
reject_rbl_client black.uribl.com
## reject_rbl_client sbl.spamhaus.org,
## reject_rbl_client dun.dnsrbl.net,
## reject_rbl_client list.dsbl.org,
## reject_rbl_client opm.blitzed.org,
## reject_rbl_client multihop.dsbl.org,
smtpd_helo_restrictions =
permit_mynetworks,
##reject_non_fqdn_hostname,
##reject_invalid_hostname,
permit
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_sender_domain,
check_sender_access regexp:/usr/local/etc/postfix/sender_blocked,
check_recipient_access regexp:/usr/local/etc/postfix/recipient_blocked,
reject_non_fqdn_sender,
reject_unauth_destination,
reject_unauth_pipelining
# Se o email chegou ate aqui eh pq passou nas restricoes acima
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
## reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_unauth_pipelining,
## reject_non_fqdn_sender,
reject_unknown_sender_domain,
## reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
### postgrey
### check_policy_service inet:127.0.0.1:10023,
### abaixo a do fsp check:
### check_policy_service unix:private/policy,
check_sender_access regexp:/usr/local/etc/postfix/sender_blocked,
check_recipient_access regexp:/usr/local/etc/postfix/recipient_blocked
permit
header_checks = regexp:/usr/local/etc/postfix/header_checks
body_checks = regexp:/usr/local/etc/postfix/body_checks
body_checks_size_limit=30000
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:125
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
$virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
$relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
$recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
$virtual_mailbox_limit_maps
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Caixa Postal Lotada! Tente mais tarde. (Sorry, mailbox full - try again later)
virtual_overquota_bounce = yes
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
myhostname = mail.(MYDOMAIN.COM)
mydomain = (MYDOMAIN.COM)
mydestination = localhost.$mydomain, localhost, mail.$mydomain
mynetworks = 127.0.0.0/8 192.168.0.0/24 101.102.103.0/24
transport_maps = hash:/usr/local/etc/postfix/transport
vacation_destination_recipient_limit = 1
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
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/share/examples/postfix
readme_directory = /usr/local/share/doc/postfix