From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33775 Path: main.gmane.org!not-for-mail From: Kevin Falcone Newsgroups: gmane.emacs.gnus.general Subject: Re: smtp - can it be ssh tunneled? Date: 19 Dec 2000 16:45:44 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169820 26896 80.91.224.250 (21 Oct 2002 03:10:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:10:20 +0000 (UTC) Cc: Harry Putnam Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 5AC52D049D for ; Tue, 19 Dec 2000 16:46:30 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB07357; Tue, 19 Dec 2000 15:46:29 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 19 Dec 2000 15:45:47 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA27075 for ; Tue, 19 Dec 2000 15:45:36 -0600 (CST) Original-Received: from sierra.seas.upenn.edu (sierra.seas.upenn.edu [158.130.64.180]) by mailhost.sclp.com (Postfix) with ESMTP id 56959D049D for ; Tue, 19 Dec 2000 16:45:57 -0500 (EST) Original-Received: from bowline.jibsheet.com (root@BLUE.SEAS.UPENN.EDU [158.130.64.177]) by sierra.seas.upenn.edu (8.9.3/8.9.3) with ESMTP id QAA23441 for ; Tue, 19 Dec 2000 16:45:50 -0500 (EST) Original-Received: (from kevin@localhost) by bowline.jibsheet.com (8.9.3/8.9.3) id QAA06452; Tue, 19 Dec 2000 16:45:44 -0500 Original-To: ding@gnus.org X-Attribution: KF X-PGP-Fingerprint: 3376 85CF 2B83 B265 E145 0371 D3E8 0A5A 9E42 250A In-Reply-To: Original-Lines: 36 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33775 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33775 >>>>> "HP" == Harry Putnam writes: HP> I don't really understand ssh port forwarding but is it possible HP> to forward the port that my outgoing mail uses to my ISPs smtp HP> port and dump my mail in that way? If you use smtpmail.el to send mail, then ssh -L 2525:mail.server:25 shell.server will point port 2525 on the localhost to 25 on the mailserver, bouncing it through the shell.server so that it appears that the smtp conversation is coming from the shell.server. HP> Or maybe the opposite way round. Ssh to the ISP machine then HP> forward port 25 to my home machine. And aim sendmail at HP> `localhost 25' or something similar. I do this: ssh -C -q -L 2525:sierra.seas.upenn.edu:25 blue.seas.upenn.edu then I twiddled sendmail.cf (not recommended) for the Msmtp Mesmtp Msmtp8 and Mrelay lines to say localhost 2525 instead of localhost 25 So, gnus invokes sendmail on bowline.jibsheet.com, whose sendmail relays through sierra.seas.upenn.edu using the ssh port forward from 2525 to 25. If you want more details, feel free to reply offlist. -kevin -- "Never go in against a sicilian when death is on the line" -- Vizzini in "The Princess Bride"