I try to install ssmtp in Debian 10.0, but get the error

Package ssmtp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

But I get no result with neither apt search ssmpt nor:

$ apt-file search ssmtp
monitoring-plugins-basic: /usr/lib/nagios/plugins/check_ssmtp
sosreport: /usr/share/sosreport/sos/plugins/ssmtp.py

How do I install ssmtp in Debian buster?


3 Answers 3

apt install msmtp


Package is currently unmaintained

This package has been orphaned since 2019-03-19. msmtp can be used as an alternative.

debian wiki: msmtp

msmtp: documentation

manpage msmtp

  • nullmailer is another alternative (despite the name your emails do get delivered)
    – Jasen
    Commented Jun 16, 2019 at 10:15
  • 3
    Does it have the same config structure?
    – rubo77
    Commented Jun 16, 2019 at 11:11
  • 2
    Are you sure? ssmtp is a MTA and msmtp appears to be a MUA. Commented Jun 16, 2019 at 14:50
  • 1
    Msmtp doesn't work like ssmtp :( Commented Mar 27, 2020 at 10:33
  • 2
    remember to install msmtp-mta as well, which symlinkslinks msmtp to sendmail
    – rubo77
    Commented Nov 23, 2020 at 16:25

ssmtp is currently unmaintained, but you can install and configure msmtp as well:

For gmail (with deactivated 2-factor login) use this configuration in /etc/msmtprc:

# Set default values for all following accounts.
port 587
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

account gmail
host smtp.gmail.com
from <user>@gmail.com
auth on
user <user>
password <your password>

# Set a default account
account default : gmail

To test it run

echo -e "Subject: msmtp test\nhello test." | msmtp _recipient_address_

You should find your sent e-mail in the recipient's inbox shortly afterwards.


This isn’t useful for Debian 10, but ssmtp is available in Debian 11.


You must log in to answer this question.

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