queue_directory = /var/spool/postfix/
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
default_privs=nobody
alias_maps=hash:/etc/postfix/aliases
alias_database=hash:/etc/postfix/aliases
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
manpage_directory = /usr/local/man
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
smtpd_banner = $myhostname ESMTP EU
disable_vrfy_command = yes
home_mailbox=Maildir/
 
 
message_size_limit = 20971580
 
 
myhostname = eu.com.br
mydomain = eu.com.br
myorigin = $mydomain
mydestination = $mydomain, $transport_maps
 
 
mynetworks = 127.0.0.0/8 192.168.0.4/32 192.168.0.9/32
 
 
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /postfix
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:109
virtual_gid_maps = static:109
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
 
virtual_mailbox_limit_inbox = no
virtual_mailbox_limit_maps= mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_extended = yes
virtual_create_maildirsize = yes
virtual_mailbox_limit = 2000000000
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
 
 
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
    check_relay_domains,
    reject_invalid_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    reject_unauth_destination,
    check_policy_service unix:private/policy-spf,
    check_sender_access hash:/etc/postfix/maps/verify_sender,
    check_helo_access hash:/etc/postfix/maps/rhsbl_list_access,
    check_sender_access hash:/etc/postfix/maps/rhsbl_list_access,
    check_recipient_access hash:/etc/postfix/maps/rhsbl_list_access,
    reject_rbl_client relays.ordb.org,
    reject_rbl_client opm.blitzed.org,
    reject_rbl_client sbl-xbl.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client ipwhois.rfc-ignorant.org,
    reject_rbl_client dun.dnsrbl.net,
    reject_rbl_client multihop.dsbl.org,
    reject_rbl_client list.dsbl.org,
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client cbl.abuseat.org,
    reject_rbl_client dul.dnsbl.sorbs.net,
    permit
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
 
fallback_transport = /usr/bin/maildrop
maildrop_destination_recipient_limit = 1
unknown_local_recipient_reject_code = 550
unknown_client_reject_code = 550
unknown_hostname_reject_code = 550
unknown_address_reject_code = 550
 
 
content_filter = smtp-amavis:[127.0.0.1]:10024
html_directory = no
 
 
disable_vrfy_command = yes
smtpd_helo_required = yes
 
 
smtpd_client_restrictions = check_client_access hash:/etc/postfix/maps/client_checks
 
 
smtpd_helo_restrictions = permit_sasl_authenticated,
    permit_mynetworks,
    check_helo_access hash:/etc/postfix/maps/helo_checks,
    check_sender_access hash:/etc/postfix/maps/rhsbl_list_access,
    check_recipient_access hash:/etc/postfix/maps/rhsbl_list_access,
    reject_unauth_pipelining,
    reject_non_fqdn_hostname,
    reject_invalid_hostname,
    permit
 
 
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/maps/domain_bloqueados,
    check_sender_access hash:/etc/postfix/maps/sender_checks,
    reject_non_fqdn_sender,
 
 
smtpd_restriction_classes = verify_sender
 
 
verify_sender = reject_unverified_sender, permit
 
 
 
 
smtpd_data_restrictions =
  reject_unauth_pipelining,
  permit
 
header_checks = regexp:/etc/postfix/maps/header_checks
body_checks = regexp:/etc/postfix/maps/body_checks
default_process_limit = 120
bounce_size_limit = 5000000
policy_time_limit = 3600