dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 180 forks source link

Know when there is outbound mail stuck in Apple Mail, suspend VPN, configure MacProxy #440

Closed mrjcleaver closed 7 years ago

mrjcleaver commented 8 years ago

Some of my clients require I use their VPN when working for them. The problem is they have firewalls that prevent SMTP connections.

So I respond to emails. And then sometime later I realize the email got stuck.

I have two strategies:

I'd like this to be automatic.

So I need:

Are any of these doable?

Thanks, Martin

wedi commented 7 years ago

In your case I would just add a static route.

See e.g. https://support.hidemyass.com/hc/en-us/articles/202720646-How-to-let-websites-and-IPs-bypass-the-VPN-using-static-routing how to do it.

Alternatively you could write a shell script that checks if the SMTP connection is available if not:

mrjcleaver commented 7 years ago

Thanks Dirk!