#apt-get install sensible-mda sendmail-bin sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
sendmail-doc rmail sasl2-bin
The following NEW packages will be installed:
sendmail sendmail-bin sensible-mda
0 upgraded, 3 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B/1,354 kB of archives.
After this operation, 2,552 kB of additional disk space will be used.
Selecting previously deselected package sendmail-bin.
(Reading database ... 111032 files and directories currently installed.)
Unpacking sendmail-bin (from .../sendmail-bin_8.14.3-9.4_i386.deb) ...
Selecting previously deselected package sensible-mda.
Unpacking sensible-mda (from .../sensible-mda_8.14.3-9.4_i386.deb) ...
Selecting previously deselected package sendmail.
Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ...
Processing triggers for man-db ...
Setting up sendmail-bin (8.14.3-9.4) ...
update-rc.d: warning: sendmail stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1)
update-alternatives: using /usr/lib/sm.bin/sendmail to provide /usr/sbin/sendmail-mta (sendmail-mta) in auto mode.
update-alternatives: using /usr/lib/sm.bin/sendmail to provide /usr/sbin/sendmail-msp (sendmail-msp) in auto mode.
update-alternatives: warning: not replacing /usr/share/man/man8/sendmail.8.gz with a link.
Saving old /etc/mail/sendmail.cf as /etc/mail/sendmail.cf.old ...
Stopping Mail Transport Agent (MTA): sendmail.
Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Checking filesystem, this may take some time - it will not hang!
... Done.
Checking for installed MDAs...
sasl2-bin not installed, not configuring sendmail support.
To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
You already have sendmail certificates
*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***
Everything you need to support STARTTLS (encrypted mail transmission
and user authentication via certificates) is installed and configured
but is *NOT* being used.
To enable sendmail to use STARTTLS, you need to:
1) Add this line to /etc/mail/sendmail.mc and optionally
to /etc/mail/submit.mc:
include(`/etc/mail/tls/starttls.m4')dnl
2) Run sendmailconfig
3) Restart sendmail
Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Updating /etc/mail/access...
Updating /etc/mail/aliases...
/etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total
Starting Mail Transport Agent (MTA): sendmail.
Setting up sensible-mda (8.14.3-9.4) ...
Setting up sendmail (8.14.3-9.4) ...