On Mon, Mar 23, 2020 at 01:04:44PM -0500, Ranjan Maitra wrote:
> So, I am wondering if I it is possible to have a setup whereby postfix is
> delayed unless/until VPN is up and running. If VPN is down, then I would like
> postfix to be delayed until such time as it comes up. If it is possible, how
> do I go about doing this? Other ideas?
I would just reject SMTP connections outgoing on your non-VPN interfaces.
| iptables -A OUTPUT -o $vpn -m tcp --dport 25 -j ACCEPT
| iptables -A OUTPUT -m tcp --dport 25 -j REJECT
Bastian
--
Each kiss is as the first.
-- Miramanee, Kirk's wife, "The Paradise Syndrome",
stardate 4842.6