Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-24 Thread Patrick O'Callaghan
On Tue, 2020-03-24 at 10:55 +0800, Ed Greshko wrote: > On 2020-03-24 04:45, Patrick O'Callaghan wrote: > > On Tue, 2020-03-24 at 03:27 +0800, Ed Greshko wrote: > > > On 2020-03-23 23:06, Ranjan Maitra wrote: > > > > Yes, indeed. Can it be paused while VPN is not up? And btw, postfix is > > > > sta

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ed Greshko
On 2020-03-24 12:50, Tim via users wrote: > On Mon, 2020-03-23 at 10:06 -0500, Ranjan Maitra wrote: >> btw, postfix is started via systemd but not VPN, that is, it is not >> started via systemd. > What about, using whatever method you use to start and stop VPN, you > include start and stop command

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Tim via users
On Mon, 2020-03-23 at 10:06 -0500, Ranjan Maitra wrote: > btw, postfix is started via systemd but not VPN, that is, it is not > started via systemd. What about, using whatever method you use to start and stop VPN, you include start and stop commands for postfix? -- uname -rsvp Linux 3.10.0-10

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Tim via users
On Mon, 2020-03-23 at 08:20 -0500, Ranjan Maitra wrote: > I am using postfix to deliver my work mail from a remote location. > This works fine when I am on VPN (the postfix traffic goes through > VPN then). However, it gets identified as spam when VPN is not up. > Since most people do not routinely

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ed Greshko
On 2020-03-24 04:45, Patrick O'Callaghan wrote: > On Tue, 2020-03-24 at 03:27 +0800, Ed Greshko wrote: >> On 2020-03-23 23:06, Ranjan Maitra wrote: >>> Yes, indeed. Can it be paused while VPN is not up? And btw, postfix is >>> started via systemd but not VPN, that is, it is not started via systemd

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Patrick O'Callaghan
On Tue, 2020-03-24 at 03:27 +0800, Ed Greshko wrote: > On 2020-03-23 23:06, Ranjan Maitra wrote: > > Yes, indeed. Can it be paused while VPN is not up? And btw, postfix is > > started via systemd but not VPN, that is, it is not started via systemd. > > How about running postfix in a VM where the

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ed Greshko
On 2020-03-23 23:06, Ranjan Maitra wrote: > Yes, indeed. Can it be paused while VPN is not up? And btw, postfix is > started via systemd but not VPN, that is, it is not started via systemd. How about running postfix in a VM where the VPN is always up? -- The key to getting good answers is to a

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ranjan Maitra
On Mon, 23 Mar 2020 22:58:25 +0800 Ed Greshko wrote: > On 2020-03-23 22:49, Kai Bojens wrote: > > Am 2020-03-23 14:20, schrieb Ranjan Maitra: > > > >> So, I am wondering if I could please set up my services for postfix to > >> be delayed unless/until VPN is up and running. If so, how do I go > >>

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Ed Greshko
On 2020-03-23 22:49, Kai Bojens wrote: > Am 2020-03-23 14:20, schrieb Ranjan Maitra: > >> So, I am wondering if I could please set up my services for postfix to >> be delayed unless/until VPN is up and running. If so, how do I go >> about doing this? > > If your VPN is started via systemd you shoul

Re: OT: delaying postfix until/unless VPN is up/connected

2020-03-23 Thread Kai Bojens
Am 2020-03-23 14:20, schrieb Ranjan Maitra: So, I am wondering if I could please set up my services for postfix to be delayed unless/until VPN is up and running. If so, how do I go about doing this? If your VPN is started via systemd you should take a look at Wants, Requires, Before, and Afte