Is there some way to the make mail.app open on boot, and maintain always opened? Like a service in linux. It would be perfect if it continues to run even when not showing on Dock or on "command+tab", but still showing notifications.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
As the other answers mentioned, you can just add it to login items:
There is a bug (?) where Mail is not hidden at login even if the hide checkbox is checked though. And it doesn't prevent you from quitting Mail manually.
You could also add this to the crontab (
Or using launchd, save this as
You can load the plist with
This would disable ⌘Q:
If you right click your mail icon in the dock you can choose Options > Open at Login. This way Mail will always open after a reboot / power failure. Speaking of power failure, in your system preferences under Energy Saver you have a checkbox for "Start up automatically after power failure".
I'm not aware of an option to keep your mail.app hidden from the dock when it's running.
Either right-click or Ctrl+click on the Mail icon in the Dock, and select
AFAIK, hiding an app does not remove it from the ⌘+Tab menu.