I use cron to run some jobs, but since that's the only thing I use my unix mail for, having this run through Mail.app would be a nicer experience than seeing "You have new mail." in the Terminal.

How can I do this?

  • 2
    Back in the old days when Mail.app natively used .mbox mailboxes as storage, this was as easy as setting up a symlink or two. Nowadays Mail.app uses several SQLite databases, so even if you got it to work, I think it would be pretty fragile. You can import mboxes still, but it's probably easier to configure a local-only dovecot IMAP/POP server, or use a more pleasant command-line mail client like mutt/alpine.
    – vykor
    Jan 23, 2019 at 0:41
  • see: stackoverflow.com/questions/25211086/… for some ideas. Jan 23, 2019 at 18:50
  • also see: gist.github.com/Moligaloo/3850710 You can run an apple script from the command line. osascript. Jan 23, 2019 at 19:04
  • This is also conceptually the same as this: apple.stackexchange.com/questions/231031/…
    – Alex
    Jan 24, 2019 at 19:36

1 Answer 1


Brutal solution: set up postfix to handle outgoing mail, and create a ~/.forward file forwarding all mail to your "real" mail account. Not for the faint of heart but, then again, neither is running cron jobs. :)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .