Update 4. Port Forwarding authored by John Goerzen's avatar John Goerzen
--- ---
title: 4. Port Forwarding title: 4. Port Forwarding
--- ---
# Port Forwarding # Port Forwarding
**This is an optional step, but required if you want to use Thunderbird.** **This is an optional step, but required if you want to use Thunderbird.**
...@@ -9,7 +10,38 @@ There are a number of ways you can access the mail within your NNCPNET node. Pe ...@@ -9,7 +10,38 @@ There are a number of ways you can access the mail within your NNCPNET node. Pe
Edit your run.sh and add a new line right after the `docker run` line, like so: Edit your run.sh and add a new line right after the `docker run` line, like so:
`-p 127.0.0.1:20025:25 -p 127.0.0.1:20143:142 \` `-p 127.0.0.1:20025:25 -p 127.0.0.1:20143:143 \`
Now rerun `./run.sh`. Now rerun `./run.sh`.
At this point, from your host system, you should be able to do something like this:
```
$ telnet localhost 20025
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 examplenode.nncpnet.org ESMTP Exim 4.96 Thu, 03 Apr 2025 00:51:53 +0000
```
and
```
$ telnet localhost 20143
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS LOGINDISABLED] Dovecot (Debian) ready.
```
OK, IMAP and SMTP are working.
Note that IMAP is authenticated, but SMTP -- barring additional configuration -- is not.
# Next
Proceed to [Thunderbird](setup/05-thunderbird).
\ No newline at end of file