[opensuse] Redirecting port 25 to another server



I am using Postfix on SuSE 10.3.
I currently have relayhost set to my ISP, but I would like to
intelligently set up an SSH tunnel to another server based on my email
address:
For instance, when my email address is gaf@xxxxxxx, I want to set up an
ssh tunnel on port 25 to the blu.org server but if my email address is
not gaf@xxxxxxx, or one of the virtual domains, I would just like to go
to the ISP.

I can easily set up a script to set up the ssh tunnel to forward my
localhost port 25 to the blu mail server:
ssh -L 25:blu.org:25


Alternatively, I could redirect all the email through the blu server
simply by removing the relayhost from main.cf, and setting up the tunnel
permanently (or by cron).

So, what I am looking for is:
1. An opinion on whether I should just send all my email out on the ssh
tunnel. or

2. Set up the intelligent postfix script.

I can also set up my mail client to use the ISP directly for outgoing
email on my ISP mail address.

--
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Re: How to prevent or quickly fix hosed ssh tunnels
    ... >(unpredictable intervals), the ssh tunnel gets hosed. ... I'd say your ISP has no business changing your IP while you have ... FIN from your peer. ...
    (comp.security.ssh)
  • Re: mysql connection through ssl tunnel
    ... I'd like to allow the application server to access mysql ... I've never set up an SSH tunnel. ... And that's through PF firewalls on both machines, which added flavor to the exercise;-) ...
    (freebsd-questions)
  • Re: mysql connection through ssl tunnel
    ... I'd like to allow the application server to access mysql ... I've never set up an SSH tunnel. ... If autossh watches over my ssh tunnel, who or what watches over autossh? ...
    (freebsd-questions)
  • NOQUEUE messages when using SSH tunnel
    ... I have configured an SSH tunnel on a new laptop, ... send mail through my server I get the following familiar message: ... Is this issue with Sendmail or my mail client/tunnel setup? ... -- My client is configured to 'localhost:2500' for outgoing mail. ...
    (comp.mail.sendmail)
  • Re: OT: BBC iPlayer
    ... they can run the proxy for you. ... In summary your task is to set up an SSH tunnel to your server in the UK, there are many resources on the internet which instruct you how to do this; but this is my brief take on it, others may care to "flesh" it out. ... forward an outside port say 5122 to port 22 on your server. ...
    (uk.comp.sys.mac)