so how about putting up a how-to on this, I'm curious if I can get this to work with ko/pi then I can quit using sylpheed.
Ok, I'll try to fill in the gaps assuming you have stunnel configured for normal use.
In stunnel.conf (or whatever configuration file you want to use for this) I have
[gmail-pop3s]
accept = localhost:10110
connect = pop.gmail.com:995
[gmail-smtps]
accept = localhost:10025
connect = smtp.gmail.com:587
protocol = smtp
Then configure the email client to talk to the local ports 10110 and 10025 for incoming and ougoing mail. For qtmail I use the following setting for outgoing
SMTP server: 127.0.0.1
SMTP port: 10025
with authentication set to match incoming settings.
For incoming I use
Account type: POP3
Server: 127.0.0.1
Port: 10110
If you are using tcpwrappers with this you'll need to allow access from 127.0.0.1 to the services defined above. If you get it working and want to start stunnel at boot I add a symlink from /etc/rc.d/rc5.d/S99local to /etc/rc.d/rc.local and add this to rc.local
# Gmail via stunnel ...
if [ -x /usr/sbin/stunnel ]; then
/usr/sbin/stunnel /etc/stunnel/stunnel.conf
fi
or you can just start stunnel from the command line when you want to do mail.
Hope this helps. Hope I haven't forgotten anything too important. Let me know how it goes.
John