Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
POP3/SSL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Sun Jan 26, 2003 7:15 pm    Post subject: POP3/SSL Reply with quote

I'd like to run a pop3s server, which is simply pop3 through ssl. I've installed uw-imap on my mail server since it includes both imap and pop3 servers. 'qpkg -l uw-imap' shows that it installed xinetd init scripts for imap, imaps, ipop2, and ipop3, and it also shows that it installed ssl certificates for both imapd and pop3d (/usr/ssl/certs/imapd.pem and /usr/ssl/certs/ipop3d.pem).

Now, my problem is that I cannot figure out any way to start ipop3d in ssl mode. I can run imapd with ssl support by simply running /etc/xinetd.d/imaps, but there is not equivilant ipop3s, only ipop3. Any suggestions on how to do this? I've tried modifying /etc/xinetd.d/ipop3 to start in ssl mode, but haven't had any luck. The only time I've set this up in the past was on a RedHat box, and I'm pretty sure it included an ipop3s script. Am I missing something, or just overlooking it? Anyone else have this working? Thanks.
Back to top
View user's profile Send private message
humpback
Retired Dev
Retired Dev


Joined: 19 Oct 2002
Posts: 394
Location: Coimbra - Portugal

PostPosted: Mon Jan 27, 2003 5:53 am    Post subject: Reply with quote

Firts emerge -p stunnel and installe it if you dont have it.

Then create a /etc/xinet.d/pop3s file with:
Code:
# description: The POP3S service allows remote users to access their mail
#              using an POP3 client with SSL support such as fetchmail.
service pop3s
{
      disable            = no
      socket_type        = stream
      wait               = no
      user               = root
      server             = /usr/sbin/stunnel
      server_args        = -p /usr/ssl/certs/mail.felisberto.net.pem -l /usr/sbin/ipop3d -- ipop3d
      log_on_success     += USERID
      log_on_failure     += USERID
}


Change the usr/ssl/certs/mail.felisberto.net.pem to your certificate...

restart xinetd and try it :) pop3s works by default on port 995.
_________________
Gustavo Felisberto
Humpback @ #gentoo-pt
------------
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html .
-------------
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Wed Jan 29, 2003 5:38 am    Post subject: Reply with quote

I don't have an account to test it at this time, but so far it looks like it working great. Thanks for the input. I've never used stunnel before. What exactly does that do?
Back to top
View user's profile Send private message
humpback
Retired Dev
Retired Dev


Joined: 19 Oct 2002
Posts: 394
Location: Coimbra - Portugal

PostPosted: Wed Jan 29, 2003 1:09 pm    Post subject: Reply with quote

From the man page :)
Quote:

The stunnel program is designed to work as SSL encryption wrapper
between remote clients and local (inetd-startable) or remote servers.
The concept is that having non-SSL aware daemons running on your system
you can easily set them up to communicate with clients over secure SSL
channels.

stunnel can be used to add SSL functionality to commonly used inetd
daemons like POP-2, POP-3, and IMAP servers, to standalone daemons like
NNTP, SMTP and HTTP, and in tunneling PPP over network sockets without
changes to the source code.

This product includes cryptographic software written by Eric Young
(eay@cryptsoft.com)

_________________
Gustavo Felisberto
Humpback @ #gentoo-pt
------------
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html .
-------------
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Thu Jan 30, 2003 2:50 am    Post subject: Reply with quote

ahh, very nice. Sorry, didn't think to look at the man page - I'm used to them more of a reference than an intro. That program actually looks pretty darn cool, though. I'm going have to play around with it some more. Thanks again for the tip.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum