<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000">
<TITLE>RES: [CentOS-pt-br]        Postfix com autentocação para enviar e-mail com conta em gmail.com</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">Olá,</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">Bem os tempos mudaram e hoje em dia existe uma série de testes que todo servidor de email, inclusive gmail, terra</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri"> e outros testam para evitar excesso de spams e tal. Algumas coisas básicas:</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">Ter</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">um registro MX na tabela do s</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">eu domínio no servidor de DNS.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">Reverso de DNS configurado corretamente ex.: </FONT></SPAN></P>
<UL DIR=LTR>
<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN></P>
</UL>
<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">(root@phoenix)[~]# host -t mx linuxinfo.com.br</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">linuxinfo.com.br mail is handled by 10 mail.linuxinfo.com.br.</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">(root@phoenix)[~]# host mail.linuxinfo.com.br</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">mail.linuxinfo.com.br has address 201.33.179.13</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">(root@phoenix)[~]# host 201.33.179.13</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">13.179.33.201.in-addr.arpa domain name pointer mail.linuxinfo.com.br.</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">Repare nessa sequência de testes, primeiro consultei o MX depois</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">com o IP do servidor de correio testei o reverso que devolveu o mesmo nome do servidor de correio. Esse</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">s</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri"> seria</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">m</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri"> o mínimo</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri"> necessário, mas aconselho à configurar também o SPF Sender Policy Framework. Um</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">exemplo</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri"> simples seria uma entrada</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">assim no DNS:</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN TXT&nbsp;</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us">&nbsp;<FONT COLOR="#1F497D" FACE="Calibri"></FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#1F497D" FACE="Calibri">&nbsp;&nbsp;</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"> <FONT COLOR="#1F497D" FACE="Calibri">&quot;v=spf1 ip4:201.33.179.</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri">13</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"><FONT COLOR="#1F497D" FACE="Calibri"> -all&quot;</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en-us"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">A entrada acima diz que</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">somente o IP</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT COLOR="#1F497D" FACE="Calibri">201.33.179.13 pode enviar e-mails usando o domínio: linuxinfo.com.br</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"><FONT COLOR="#1F497D" FACE="Calibri">Espero ter ajudado</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT FACE="Wingdings" SIZE=3>J</FONT></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"><B></B></SPAN><SPAN LANG="pt-br"><B><FONT SIZE=2 FACE="Tahoma">De:</FONT></B></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT SIZE=2 FACE="Tahoma"> centos-pt-br-bounces@centos.org [<A HREF="mailto:centos-pt-br-bounces@centos.org">mailto:centos-pt-br-bounces@centos.org</A>]</FONT></SPAN><SPAN LANG="pt-br"><B></B></SPAN><SPAN LANG="pt-br"><B> <FONT SIZE=2 FACE="Tahoma">Em nome de</FONT></B></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"> <FONT SIZE=2 FACE="Tahoma">Jose Valdir Gama<BR>
</FONT></SPAN><SPAN LANG="pt-br"><B></B></SPAN><SPAN LANG="pt-br"><B><FONT SIZE=2 FACE="Tahoma">Enviada em:</FONT></B></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT SIZE=2 FACE="Tahoma"> terça-feira, 30 de junho de 2009 13:36<BR>
</FONT></SPAN><SPAN LANG="pt-br"><B></B></SPAN><SPAN LANG="pt-br"><B><FONT SIZE=2 FACE="Tahoma">Para:</FONT></B></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT SIZE=2 FACE="Tahoma"> Portuguese (Brazilian) CentOS mailing list<BR>
</FONT></SPAN><SPAN LANG="pt-br"><B></B></SPAN><SPAN LANG="pt-br"><B><FONT SIZE=2 FACE="Tahoma">Assunto:</FONT></B></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"><FONT SIZE=2 FACE="Tahoma"> Re: [CentOS-pt-br] Postfix com autentocação para enviar e-mail com conta em gmail.com</FONT></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Fiz o teste e não consigo enviar e-mail  no log  aparece isso.</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"> </SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Jun 30 13:29:06 server1 postfix/pickup[6619]: 4B1F1140806B: uid=0 from=&lt;root&gt;<BR>
Jun 30 13:29:06 server1 postfix/cleanup[7167]: 4B1F1140806B: message-id=&lt;</SPAN><A HREF="mailto:20090630162906.4B1F1140806B@server1.ccbsist.net"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">20090630162906.4B1F1140806B@server1.ccbsist.net</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">&gt;<BR>
Jun 30 13:29:06 server1 postfix/qmgr[6620]: 4B1F1140806B: from=&lt;</SPAN><A HREF="mailto:root@server1.ccbsist.net"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">root@server1.ccbsist.net</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">&gt;, size=347, nrcpt=1 (queue active)<BR>
Jun 30 13:29:16 server1 postfix/smtp[7169]: 4B1F1140806B: to=&lt;</SPAN><A HREF="mailto:josevaldirg@gmail.com"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">josevaldirg@gmail.com</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">&gt;, relay=none, delay=10, delays=0.01/0.02/10/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=</SPAN><A HREF="http://smtp.gmail.com"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">smtp.gmail.com</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"> type=A: Host not found, try again)</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Sempre deu certo quando usava o tutorial que tinha no </SPAN><A HREF="http://www.centosbr.org/"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">www.centosbr.org</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"> </SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"> </SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Deva ser algum comando que não estou lembrando aplicar.</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"> </SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Abraço</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">2009/6/30 Thiago Avelino &lt;</SPAN><A HREF="mailto:thiagoavelinoster@gmail.com"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">thiagoavelinoster@gmail.com</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">&gt;</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Isso pode lhe ajudar:<BR>
</SPAN><A HREF="http://www.vivaolinux.com.br/artigo/POSTFIX-+-SASL-Autenticando-em-SMTP-remoto/?pagina=3"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">http://www.vivaolinux.com.br/artigo/POSTFIX-+-SASL-Autenticando-em-SMTP-remoto/?pagina=3</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"><BR>
<BR>
2009/6/30 Jose Valdir Gama &lt;</SPAN><A HREF="mailto:josevaldirg@gmail.com"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">josevaldirg@gmail.com</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">&gt;:</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">Pessoal no site da </SPAN><A HREF="http://www.centosbr.org/"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">www.centosbr.org</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br">  tinha um belo tutorial sobre smtp<BR>
autenticado pelo postfix, mas infelizmente não existe mais, alguém por acaso<BR>
tem os passo a passo em arquivo  e poderia enviar para mim.<BR>
<BR>
 <BR>
Abraço<BR>
</SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br">_______________________________________________<BR>
CentOS-pt-br mailing list<BR>
</SPAN><A HREF="mailto:CentOS-pt-br@centos.org"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">CentOS-pt-br@centos.org</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"><BR>
</SPAN><A HREF="http://lists.centos.org/mailman/listinfo/centos-pt-br"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">http://lists.centos.org/mailman/listinfo/centos-pt-br</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"><BR>
</SPAN></P>
<BR>
<BR>
<BR>

<P DIR=LTR><SPAN LANG="pt-br">--<BR>
Thiago Avelino | </SPAN><A HREF="http://www.avelino.us/"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">www.avelino.us</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"><BR>
GPG Key: 0xD654489C<BR>
Linux User #<BR>
<BR>
<BR>
_______________________________________________<BR>
CentOS-pt-br mailing list<BR>
</SPAN><A HREF="mailto:CentOS-pt-br@centos.org"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">CentOS-pt-br@centos.org</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"><BR>
</SPAN><A HREF="http://lists.centos.org/mailman/listinfo/centos-pt-br"><SPAN LANG="pt-br"><U><FONT COLOR="#0000FF">http://lists.centos.org/mailman/listinfo/centos-pt-br</FONT></U></SPAN><SPAN LANG="pt-br"></SPAN></A><SPAN LANG="pt-br"></SPAN></P>

<P DIR=LTR><SPAN LANG="pt-br"><BR>
<BR>
</SPAN></P>
<BR>

<P DIR=LTR><SPAN LANG="pt-br">--<BR>
Sumare- SP<BR>
jgamasystem - Linux a toda Prova</SPAN></P>

</BODY>
</HTML>