Edit your hosts file
sudo nano /etc/hosts
and add your domain
127.0.0.1 domain.com www.domain.com
127.0.0.1 server.localdomain server
127.0.0.1 localhost
Then update the server hostname
sudo hostname domain.com
Add forge to the trusted users file
sudo nano /etc/mail/trusted-users
Edit submit.mc
file
sudo nano /etc/mail/submit.mc
and add the following line
FEATURE(`use_ct_file')dnl
Please note, the first one is a backtick and the second one a single quote.
Finnally run
sudo sendmailconfig
and say Yes to everyting.
Send a test email with the following command:
echo -e "To: [email protected]\nSubject: Test\nHello World\n" | sendmail -bm -t -v