Tem um artigo que fiz há algum tempo atrás que fala sobre envio com multiplos IPs, mas em estilo "round robin" utilizando Postfix+MySQL+Stored Procedures.
http://rgadelha.wordpress.com/2011/10/13/postfix-balanceando-carga-de-e-mails-de-saida-entre-varios-links/ Em 17 de fevereiro de 2012 12:27, Marcos Carraro <marcos.g.carr...@gmail.com > escreveu: > Sempre é bem vindo a ajuda. > No aguardo, > abraços > *--* > Att > Marcos Carraro > marcoscarraro.blogspot.com > > > > Em 17 de fevereiro de 2012 11:41, Ricardo Walter > <ricardoa.wal...@gmail.com>escreveu: > > > Consegui resolver colocando 200 na frente do ":" ficando assim: > > echo "200 :\n"; > > > > Se vocês tiverem interesse posso postar o script completo assim que > > finalizar ele. > > > > Em 17 de fevereiro de 2012 09:35, Julio Cesar Covolato > > <ju...@psi.com.br>escreveu: > > > > > Tente mudar: > > > > > > de > > > > > > > > > transport_maps = tcp:[127.0.0.1]:2527 > > > > > > para > > > transport_maps = smtp:[127.0.0.1]:2527 > > > > > > > > > ----------------------------- > > > _ Julio Cesar Covolato > > > 0v0<ju...@psi.com.br> > > > /(_)\ F: 55-11-3129-3366 > > > ^ ^ PSI INTERNET > > > ----------------------------- > > > > > > > > > Em 16/02/2012 20:31, Ricardo Walter escreveu: > > > > > >> Olá pessoal, > > >> estou tentando fazer o meu postfix fazer o envio através de diversos > ips > > >> porém estou com um problema, o postfix não está entregando os emails > > >> locais. > > >> > > >> Configuração que adicionei no master.cnf > > >> 127.0.0.1:2527 inet n n n - 1 spawn > > >> user=nobody argv=/etc/postfix/ip_rand.php > > >> > > >> ip1 unix - - n - - smtp > > >> -o syslog_name=postfix-ip1 > > >> -o smtp_helo_name=sender.**meudominio.com.br< > > http://sender.meudominio.com.br> > > >> -o smtp_bind_address=192.168.0.1 > > >> > > >> ip2 unix - - n - - smtp > > >> -o syslog_name=postfix-ip2 > > >> -o smtp_helo_name=sender2.**meudominio.com.br< > > http://sender2.meudominio.com.br> > > >> -o smtp_bind_address=192.168.0.2 > > >> > > >> ip3 unix - - n - - smtp > > >> -o syslog_name=postfix-ip3 > > >> -o smtp_helo_name=sender3.**meudominio.com.br< > > http://sender3.meudominio.com.br> > > >> -o smtp_bind_address=192.168.0.3 > > >> > > >> Configuração que adicionei no main.cnf > > >> transport_maps = tcp:[127.0.0.1]:2527 > > >> 127.0.0.1:2527_time_limit = 3600s > > >> > > >> Logs do postfix: > > >> Feb 16 17:21:30 sender postfix/trivial-rewrite[2281]: warning: read > TCP > > >> map > > >> reply from [127.0.0.1]:2527: malformed reply: : > > >> Feb 16 17:21:30 sender postfix/trivial-rewrite[2281]: warning: > > >> transport_maps lookup failure > > >> Feb 16 17:21:30 sender postfix/error[2290]: 9B5B577AB1: to=< > > >> e...@meudominio.com>, relay=none, delay=0.05, delays=0.01/0.04/0/0.01, > > >> dsn=4.3.0, status=deferred (address resolver failure) > > >> > > >> E em anexo o script. Acredito que o problema esteja na linha 55 ( echo > > >> ":\n"; ), porém tentei de diversas maneiras e não está funcionando. Se > > eu > > >> colocar o mysql no lugar do meu script funciona: > > >> transport_maps = proxy:mysql:/etc/postfix/**mysql-virtual/ > transports.cf > > >> > > >> Porém ai perco a funcionalidade de ips randomicos. > > >> > > >> Fiz as confs e o script me baseando nesse tuto[1], a minha idéia é > > chegar > > >> nesse formato de envio por intervalo de tempo, porém fiz o script em > php > > >> pra testar mesmo, depois irei incrementar ele (se possivel) > > >> > > >> Alguém pode me dar uma mão? > > >> > > >> [1] > > >> http://www.kutukupret.com/**2011/11/15/postfix-changing-** > > >> outgoing-ip-by-time-interval-**using-tcp_table-and-perl/< > > > http://www.kutukupret.com/2011/11/15/postfix-changing-outgoing-ip-by-time-interval-using-tcp_table-and-perl/ > > > > > >> > > >> > > >> ______________________________**_________________ > > >> Postfix-BR mailing list > > >> Postfix-BR@listas.**softwarelivre.org< > > Postfix-BR@listas.softwarelivre.org> > > >> http://listas.softwarelivre.**org/mailman/listinfo/postfix-**br< > > http://listas.softwarelivre.org/mailman/listinfo/postfix-br> > > >> > > > ______________________________**_________________ > > > Postfix-BR mailing list > > > Postfix-BR@listas.**softwarelivre.org< > > Postfix-BR@listas.softwarelivre.org> > > > http://listas.softwarelivre.**org/mailman/listinfo/postfix-**br< > > http://listas.softwarelivre.org/mailman/listinfo/postfix-br> > > > > > _______________________________________________ > > Postfix-BR mailing list > > Postfix-BR@listas.softwarelivre.org > > http://listas.softwarelivre.org/mailman/listinfo/postfix-br > > > _______________________________________________ > Postfix-BR mailing list > Postfix-BR@listas.softwarelivre.org > http://listas.softwarelivre.org/mailman/listinfo/postfix-br > -- Ramon Gadelha C. Marques ------------------------------------------------------- LPIC-3 Core Novell Certified Linux Administrator (CLA) Novell Data Center Technical Specialist VMware Sales Professional VMware Technical Sales Professional TCSP Certification: Worry-Free Business Security 6.0 TCSP Certification: OfficeScan 10.0 TCSP Certification: Intrusion Defense Firewall (IDF) 1.2 TCSP Certification: ScanMail Exchange 10.0 TCSP Certification: Control Manager 5.0 TCTP Trend Micro Certified Threat Professional Trend Micro Foundation Certification (TFC) _______________________________________________ Postfix-BR mailing list Postfix-BR@listas.softwarelivre.org http://listas.softwarelivre.org/mailman/listinfo/postfix-br