how do I have it so that if Mail launches one has to put a password to connect to the server?
I find a good way to password protect my email is to do the following:
Store your keychain entry for Mail in a separate keychain than your Login keychain. This allows you to have a very secure email password that is too hard to remember while having an easier to remember password used locally for your email account via keychain.
Setup your email account in Mail using IMAP and delete any security sensitive email locally from your computer after it has been read so that mail is only stored on the server. You have to set it up such that when you delete email within Mail, the email is not deleted on the server.
Given that your Mail keychain entry is not in your Login keychain, Mail will ask for the other keychain's password to connect to the server.
Get both the Mail.app and my email onto a password protected drive.
Process:
1. Open Disk Utility to create the encrypted DMG /Applications/Utilities/Disk Utility.app
2. Click “New Image” on the top
3. Select a Name and a save as location
4. Further down under size select the size you expect to store locally
5. Below that make sure select the Encryption
6. Hit create set the password and now you should have a mounted encrypted drive
7. Move your Mail app from /Applications/ to the root of your mounted encrypted drive, cut it don’t copy it
8. Then make make an alias of the Mail app in the in the /Applications/ folder
9. Now you need to cut and past your emails to the encrypted drive find the folder /Users/~/Library/Mail and past it in the encrypted drive
10. Now make an alias of the mail folder from you encrypted drive back to the /Users/~/Library/
11. Finished.
If you click the mail icon on the Dock it should now access your mail client and your emails from a secure and encrypted location. if you unmount the drive and click the icon it will prompt you for the password to the dmg then opens the mail app.