Dnia 10.10.2020 o godz. 16:04:30 Ranjan Maitra pisze:
> 
> I have postfix running on both my home and office machines. I am able to
> send e-mail from my office machine (that uses my employer's mailhub, etc),
> but not from my home machine when using my office e-mail address as the
> sender's address.  However, I am able to connect via ssh+vpn with 2FA to
> my office machine.  My question is: can I set my home machine's postfix up
> such that I can send e-mail through the ssh tunnel to my office machine
> (sorry for my non-technical description).  How do I do this, if possible?

When you are connected via VPN to your corporate network, it should already
be possible to use your employer's mailhub, since your home machine is
already "inside" the corporate network - no need to setup an additional SSH
tunnel to your office machine. That's at least my experience on how the
corporate VPNs work.

You only need to configure Postfix so that it sends mail via your
employer's mailhub if the sender address is your office address. That would
be sender_dependent_transport_maps, I think? Certainly other people on this
list can advice on the configuration part better than me.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to