This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorials:e-mail-advanced [2012/01/08 20:02] – memnon | tutorials:e-mail-advanced [2012/01/08 20:40] – Adapt examples to sdf-eu memnon | ||
---|---|---|---|
Line 164: | Line 164: | ||
Prerequisites: | Prerequisites: | ||
- | * SDF 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:// | ||
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 " | telnet(1) can be used; type " | ||
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/ | + | 220 sdf-eu.org ESMTP Sendmail 8.14.4/ |
- | | + | |
- | | + | |
- | Connection closed | + | Connection closed |
=== Tunnel Usage === | === Tunnel Usage === | ||
Line 199: | Line 201: | ||
to use " | to use " | ||
- | # $HOME/.nailrc | + | # $HOME/.mailrc |
set smtp=" | set smtp=" | ||
- | set from=" | + | set from=" |
- | set replyto=" | + | set replyto=" |
- | % | + | % |
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: | Connecting to 127.0.0.1: | ||
- | 220 sdf.lonestar.org ESMTP Sendmail 8.14.5/ | + | 220 sdf-eu.org ESMTP Sendmail 8.14.4/ |
>>> | >>> | ||
- | 250 sdf.lonestar.org Hello IDENT: | + | 250 sdf-eu.org Hello odin [178.63.35.194], pleased to meet you |
- | >>> | + | >>> |
- | 250 2.1.0 ... Sender ok | + | 250 2.1.0 < |
- | >>> | + | >>> |
- | 250 2.1.5 ... Recipient ok | + | 250 2.1.5 < |
>>> | >>> | ||
354 Enter mail, end with " | 354 Enter mail, end with " | ||
>>> | >>> | ||
- | 250 2.0.0 pBD8LM7d000515 | + | 250 2.0.0 q08KTMoc023275 |
>>> | >>> | ||
- | 221 2.0.0 sdf.lonestar.org closing connection | + | 221 2.0.0 sdf-eu.org closing connection |
=== Tunnel Teardown === | === Tunnel Teardown === |