[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Relay over SSH tunnel with Postfix?



On Fri, Apr 21, 2006 at 01:58:45PM -0400, Roberto C. Sanchez wrote:
>Magnus Therning wrote:
>> Currently I'm experiencing some problems with sending emails from work.
>> The mail server seems to let through some emails, but not all. Most
>> irritating of all emails to this list don't seem to reach the list :-(
>> This has given me enough incentive to look into solutions that would let
>> me send emails without going through they flakey mail servers at work.
>> 
>> What I was considering was a setup with a local postfix relaying email
>> over an SSH tunnel to a server.
>> 
>> Does anyone any good resource for this (besides Google, please :-)?
>> 
>> /M
>> 
>
>You could try `ssh -L 25:localhost:25 you@your.server`
>
>Of course, that requires that you be root.  If that will not work, use
>port 2525 on the first part of the tunnel specification and then
>configure your MUA to use port 2525 on localhost.

Yes, I've tried that and it works fine, now I want to automate it.
Ideally the tunnel would be created on demand, when postfix needs to
flush its spool. Can I do that?

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus@therning.org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
     -- David Gelernter

Attachment: pgpwNHXMwryZa.pgp
Description: PGP signature


Reply to: