2
votes

I am running an nginx webserver with unicorn_rails running happily in production at the moment but the Actionmailer cannot send when I try to use my gmail account through the proxy.

My gmail is set up as shown in this link: http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail

SSH, webmin, https and everything else I have open work fine, just not smtp in actionmailer. It is possible something is strange with the interfaces as ping uses lo by default and trying telnet smtp.gmail.com 587 does nothing.

1

1 Answers

0
votes

I fixed it by changing the line in /etc/network/interfaces that reads auto lo to auto eth0 then used ifconfig lo down and shutdown -r now and ifconfig lo up. For some reason this made ping 8.8.8.8 actually work without setting an interface and telnet smtp.gmail.com 587 to return the correct code.

Still unsure as to how my network interfaces defaulted to lo but the mail server is working now. It had nothing to do with my proxy in the end which I rightly thought was set up correctly.