Firewall blocks outgoing email

Posted by Martin Trigaux on Server Fault See other posts from Server Fault or by Martin Trigaux
Published on 2012-03-25T15:02:06Z Indexed on 2012/03/25 17:32 UTC
Read the original article Hit count: 196

Filed under:
|

On my Debian server running a Django website, I have an error when I need to send an email.

The error received is

Exception Type: gaierror Exception Value:

[Errno -2] Name or service not known

Exception Location: /usr/lib/python2.6/socket.py in create_connection, line 547

You can see the full error log here.

After testing, it seems it is my firewall that blocks the request. You can see my iptable file (/etc/init.d/firewall). I think the problem comes from the two commented lines that were supposed to accepts all established connections.

When I uncomment them, I have an error iptables: No chain/target/match by that name.

Thank you

© Server Fault or respective owner

Related posts about debian

Related posts about firewall