domingo, 30 de mayo de 2010

WHM SMTP Tweak error - Falla Envío de Emails con Exim

C: Los emails no se envían
H: Mmm, me parece que si, porque el servidor los saca de la cola.
C: A mi me rebotan todos...
H: Dejame ver... Si, rebotan... Voy a investigar.


root@vps9885 [~]# tail -f /var/log/exim_mainlog
2010-05-30 21:31:42 H=(PC997122301552) [186.110.109.39] Warning: Sender rate 4.3 / 1h
2010-05-30 21:31:45 1OIsut-0005lE-Ao <= info@h4informatica.com.ar H=(PC997122301552) [186.110.109.39] P=esmtpsa X=TLSv1:RC4-MD5:128 A=fixed_login:info@h4informatica.com.ar S=1494 id=66AB4B601D484B30A177C1676CAA0AD5@PC997122301552 2010-05-30 21:31:48 1OIsut-0005lE-Ao alt2.gmail-smtp-in.l.google.com [209.85.211.56] Connection refused 2010-05-30 21:31:51 1OIsut-0005lE-Ao alt4.gmail-smtp-in.l.google.com [209.85.219.57] Connection refused 2010-05-30 21:31:51 1OIsut-0005lE-Ao == hectorhuergo@gmail.com R=lookuphost T=remote_smtp defer (111): Connection refused 2010-05-30 21:31:51 1OIsut-0005lE-Ao ** hectorhuergo@gmail.com: retry timeout exceeded 2010-05-30 21:31:51 1OIsv1-0005Ap-Rd <= <> R=1OIsut-0005lE-Ao U=mailnull P=local S=2354
2010-05-30 21:31:51 1OIsut-0005lE-Ao Completed
2010-05-30 21:31:51 1OIsv1-0005Ap-Rd => info R=virtual_user T=virtual_userdelivery
2010-05-30 21:31:51 1OIsv1-0005Ap-Rd Completed


Entonces, el problema puede ser local?

2010-05-30 21:31:51 1OIsut-0005lE-Ao == hectorhuergo@gmail.com R=lookuphost T=remote_smtp defer (111): Connection refused

Este mensaje de conexión rechazada...

Veamos las reglas del firewall:


root@vps9885 [~]# iptables -L output
iptables: No chain/target/match by that name
root@vps9885 [~]# iptables -L OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
VZ_OUTPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere vps9885 tcp dpt:smtp
REJECT tcp -- anywhere anywhere tcp dpt:smtp reject-with icmp-port-unreachable
acctboth all -- anywhere anywhere
root@vps9885 [~]# iptables -D OUTPUT 4
root@vps9885 [~]# iptables -L OUTPUT
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
VZ_OUTPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere vps9885 tcp dpt:smtp
acctboth all -- anywhere anywhere
root@vps9885 [~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
root@vps9885 [~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter nat [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]


Y si, el problema estaba en que el firewall tenía una regla que Rechazaba
cualquier conexión SMTP que no se haga sobre el servidor local.
Esto es lo que hace SMTP Tweak, evitar que el servidor haga Relay.
El error está en que al Deshabilitar SMTP Tweak, no se borran las reglas de
iptables creadas. La solución es eliminarlas manualmente.

Ahora, funciona.

H4
Publicar un comentario