Dennis Putnam:
> I am occasionally using a VPN connection and while that connection is
> up, postfix uses the wrong NIC to try to send email. When there is no
> VPN connection, postfix uses the primary NIC named enp0s25. At the same
> time there is another NIC named virbr0 created an used for VirtualBox.
> In any case when the VPN is connected, the NIC is tun0 but instead of
> using that or the primary NIC, postfix tries to use virbr0. How do I
> configure postfix to use tun0, if it is up, otherwise enp0s25? TIA.

Postfix does not choose NICs. Your routing table determines the
interface, based on the destination IP address.

Possible solution: configure Postfix to use the VM as its relayhost
then set up Postfix on the VM.

        Wietse

Reply via email to