Email Commands

mail

Minimal text-based mail client and command-line mailer.

mailq

View the outgoing mail queue on your system.

If you read email on your Mac, you’re probably using a graphical mail application, such as Mail, or a web-based mail reader. In the Terminal, you can also run some simple, entirely text-based programs for handling email.

Before you can use these programs, your Mac’s mail server software, known as postfix, will need to be configured. This is an advanced task: mail server setup is too complex for this book. If you want to attempt it, the necessary files are located in /etc/postfix. This configuration can vary greatly depending on your mail provider and your network setup. Search the web for “postfix” and the name of your mail provider to locate setup instructions.

Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.