Autenticacao Postfix [RESOLVIDO]

1. Autenticacao Postfix [RESOLVIDO]

Davi lima
Verdinho

(usa Debian)

Enviado em 26/03/2009 - 16:39h

Estou com um problema de envio de email, quando tento enviar emails pela minha rede, local ate que vai mais quando envio, por rede externa, ou seja uma lan ou outra rede qualquer a mensagem nao chega ao destinatario, ela e rejeitada, so vai se eu adicionar o ip da rede que ta tentando mandar, na minha main.cd la em mynetworks = ai sim ele manda, mais eu nao quero ficar acressentando ips na mynetworks, ja tente colocar em mynetworks 0.0.0.0/0 mais fica emtrando span e minha caixa de email fica lotada, e nao deixa os outros email serem entregues!!! alguem poderia me ajudar?

quando dou o comando mailq aparece isso:

98D851C60109 1158 Thu Mar 26 18:08:04 midiaguardian@bol.com.br
(host mx2.hotmail.com[65.55.37.120] said: 421 RP-001 The mail server IP connecting to Windows Live Hotmail server has exceeded the rate limit allowed. Reason for rate limitation is related to IP/domain reputation problems. If you are not an email/network admin please contact your E-mail/Internet Service Provider for help. Email/network admins, please visit http://postmaster.live.com for email delivery information and support (in reply to MAIL FROM command))
guarani@hotmail.com
guararapes@hotmail.com
guaratiba_verdemar@hotmail.com
guardamor@hotmail.com
guardasol@hotmail.com
guardeiro@hotmail.com
guardia@hotmail.com
guardian@hotmail.com
guardianboat@hotmail.com

pow nada aver nenhu desses emails e da minha empresa!!!


  


2. MELHOR RESPOSTA

Andi
upc0d3

(usa Gentoo)

Enviado em 26/03/2009 - 20:38h

"mais quando envio, por rede externa"

tu tah tentado fazer relay de e-mail ?

por exemplo: tah na tua casa abre o teu thunderbird, configura o pop e smtp do teu servidor de e-mail da tua rede... e ai o e-mail nao vai ? eh isso ?

bom acredito que seja isso.... se for isso eh facil de resolver, eu nao lembro de cabeca a configuracao...

mas coloca o teu /etc/postfic/main.cf aki para agente dar uma olhada nele.... falou...

3. Resposta Span

Davi lima
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







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts