Larry,
Yes, I agree that the plethora of contradictory advice about Mail settings on the web has been very frustrating.
All I can do is share what's working for me. I have three accounts, all hosted by Gmail (one is a regular Gmail account, the other two are employment-related and supported by "Google Apps"), and all are configured nearly identically. Not the "Outgoing Mail Server" comment below which can trip you up if not set properly when one has multiple Gmail accounts.
- Under the Preferences > Accounts tab:
- Mailbox Behaviors: All boxes are checked EXCEPT the "Store draft messages on the server", which is unchecked. All three pull-down menus are set to "Never".
- Account Information:
- Account Type: IMAP
- Description: (A name that you choose)
- Alias: (My return address, if different than official Gmail address)
- Email address: Same as Alias
- Full Name: Your name as you want it on outgoing messages
- Incoming mail server: imap.gmail.com
- User Name: Same as e-mail address
- Outgoing Mail Server: IMPORTANT: It is my understanding that each account needs to have a different entry here; do not let two accounts use the same entry. So, when editing the SMTP server list from that menu, create a different entry for each account even though they all use smtp.gmail.com. Description is whatever you want, "Server Name" is smtp.gmail.com, "TLS Certificate" is none. Under the Advanced tab, I have "Automatically detect and maintain account settings" checked, Port 25 (although one of my three accounts uses port 587; don't know why), SSL checked, Authentication "None", "Allow insecure authentication" unchecked.
- Advanced:
- Automatically detect and maintain account settings: Checked
- Include when automatically checking for new messages: Checked
- Compact mailboxes automatically: Checked
- Automatically download all attachments: Checked
- Send large attachments with Mail Drop: Unchecked
- IMAP Path Prefix: (Blank)
- Port: 993
- Use SSL: Checked
- Authentication: External (TLS client Certificate)
- Allow insecure authentication: unchecked
- Use IDLE command if the server supports it: checked
- Preferences > General: Nothing seems crucial here, although I have "If outgoing server is unavailable" set to "Show a list of alternative servers".
- Preferences > Junk Mail: I have "Enable junk mail filtering" turned off, since Gmail handles that.
- I don't see anything else in the other tabs that would make a difference in Mail functioning properly. I can share those settings if helpful.
As I mentioned in my previous post, if you are using an iOS device on a Google Apps account, you need to take the steps that I mentioned for e-mails to be properly deleted vs. archived and to have the proper outgoing address. (I neglected to mention in that post that those steps are for Google Apps-based Gmail accounts, not necessarily regular Gmail accounts, but I can't go back now and edit that message to clarify that point).