How to stop mail opening on startup mac

To stop Mail from opening automatically on startup on a Mac, you can follow these steps:

Method 1: Disable Mail from opening at login

  1. Go to System Preferences > Users & Groups.
  2. Select your user account from the list on the left.
  3. Click on the "Login Items" tab.
  4. Look for "Mail" in the list of login items and select it.
  5. Click the "-" button at the bottom of the window to remove it from the list.

Method 2: Disable Mail from opening at startup using Terminal

  1. Open Terminal on your Mac. You can find Terminal in the Applications/Utilities folder, or use Spotlight to search for it.
  2. Type the following command and press Enter:
    defaults write com.apple.mail DisableMailAtLogin -bool true
  3. This will set a preference to disable Mail from opening at startup.

Method 3: Disable Mail from opening at startup using Launch Agents

  1. Open the Launch Agents folder in the Finder. You can find it at ~/Library/LaunchAgents or /Library/LaunchAgents.
  2. Look for a file called com.apple.mail.plist and move it to the Trash.
  3. Empty the Trash to remove the file.

Additional tip: If you want to prevent Mail from opening automatically when you log in, but still want to be able to open it manually, you can set a delay before Mail opens. To do this, go to System Preferences > Users & Groups, select your user account, and click on the "Login Options" tab. Then, click on the "Advanced" button and select "Delay login" from the dropdown menu. This will give you a few seconds to log in and do other things before Mail opens.