Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorials:e-mail-advanced [2012/01/08 20:02] memnontutorials:e-mail-advanced [2012/01/08 20:40] – Adapt examples to sdf-eu memnon
Line 164: Line 164:
  
 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: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 199: Line 201:
 to use "localhost:2525" for SMTP (off-site email): to use "localhost:2525" for SMTP (off-site email):
  
-    # $HOME/.nailrc+    # $HOME/.mailrc
     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+    %  heirloom-mailx -v someone@sdf.org
     Subject: tunneled SMTP test     Subject: tunneled SMTP test
     test 123     test 123
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 ===