------------------------------------------------------------------------------- First set up a STunnel service Mapping local pop (110), imap (220), and smtp (25), to the gmail SSL pop (995), imap (993), and smtp 465) ports =======8<--------CUT HERE----------axes/crowbars permitted--------------- # This Stunnel configuration file is specific to Gmail # Author: RockFox Date: 17-NOV-2007 # GLOBAL OPTIONS client = yes output = stunnel-log.txt debug=4 # SERVICE-LEVEL OPTIONS [POP3 (Gmail) Incoming] # Using port 110 so incoming mail will go thru anti-virus program accept = 127.0.0.1:110 connect = pop.gmail.com:995 [IMAP3 (Gmail) Incoming] # Using port 110 so incoming mail will go thru anti-virus program accept = 127.0.0.1:220 connect = imap.gmail.com:993 [SMTP (Gmail) Outgoing] # Using port 25 so outcoming mail will go thru anti-virus program accept = 127.0.0.1:25 connect = smtp.gmail.com:465 # An optional second Gmail account # (only the last digit of the IP address is changed from 1 to 2) [POP3 (Gmail) Incoming] # Using port 110 so incoming mail will go thru anti-virus program accept = 127.0.0.2:110 connect = pop.gmail.com:995 [IMAP3 (Gmail) Incoming] # Using port 110 so incoming mail will go thru anti-virus program accept = 127.0.0.2:220 connect = imap.gmail.com:993 [SMTP (Gmail) Outgoing] # Using port 25 so outcoming mail will go thru anti-virus program accept = 127.0.0.2:25 connect = smtp.gmail.com:465 =======8<--------CUT HERE----------axes/crowbars permitted--------------- With that you can now use client programs to connect to localhost ports but which really connect to gmail's SSL ports NOTE that the gmail login name includes the '@gmail.com' part -------------------------------------------------------------------------------