🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264508

Re: stunnel

#264508
From: Ralph Fox
Date: Thu, 19 Nov 2020 09:28
89 lines
4812 bytes
On Tue, 17 Nov 2020 17:16:29 -0500, Tekkie© wrote:

> I use Microplanet Gravity and it posts to groups fine. But emailing is a 
> problem. Pouring over the docs it seems that I need to run stunnel or OpenSSL 
> for it to connect through to the mail server. Can anyone guide me through this?


1.  The general idea is that 
      1.1  You install STunnel;
      1.1  You configure your email client to connect to STunnel, 
           instead of to your mail server;
      1.2  You configure STunnel to accept the connection from your 
           email client and to forward the connection to your mail 
           server.

    [Diagram best viewed in a fixed-pitch font]

   |===================== YOUR COMPUTER =====================|        |============ THE INTERNET ============|

    +---------+  OUTBOUND MAIL SERVER         +---------+  FORWARD TO                  +--------------------+
    ¦         ¦------------------------------>¦         ¦----------------------------->¦  SMTP mail server  ¦
    ¦  Email  ¦  localhost port 8025, no SSL  ¦         ¦  smtp.xyz.com port 465, SSL  +--------------------+
    ¦  client ¦                               ¦ STunnel ¦
    ¦         ¦  INBOUND MAIL SERVER          ¦         ¦  FORWARD TO                  +--------------------+
    ¦         ¦------------------------------>¦         ¦----------------------------->¦  POP3 mail server  ¦
    +---------+  localhost port 8110, no SSL  +---------+  pop3.xyz.com port 995, SSL  +--------------------+


 2.  Download the STunnel installer for your operating
     system from <https://www.stunnel.org/downloads.html>
     and install it.

     Do not start STunnel yet - you first need to create an
     stunnel.conf configuration file.


 3.  To configure your email client, see its documentation.

     In the diagram above 
     *  Configure the server settings for sending and receiving email 
        to be your local computer (server name localhost or 127.0.0.1).
     *  Configure the port number for sending email to be 8025
     *  Configure the port number for receiving email to be 8110


 4.  To configure stunnel, first create a text file named "stunnel.conf"
     with contents like below.
     The "client = yes" is very important.
     In the "accept =" lines, the port numbers 8025 and 8110  must match
     the port numbers which you have configured your email client to use.  
     On Linux, these port numbers must also be greater than 1023.
     Replace "smtp.xyz.com" and "pop3.xyz.com" with the actual 
     names for your sending and receiving mail servers.

      ~~~~~~~~~~~~~~~ stunnel.conf ~~~~~~~~~~~~~~~

      foreground = no

      [OUTBOUND-MAIL]
      client = yes
      delay = yes
      accept = 127.0.0.1:8025
      connect = smtp.xyz.com:465

      [INBOUND-MAIL]
      client = yes
      delay = yes
      accept = 127.0.0.1:8110
      connect = pop3.xyz.com:995

      ~~~~~~~~~~~~~~~ stunnel.conf ~~~~~~~~~~~~~~~


 5.  When you run STunnel, you must include the file stunnel.conf as a 
     command-line parameter.  For example

        "C:\Program Files\STunnel\stunnel.exe" "C:\Program Files\STunnel\stunnel.conf"
   
     The easiest way is to create a shortcut for running STunnel, and
     set the shortcut's 'Target' field to the command line with the 
     parameter.


-- 
Kind regards
Ralph
🦊 

𝖀𝖓𝖎𝖈𝖔𝖉𝖊 𝕌𝕋𝔽-𝟠 𝙩𝙚𝙨𝙩.
Technical Details
Message-ID: <4dbcrf51l45imd6sbqb6o1veekog71ss90@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <1ZXsH.454$QL5.437@fx22.iad>

Show Full Headers
Complete Article Headers
Message-ID: <4dbcrf51l45imd6sbqb6o1veekog71ss90@4ax.com>
Subject: Re: stunnel
Date: Thu, 19 Nov 2020 22:28:07 +1300
From: Ralph Fox <-rf-nz-@-.invalid>
References: <1ZXsH.454$QL5.437@fx22.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
X-Received-Body-Crc: 807880690
Newsgroups: news.software.readers
Organization: No; Y2.038Chaos instead!
Lines: 89
X-Face: 5gSW~"1=jGDo(BXfTrgL2BnC3tUB_\d0u@mP~wA1fvK`z8I[>1jXVVZ!N6ittQ.K<5!i3l> ==jcyAk.[B>kLg8TY{+8%edZ(le:ncPt%s8Pr?]QXNXO]0RC#V_zt|%>=bt>rZ2iCI^-yl7Be(]Ep> OfyI!3Bf|e
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Received-Bytes: 4714
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
User-Agent: ForteAgent/8.00.32.1272