msmtp

Msmtp

msmtp is a command line SMTP client that can be used to send emails from the Linux command line or scripts. It is lightweight, easy to configure, and supports SMTP authentication, TLS encryption, several mailbox formats and more.
msmtp image
commandline smtp email scripts

msmtp: Lightweight Command Line SMTP Clients

A command line SMTP client for Linux and scripts, supporting SMTP authentication, TLS encryption, multiple mailbox formats, and more.

What is Msmtp?

msmtp is a lightweight, command line based SMTP client for Linux and UNIX operating systems. It allows you to send emails directly from the command line or from shell scripts, without needing to configure a full local MTA like Sendmail or Postfix.

Some key features of msmtp include:

  • SMTP authentication - supports LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5 and NTLM.
  • TLS encryption for secure transfer of emails.
  • Multiple mailbox formats - mbox, Maildir, MH.
  • Configurable per-user and system-wide configurations.
  • Extensive logging for troubleshooting.
  • SMTP port number and hostname can be specified per recipient.

msmtp is a great choice if you need to occasionally send automated emails from scripts, applications or servers but don't want to setup and maintain a heavy duty MTA. It integrates nicely with offshore SMTP services as well for high delivery rates.

Msmtp Features

Features

  1. Lightweight and minimal
  2. Easy to configure
  3. Supports SMTP authentication
  4. Supports TLS encryption
  5. Supports several mailbox formats
  6. Can be used to send email from command line or scripts

Pricing

  • Open Source

Pros

Lightweight with no dependencies

Very easy to set up and use

Supports all major email protocols and encryption

Great for automating email from scripts/cron jobs

Actively maintained and updated

Cons

Lacks a full-featured GUI

Less features than heavier email clients

Must be configured manually

Requires command line knowledge


The Best Msmtp Alternatives

Top Network & Admin and Email Clients and other similar apps like Msmtp

Here are some alternatives to Msmtp:

Suggest an alternative ❐

Postfix icon

Postfix

Postfix is a popular open source Mail Transfer Agent (MTA) that routes and delivers email. It is commonly used for sending and receiving email from servers. Postfix was developed as a fast, easy to administer, and secure alternative to the widely-used Sendmail program.Some key features and highlights of Postfix include:High...
Postfix image
Sendmail icon

Sendmail

Sendmail is a popular open source email server program (MTA or Mail Transfer Agent) used on Unix/Linux machines to route, deliver, and forward email messages. It is highly configurable and scales well to handle anything from small local email deliveries to enterprise-level bulk email routing.Some key features of Sendmail include:Routing,...
Sendmail image
SSMTP icon

SSMTP

sSMTP is a lightweight and minimal SMTP client for use on Linux servers. It lacks many advanced features of full mail transfer agents like Postfix or Sendmail, but provides the basic ability to send email messages through an SMTP server from a Linux machine.Some key features and uses of sSMTP...
SSMTP image
SendEmail icon

SendEmail

sendEmail is a lightweight, open source email transfer agent (MTA) for Linux systems. It provides a simple way to send email directly from a server, without needing to configure an external SMTP server.Some key features of sendEmail include:Sending email directly through a server's local SMTP portScheduling email delivery for later...
NikaMail icon

NikaMail

NikaMail is an open-source, privacy-focused email service launched in 2019. It allows users to send and receive encrypted emails for free without ads or user tracking. NikaMail uses end-to-end encryption based on OpenPGP standards to keep emails private so that no one, not even NikaMail employees, can access them.Some key...
NikaMail image