Ubuntu 20.04 sendmail

David Fletcher dave at thefletchers.net
Fri Jul 2 12:26:44 UTC 2021


On Fri, 2021-07-02 at 07:51 -0400, Jerry Geis wrote:
> Hi All,
> 
> I am trying to get sendmail working like CentOS 7 - equivalent.
> I need mail coming into the box so procmail works and also sending
> email.
> Any clues on how to do that ?

>From my server installation notes:-

sudo aptitude install -r postfix
Select "internet with smarthost" option
then enter the relay server address to be used with SASL
Read the MailRelaySetup and SMTPAuthWithSASL to complete the
installation.

Then edit a couple of main.cf lines:-

mydestination = thefletchers.net, $myhostname, ServerIV,
localhost.localdomain, localhost

mynetworks = 192.168.2.0/24 localhost

Should get it working locally and receiving email from the Internet, if
you've got a domain and you've set your MX record to get to your
server, and set up your aliases file. If you want it to relay out via
someone else's SMTP server you'll likely have to do the SASL stuff too.

I tried years ago to get sendmail to work for me and gave up on it.

Dave





More information about the ubuntu-users mailing list