Contents
The main configuration file for Sendmail is /etc/mail/sendmail.cf , which is not intended to be manually edited. Instead, make any configuration changes in the /etc/mail/sendmail.mc file.
Where is sendmail on Ubuntu?
Install and configure Sendmail 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.
How do I enable sendmail?
So, the steps I recommend for configuring sendmail are as follows:
- Edit the /etc/sendmail.mc file. Most of what you need to do to configure sendmail can be done by editing this file.
- Generate the sendmail.cf file from the edited sendmail.mc file. …
- Review your sendmail.cf configuration. …
- Restart the sendmail server.