This should help you get Sendmail installed with basic configuration on Ubuntu.
- If sendmail isn't installed, install it:
sudo apt-get install sendmail
- Configure
/etc/hosts
file:nano /etc/hosts
- Make sure the line looks like this:
127.0.0.1 localhost yourhostname
- Run Sendmail's config and answer 'Y' to everything:
sudo sendmailconfig
- Restart apache
sudo service apache2 restart
Not working for me either
wondering if I could get the code and compile it
i get errors around missing packages javascript-common & sometimes java-common
sudo apt -f install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-74-generic linux-headers-5.4.0-77-generic linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58
linux-hwe-5.4-headers-5.4.0-74 linux-hwe-5.4-headers-5.4.0-77 linux-image-5.4.0-74-generic linux-image-5.4.0-77-generic
linux-modules-5.4.0-74-generic linux-modules-5.4.0-77-generic linux-modules-extra-5.4.0-74-generic linux-modules-extra-5.4.0-77-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
liblockfile-bin liblockfile1 lockfile-progs procmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Suggested packages:
sendmail-doc rmail logcheck resolvconf sasl2-bin
The following NEW packages will be installed:
liblockfile-bin liblockfile1 lockfile-progs procmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 to upgrade, 9 to newly install, 0 to remove and 292 not to upgrade.
Need to get 0 B/899 kB of archives.
After this operation, 4,449 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package liblockfile-bin.
dpkg: warning: files list file for package 'javascript-common' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
files list file for package 'libv4l-0:i386' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)