[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@blu.org, I want to set up an ssh tunnel on port 25 to the blu.org server but if my email address is not gaf@blu.org, 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@blu.org> Boston Linux and Unix PGP key id: 537C5846 PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
participants (1)
-
Jerry Feldman