I am using Ruby MRI 2.0.0 and Rails 3.2.12 on a Ubuntu 12.04 TLS VPS and attempting to setup email notifications in my app. It was working fine a few days ago, but n
Here is also a temporary fix that may come in handy while waiting for your hosting provider to fix the issue:
Add the following lines to /etc/sysctl.conf:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Now reload the sysctl service using the following command:
sudo sysctl -p
Now the apps are able to send emails again.
You can always know if IPv6 is enabled calling
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
from terminal. Two possible answers: 0 => IPv6 is enabled; 1 => IPv6 disabled.
From: https://serverfault.com/questions/512744/timeout-error-in-all-my-apps-for-every-call-to-smtp-servers