Answer was 587. iptables -A OUTPUT -p tcp -m tcp --dport 587 -j ACCEPT
On Wednesday, February 5, 2014 4:26:38 PM UTC+5:30, Jayadevan M wrote: > > Yes. I stopped iptables and the program worked. Kindly let me know which > port I should open. > > On Wednesday, February 5, 2014 4:17:28 PM UTC+5:30, Jayadevan M wrote: >> >> When I try to execute the email program, I get this error - >> web2py - WARNING - Mail.send failure:[Errno 111] Connection refused >> I think iptables on the machine where web2py is running is blocking the >> request. Which port should I open to let this through? >> The code works on my m/c, which does not have iptables enabled. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.