Verdinho
(usa Debian)
Enviado em 27/03/2009 - 11:59h
quando edito a linha mynetworks para 0.0.0.0/0 ele aceita emails de qualquer rede mais fica recebendo mensagens de mail-delivery ai quando dou um mailq minha caixa fica cheio de mensagens de espera, e como se eu estivesse sendo atacado por spans!!!
bounce_queue_lifetime = 3h
maximal_queue_lifetime = 3h
delay_warning_time = 2h
queue_run_delay = 600s
minimal_backoff_time = 600s
maximal_backoff_time = 900s
bounce_queue_lifetime = 0
maximal_queue_lifetime = 1800s
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
mail_owner = postfix
default_privs=nobody
default_transport=smtp
sender_bcc_maps = hash:/etc/postfix/sender_bcc
#always_bcc = backup@meudominio.com.br
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = ns.meudominio.com.br
mydomain = mitsubishimotors.com.br
myorigin = $mydomain
inet_interfaces = all
#mydestination = $mydomain, $myhostname, $transport_maps, localhost.$mydomain, localhost
mydestination = $myhostname $mydomain ns1.$mydomain ns2.$mydomain www.$mydomain mail.$mydomain, webmail.$mydomain ftp.$mydomain localhost.$mydomain $transport_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
#mynetworks_style = subnet
mynetworks = 10.0.0.0/8, 127.0.0.0/8, 201.90.97.48/28, 200.246.186.0/26, 200.213.178.0/26, 200.249.161.0/26, 200.209.45.0/26, 200.174.99.48, 200.217.198.130, 65.0.0.0, 200.255.122.94, 200.230.226.60, 200.230.226.0/26, 200.208.204.200/29, 189.0.0.0/8
#mynetworks = 0.0.0.0/0
relay_domains = $mydestination
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname SMTP Server (Meu Grupo Ltda)
debug_peer_level = 2
#debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
# xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
#mailbox_size_limit = 51200000
#message_size_limit = 10240000
message_size_limit = 15728640
smtpd_recipient_limit = 10
strict_rfc821_envelopes = yes
smtpd_helo_required = yes
disable_vrfy_command = yes
maps_rbl_domains = bl.spamcop.net, rbl-plus.mail-abuse.org, relays.ordb.org, list.dsbl.org,dun.dnsrbl.net, spam.dnsrbl.net, spamhaus.org, aspews.org, spamcannibal.org, cbl.abuseat.org
smtpd_client_restrictions = permit_mynetworks reject_unknown_client reject_unauth_pipelining reject_rbl_client maps_rbl_domains
#smtpd_client_restrictions = permit_mynetworks, reject_unknown_client, check_client_access hash:/etc/postfix/client_access, reject_unauth_pipelining, reject_rbl_client maps_rbl_domains
#smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain, reject_unknown_client, reject_non_fqdn_sender, reject_unauth_pipelining
smtpd_sender_restrictions = permit_mynetworks reject_unknown_sender_domain reject_non_fqdn_sender reject_unauth_pipelining
smtpd_recipient_restrictions = permit_mynetworks reject_unknown_recipient_domain reject_non_fqdn_recipient reject_unauth_pipelining
#smtpd_recipient_restrictions =
permit_mynetworks,
reject_non_fqdn_sender,
check_client_access hash:/etc/postfix/pop-before-smtp,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_unknown_hostname,
reject_non_fqdn_hostname,
reject_unauth_destination,
reject_unknown_client,
reject_unauth_destination
permit
smtpd_helo_restrictions = permit_mynetworks reject_invalid_hostname reject_unknown_hostname reject_non_fqdn_hostname reject_unauth_pipelining reject_rbl_client maps_rbl_domain
#smtpd_helo_restrictions =
# Permite "mynetwork"
permit_mynetworks,
# Quando n�o � informado o hostname
reject_invalid_hostname,
# Quando n�o existe entrada DNS A ou MX
reject_unknown_hostname,
# Quando o hostname n�o apresenta hostname v�lido
reject_non_fqdn_hostname,
# Bloqueio comando para for�ar entrega
reject_unauth_pipelining,
# Bloqueia IP's listados em RBL
reject_rbl_client maps_rbl_domains,
permit
header_checks = pcre:/etc/postfix/header_checks
mime_header_checks = $header_checks
nested_header_checks = $header_checks
body_checks = pcre:/etc/postfix/body_checks
body_checks_size_limit = 51200
fast_flush_refresh_time = 1m
fast_flush_purge_time = 4h
#alias_maps = mysql:/etc/postfix/mysql.aliases.cf
alias_maps = hash:/etc/aliases
local_recipient_maps = $virtual_mailbox_maps
transport_maps = mysql:/etc/postfix/transport.cf
virtual_gid_maps = mysql:/etc/postfix/gids.cf
virtual_mailbox_base = /home
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual.cf
virtual_maps = mysql:/etc/postfix/mysql.aliases.cf
virtual_alias_maps = mysql:/etc/postfix/mysql.aliases.cf
virtual_uid_maps = mysql:/etc/postfix/uids.cf
#smtpd_restriction_classes = MYSENDERS,MYLISTS
#MYSENDERS = permit_mynetworks
#MYLISTS = permit_mynetworks