johnnywang has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I just recently switched to gmail since they provide free POP3 accounts, furthermore, it's secure over SSL, so I can do my private emails at ease during work time:-) Is there a module for SMTP/POP3 over SSL that can handle this? the standard Net::POP3 doesn't handle secure email, I guess I need to hook SSL into it somehow. Thanks.

Replies are listed 'Best First'.
Re: Secure SMTP/POP for gmail
by Fletch (Bishop) on Jul 20, 2005 at 21:18 UTC

    Simplest thing to do would be to use stunnel to setup a tunnel to the secure gmail servers and make your stuff connect to the local end of that.

    --
    We're looking for people in ATL

Re: Secure SMTP/POP for gmail
by Tanktalus (Canon) on Jul 20, 2005 at 21:21 UTC

    I'm wondering if this would work. Warning: I couldn't get much farther away from "tested code" while still writing some code.

    package Net::SMTP::SSL; use base 'Net::SMTP'; require IO::Socket::SSL; @Net::SMTP::ISA = map { s/(IO::Socket::)INET/${1}SSL/; } @Net::SMTP::ISA;

    Just curious. ;-)

Re: Secure SMTP/POP for gmail
by chanio (Priest) on Jul 21, 2005 at 18:15 UTC
    PopFile could handle the SSL connection. Just see the tutorial about how to connect SSL (only one account per user, though).

    I saw this at CPAN's perl scripts: gmailarchiver that could help you to send your local emails to gmail. I haven't read it.

    { \ ( ' v ' ) / }
    ( \ _ / ) _ _ _ _ ` ( ) ' _ _ _ _
    ( = ( ^ Y ^ ) = ( _ _ ^ ^ ^ ^
    _ _ _ _ \ _ ( m _ _ _ m ) _ _ _ _ _ _ _ _ _ ) c h i a n o , a l b e r t o
    Wherever I lay my KNOPPIX disk, a new FREE LINUX nation could be established