Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:e-mail-advanced [2012/01/08 20:02] memnontutorials:e-mail-advanced [2014/03/01 18:15] (current) – Tunnel to `mail.sdf-eu.org' instead of just `mail' memnon
Line 161: Line 161:
 === Introduction === === Introduction ===
  
-Using SSH's port-forwarding capabilities, MetaARPA members can create an encrypted tunnel which makes the SDF SMTP mail server appear local, avoiding need for authentication or additional encryption.+Using SSH's port-forwarding capabilities, MetaARPA members can create an encrypted tunnel which makes the SDF[-EU] SMTP mail server appear local, avoiding need for authentication or additional encryption.
  
 Prerequisites: Prerequisites:
-* SDF MetaARPA membership +  * SDF[-EU] MetaARPA membership 
-* SSH plus suitable MUA (email program) +  * SSH plus suitable MUA (email program) 
-* public key authentication (optional) +  * public key authentication (optional) 
  
 === Tunnel Construction === === Tunnel Construction ===
  
 Port-forwarding can occur on ports 53, 110, 143, 443, and 993 on most SDF hosts. Port-forwarding can occur on ports 53, 110, 143, 443, and 993 on most SDF hosts.
 +On **SDF-EU**, use [[http://sdfeu.org/faq:basics08|these ports]]: 465, 587, 995, 996 1025, 8080 and 7070.
  
 ex: ex:
-Use port 443 on SDF host "otaku", tunnel local port 2525 to port 25 on SDF host "mx" (SMTP server); restrict ssh to IPv4, no remote commands, run in background after connecting:+Use port 465 on SDF-EU host "odin", tunnel local port 2525 to port 25 on SDF-EU host "mail" (SMTP server); restrict ssh to IPv4, no remote commands, run in background after connecting:
  
-    %  ssh -4 -fN -p 443 -L 2525:mx:25 sdf_user@otaku.sdf.org+    %  ssh -4 -fN -p 465 -L 2525:mail.sdf-eu.org:25 sdf_user@odin.sdf-eu.org
  
 Note if public key authentication isn't setup a password prompt occurs. Note if public key authentication isn't setup a password prompt occurs.
-Tunnel Test:+ 
 +=== Tunnel Test ===
  
 telnet(1) can be used; type "quit" to exit session: telnet(1) can be used; type "quit" to exit session:
Line 186: Line 188:
     Connected to localhost.     Connected to localhost.
     Escape character is '^]'.     Escape character is '^]'.
-    220 sdf.lonestar.org ESMTP Sendmail 8.14.5/8.14.3; Tue 13 Dec 2011 07:45:59 GMT +    220 sdf-eu.org ESMTP Sendmail 8.14.4/8.14.3; Sun, 8 Jan 2012 20:19:59 GMT 
-    quit +    ^] 
-    221 2.0.0 sdf.lonestar.org closing connection +    telnet> quit 
-    Connection closed by foreign host.+    Connection closed
  
 === Tunnel Usage === === Tunnel Usage ===
Line 201: Line 203:
     # $HOME/.nailrc     # $HOME/.nailrc
     set smtp="localhost:2525"     set smtp="localhost:2525"
-    set from="You <someone@sdf.org>" +    set from="You <someone@sdf-eu.org>" 
-    set replyto="You <someone@sdf.org>" +    set replyto="You <someone@sdf-eu.org>" 
  
     %  hmail -v someone@sdf.org     %  hmail -v someone@sdf.org
Line 210: Line 212:
     Resolving host localhost . . . done.     Resolving host localhost . . . done.
     Connecting to 127.0.0.1:2525 . . . connected.     Connecting to 127.0.0.1:2525 . . . connected.
-    220 sdf.lonestar.org ESMTP Sendmail 8.14.5/8.14.3; Tue13 Dec 2011 08:21:22 GMT+    220 sdf-eu.org ESMTP Sendmail 8.14.4/8.14.3; Sun8 Jan 2012 20:29:22 GMT
     >>> HELO mud.bog     >>> HELO mud.bog
-    250 sdf.lonestar.org Hello IDENT:root@otaku.sdf.org [192.94.73.6], pleased to meet you +    250 sdf-eu.org Hello odin [178.63.35.194], pleased to meet you 
-    >>> MAIL FROM: +    >>> MAIL FROM:<someone@sdf-eu.org> 
-    250 2.1.0 ... Sender ok +    250 2.1.0 <someone@sdf-eu.org>... Sender ok 
-    >>> RCPT TO: +    >>> RCPT TO:<someone@sdf.org> 
-    250 2.1.5 ... Recipient ok+    250 2.1.5 <someone@sdf.org>... Recipient ok
     >>> DATA     >>> DATA
     354 Enter mail, end with "." on a line by itself     354 Enter mail, end with "." on a line by itself
     >>> .     >>> .
-    250 2.0.0 pBD8LM7d000515 Message accepted for delivery+    250 2.0.0 q08KTMoc023275 Message accepted for delivery
     >>> QUIT     >>> QUIT
-    221 2.0.0 sdf.lonestar.org closing connection+    221 2.0.0 sdf-eu.org closing connection
  
 === Tunnel Teardown === === Tunnel Teardown ===
Line 272: Line 274:
   * Setting up [[http://sdfeu.org/tutorials:ssh-sdf#public_key|Public Key Authentication]]   * Setting up [[http://sdfeu.org/tutorials:ssh-sdf#public_key|Public Key Authentication]]
   * OpenSSH FAQ: How do I use [[http://openssh.com/faq.html#2.11|Port Forwarding]]?   * OpenSSH FAQ: How do I use [[http://openssh.com/faq.html#2.11|Port Forwarding]]?
 +
 +$Id: e-mail-advanced.html,v 1.17 2012/01/06 21:53:01 jgw Exp $