connect to gmail through a squid proxy in a rails app

434 views
Skip to first unread message

Robbie Shepherd

unread,
Aug 2, 2010, 6:27:36 AM8/2/10
to rails-...@googlegroups.com
Hi folks,

My rails 2.3.5 app is sitting on a sandboxed server that allows outbound access only through a squid proxy server. I'd like to use the exception notifier plugin to notify me when my app plays up. Does anyone know if there's a setting in ActionMailer::Base.smtp_settings that would allow this to happen through squid? Or is there a way to configure squid to support the smtp protocol?

Thanks
Robbie

Mikel Lindsaar

unread,
Aug 2, 2010, 7:47:41 AM8/2/10
to rails-...@googlegroups.com
On 02/08/2010, at 8:27 PM, Robbie Shepherd wrote:
> My rails 2.3.5 app is sitting on a sandboxed server that allows outbound access only through a squid proxy server. I'd like to use the exception notifier plugin to notify me when my app plays up. Does anyone know if there's a setting in ActionMailer::Base.smtp_settings that would allow this to happen through squid? Or is there a way to configure squid to support the smtp protocol?

Hi there Robbie,

squid is an HTTP and HTTPS proxy cache, it is not a POP3 or SMTP cache.

Having said that, your proxy cache is probably also a firewall, and you could open up ports 110 and 25 through to the gmail.com servers.

This has a complexity, as the pop.gmail.com and smtp.gmail.com have multiple IP Addresses... so this might make it difficult...

Your other alternative would be to setup a POP3 proxy and SMTP proxy, you can google both of those terms to find several.

Once the POP3 proxy and SMTP proxy is setup, you should just configure actionmailer as if you did not have a proxy and it should all be good.

If you need help with this professionally, feel free to contact me off list, otherwise, report back what you find and I am sure between all of us RoRo folk we can steer you in the right direction.

Regards


Mikel Lindsaar
http://rubyx.com/
http://lindsaar.net/


Matt Allen

unread,
Aug 2, 2010, 8:01:19 AM8/2/10
to rails-...@googlegroups.com
Gday Robbie;

We're using this http://postageapp.com in production, it might help your cause.

Matta

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-...@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceani...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

Robbie Shepherd

unread,
Aug 2, 2010, 8:17:42 AM8/2/10
to rails-...@googlegroups.com
thanks Guys. I'll take a look at postageapp, not sure if it will help me get past my squid proxies, but it looks interesting all the same.
Reply all
Reply to author
Forward
0 new messages