<div class="gmail_quote">On Tue, Sep 11, 2012 at 3:27 PM, ashish makani <span dir="ltr"><<a href="mailto:ashish.makani@gmail.com" target="_blank">ashish.makani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Marc,<div>your 3rd point, </div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
you could establish a VPN tunnel to some server outside of the university's network and send from port 587 on THAT machine.  Complicated, weird, and not horribly secure.  But doable.</blockquote></div><div>Could you point me to a good link/resource on how to do this ?</div>
</blockquote><div><br></div></div>Hmmm... having said that, I'm puzzling over the simplest way to actually do it.  First idea (based on stuff I've set up in the past):<br>-  at your outside location, set up a VPN endpoint/router, with your SMTP server sitting behind it<br>
-  on your computer inside the university's network, install a VPN client and establish the tunnel before launching your script<br><br>I am very fond of <a href="http://www.pfsense.org">pfSense</a> as a router/firewall; it has <a href="http://openvpn.net/index.php/open-source.html">OpenVPN</a> support baked in, and if you install the "OpenVPN Client Export Utility" package (a single click, once pfSense is installed) it will export a ready-made configuration file for the remote machine.  <br>
<br>Two things:<br>-  as I said, this is a complicated and weird way to do this, although it's probably more secure than I thought when I first mentioned it.  But it's probably NOT the best way to go about it.<br>
-  somebody out there, with better Python chops than I, will no doubt point out a way to do the same thing all in Python.  Even if this were the proper approach, I'm not guaranteeing it's the best way to implement it.<br>
<br>If you do decide to go this way, you'll need a machine (it could even be a virtual machine, but I find it much simpler to use an old junker PC with two network cards) to run pfSense, and of course an SMTP server.  <br>
I'd just like to add a quick endorsement for pfSense in general, by the way - it's free and open-source, but I have yet to find anything it doesn't do, and do well, compared to Cisco/Juniper/SonicWall/etc.  Of course, the old junker PC you run it on needs to be in decent working condition - stable power supply (and power!), no flaky memory or unstable NICs - but it doesn't need to be very new or very powerful.<br>