[nzlug] Stunnel config help - Need POP3 client to talk to SPOP
server
Nick Rout
nick.rout at gmail.com
Mon Jun 9 10:41:20 NZST 2008
On Mon, Jun 9, 2008 at 10:34 AM, Howard <howard-nzlug at fox.co.nz> wrote:
> Hi
>
> As per subject, I have a client (php based) that only talks standard POP3 -
> on a webserver.
>
> I need to pull mail off a remote server that only accepts SSL connections on
> 995 (SPOP).
>
> I guess there are a number of ways to do this, including modifying the PHP
> code, but as it is pretty much unmodified so far (off the shelf) I'd like to
> keep it that way to help future upgrades etc.
>
> I thought the better way to achieve this then would be with a package like
> Stunnel - however the more I delve into it, the more options there seem to
> be in Stunnel. There are no examples I can find where localhost is the
> 'client' and the SPOP is the server... they tend to be geared towards giving
> a standard 'POP3 server' some 'SSL' capability.
>
> Anyone knowledgeable enough with Stunnel to suggest some config options
> please? (or any other helpful suggestions)
>
> Am I close with something like this?
>
> ;[local pop3 to Secure POP3 server]
> accept = localhost:110
> connect = spop.thespop3server.com:995
> client = yes
>
> Thanks
> Howard
>From the command line for testing you can use openssl like:
openssl s_client -connect spop.server:995
And you will be able to communicate in plain text.
Translating this into an unattended script is something I haven't
pondered at all.
More information about the NZLUG
mailing list