mail:~# apt-get install --reinstall sendmail
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n] y
Setting up sendmail (8.12.3-4) ...
A new sendmail user, welcome!
*** WELCOME ***.................*** WELCOME ***.................*** WELCOME ***
1: .....................................................
Sendmail is a powerful MTA, and you may find the sendmail-doc package
useful in the configuration phase. You should find even the few files
in /usr/share/doc/sendmail useful - they note recent Sendmail and Debian
changes, along with information on the features present in this package.
Press [ENTER] to continue
Saving current /etc/mail/sendmail.mc,cf to /var/backups
It is a good idea to regenerate the sendmail configuration
file with each new spin of the sendmail package.
But, if you hand edit sendmail.cf instead of making changes through
sendmail.mc, then you want to say no, save your old sendmail.cf, run
sendmailconfig, then migrate your changes into the new version.
Automagically regenerate the sendmail.cf configuration file? (Y/n) y
Updating sendmail environment ...
Moving /var/log/mail.* to /var/log/mail/mail.*
You will need to adjust any log reading scripts accordingly
Checking for installed MDAs...
Adding link for newly extant program (mail.local)
Adding link for newly extant program (sensible-mda)
SASL not installed, not configuring sendmail support.
To enable sendmail SASL support at a later date, invoke "/usr/share/sendmail/update_auth"
OpenSSL is not installed, will not configure sendmail support for it.
To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls"
Updating /etc/hosts.allow, adding "sendmail: all".
Please edit /etc/hosts.allow and check the rules location to
make sure your security measures have not been overridden -
it is common to move the sendmail:all line to the *end* of
the file, so your more selective rules take precedence.
Correcting FEATURE(smrsh) in /etc/mail/sendmail.mc
Checking {sendmail,submit}.mc and related databases...
Creating /etc/mail/databases...
Creating /etc/mail/databases...
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.
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Warning: confCR_FILE source file not found: /etc/mail/relay-domains
it was created
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Informational: use_ct_file file empty: /etc/mail/trusted-users
Linking /etc/aliases to /etc/mail/aliases
Updating /etc/mail/aliases...
/etc/mail/aliases: line 31: news... Warning: duplicate alias name news
/etc/mail/aliases: 30 aliases, longest 10 bytes, 291 bytes total
Warning: 1 database(s) sources
were not found, (but were created)
please investigate.
Start sendmail now? (Y/n) y
invoke-rc.d: unknown initscript, /etc/init.d/sendmail not found.
dpkg: error processing sendmail (--configure):
subprocess post-installation script returned error exit status 100
Errors were encountered while processing:
sendmail
E: Sub-process /usr/bin/dpkg returned an error code (1)