Hi all,
In my continuing effort to make my systems more usable, I have successfully setup email w/ GMAIL. My one laptop is currently fetching email via secure IMAP and sending email via msmtp to google's smtp servers w/ a working ssl connection. I'm even using the default Mail.app. Here's a header for proof.

I did a quick port of msmtp that compiles clean w/ the 2.7.2.1 compiler for OPENSTEP, so I need to test it on NEXTSTEP next. Either way, I'll be making a package for it. BTW, if you're curious about how to setup gmail w/ your system. It basically comes down to using my port of fetchmail linked again openssl, procmail & then using msmtp for the mda. It works great.

Thanks guys.
It's actually just like any other *nix box once you get fetchmail and msmtp working properly. MSMTP was actually a pretty easy port. I only had to make one source code change & add a bunch of stuff to the config.h file. Then, to make it work w/ Mail.app, you simply change the sendmail command in the preferences to /usr/local/bin/msmtp. Fetchmail runs as a daemon in the background pullilng all the mail to your system. You have to grab the gmail ssl certificate, one from thawte & one from equifax. I can post some urls for config information. I was hoping using fetchmail w/ IMAP would work great, but after watching the system pull mail, it kept pulling the same new email over & over again. So, I guess I'll either stick w/ POP3 or I'm going to have to look @ updating fetchmail. The last time I looked @ that though, they had added a bunch of POSIX stuff to the code, thus breaking it on NEXTSTEP/OPENSTEP. I'll try to put it on my list of stuff to do this week. BTW, if you feel froggy, there's a package of msmtp for gecko & openstep x86 in the packages directory now. You can quickly google setting up gmail fetchmail msmtp and find all the information for setting it up. Take care.

BTW, I forgot to mention one thing, GMAIL is just one example that this setup will work for. You could also use this w/ pretty much any email service/isp that requires secure authentication. Since most isp are moving in that direction, that's why I was interested in getting it to work. Take care.

I wanted to let everyone know, I've tested using the standard PopOver.app w/ my port of Stunnel-4.21. You can set this up instead of using Fetchmail to pop3 your mail from GMAIL or any other system that requires SSL authentication for POP3/IMAP/SMTP. You still need to use MSMTP for sending email to Google's SMTP servers. I'll post details later on this evening. Take care.

before starting stunnel, you need to touch /usr/adm/stunnel.log as root. That way your logging works correctly. Then once you fire up stunnel either by rebooting or just running the command above as root, you can startup PopOver.app. Simply add a new POP3 system. Put localhost as your server. Put your gmail user@gmail.com as your username & put in your gmail password as the password.

You can test to see if it works correctly by running the following:
-bash-2.05b$ stunnel -version
stunnel 4.21 on hppa-next-nextstep3 with OpenSSL 0.9.8g 19 Oct 2007
Threading:FORK SSL:ENGINE Sockets:SELECT,IPv4

You can check out http://www.stunnel.org/ for more information. Again you'll still need my msmtp package to send email directly to the gmail smtp server. Setup for that is the same as above. Take care.

There's two ways to go about this, one is update your stock sendmail w/ one of the sendmail packages off one of the archive. I've put a copy of the latest sendmail packages I had in my archives on my site http://kb7sqi.dyndns.org/files/misc/sendmail/ Also, in the misc directory, is a copy of TjL's cable-modem faq and there's a dhcp directory w/ the last packages made as well. For years, I kept sendmail upto date so, I already had my systems setup according to the sendmail FAQ that comes w/ the sendmail packages & then I started using postfix instead. It still compiles clean on NEXTSTEP/OPENSTEP w/ out using the -posix flag. I have compiled a quad package for NEXTSTEP, but I haven't had time to archive it & package it up. I'll try to get to that this weekend.

The other way to set the "From" field in Mail.app is to the following:

Menu: Info->Preferences, PopUp: Expert

You should see a box that says "Additional Outgoing Headers"
add a set a Key value pair:

Key Value
From Your Name <youraddr...@yourhost.yourdomain>

And I would also set the Reply-To as well, just to make sure.

Under 'Compose', you will see a field with 'Reply-To:' next to it. Type the e-mail address of your POP/IMAP account in that field:

If you're just going to be using PopOver.app & Mail.app w/ stunnel/msmtp, I'd go that route instead of upgrading/setting up sendmail.

Let me know if you have any problems. I've been using PopOver.app w/ stunnel & using msmtp for outgoing mail w/ my Gecko & it's working great. Take care.

Just another follow up real quick if you plan on wanting to setup procmail scripts to filter spam/organize mail, you'll definately want to grab the mailapp-utilities package off one of the archives & follow the examples. Before I started using my gmail account for most of my mailing list stuff, I was using fetchmail/procmail/postfix for all my mail. I had several procmail scripts to sort mail & get rid of spam. Someone could write a book on all that though. Besides a few problems w/ Mail.app like html email, Mail.app is still a great email client. Take care.