You don't know local IP except that it will be in that block (cidr). In practice, my first VPN instance will use 10.8.0.6. I don't recall what is used when I run two VPNs.
But I get your point. Original Message From: wie...@porcupine.org Sent: August 1, 2017 7:46 AM To: postfix-users@postfix.org Reply-to: postfix-users@postfix.org Subject: Re: Specify VPN for postfix Yubin Ruan: > Can anyone tell me how to point postfix to a VPN connection? I have > setup a VPN listening at background on my Ubuntu and I want to point > postfix to that listening port whenever postfix try to connect to the > internet. Wietse: > You specify > /etc/postfix/main.cf: > relayhost = smtp:[host on other side of tunnel] Gary Sellani: > Could the host be something like 10.8.0.0/24? I wrote 'host' not 'network block'. Consider the network as a collection of layers. An example applicable to Postfix looks like: physical layer (ethernet), network layer (IP), transport layer (TCP), and application layer (SMTP). In this architecture, an SMTP destination is a domain or host, where the host may be specified as an IP address. It's not an IP address block nor is it an ethernet broadast domain. Wietse