El Capitan Mail Delete Issue. I am able to move emails to trash on my iPhone but when I open mail on my mac a few of the ones I deleted from my phone are still in my inbox while others have moved to trash. It is happening to my gmail and OS X Server mail accounts. Open the Apple Mail application by clicking Mail in the top menu bar.; Select the Preferences option.; Click the @ Accounts option in the top bar.; Click the 'Server Settings' tab.; Edit the Host Name fields to match your DreamHost mail server name.; To edit the Incoming/Outgoing ports, UN-check 'Automatically manage connection settings'.The 'Port' field and 'Use TLS/SSL' checkbox then appear.
Mail User Guide
Use Server Settings preferences in Mail to change options for an account’s incoming and outgoing (SMTP) mail servers.
To change these preferences in the Mail app on your Mac, choose Mail > Preferences, click Accounts, then click Server Settings.

Note: The settings you see vary depending on your account type.
Incoming mail server settings
Gmail Setting For Mac Mail
Option | Description |
|---|---|
User Name | Your user name on the mail server. |
Password | Your password on the mail server. |
Host Name | The name of the mail server. |
Automatically manage connection settings | Mail automatically manages settings for your email account in Mail, such as port numbers and authentication methods. If you deselect this option, you can specify the following, as directed by your email account provider:
|
Advanced IMAP or Exchange Settings | Enter or change these settings as directed by your email account provider:
|
Apple El Capitan
Outgoing mail server (SMTP) settings
Gmail Settings For Apple Mail
Option | Description |
|---|---|
Account | The account of the mail server. To change outgoing server settings, as directed by your email account provider, click the Account pop-up menu, then choose Edit SMTP Server List. |
User Name | Your user name on the mail server. |
Password | Your password on the mail server. |
Host Name | The name of the mail server. |
Automatically manage connection settings | Mail automatically manages settings for your email account in Mail, such as port numbers and authentication methods. If you deselect this option, you can specify the following, as directed by your email account provider:
|