Skip to content

Instantly share code, notes, and snippets.

@adamstac
Last active January 5, 2024 00:01
Show Gist options
  • Star 89 You must be signed in to star a gist
  • Fork 39 You must be signed in to fork a gist
  • Save adamstac/7462202 to your computer and use it in GitHub Desktop.
Save adamstac/7462202 to your computer and use it in GitHub Desktop.
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart
@charity1475
Copy link

How to make sendmail work in a LAN? or between two computers connected via eht0

@bitridge
Copy link

How to make sendmail work in a LAN? or between two computers connected via eht0

Good question, I'm following

@Dissorder
Copy link

Hi @bhaijiyunus I'm getting the same issue. Were you able to solve it?

@thesimonshields
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment