Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 10:01:33 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "Dr. Nikolaus Klepp" <dr.klepp@gmx.at>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Why is Sendmail still around?
Message-ID:  <20190329100133.39ecebb1.freebsd@edvax.de>
In-Reply-To: <201903290941.19684.dr.klepp@gmx.at>
References:  <4101a1092141b58e05ef7552278b15ff@kathe.in> <b6024975-31b1-e08b-46ee-e18597ada469@netfence.it> <201903290941.19684.dr.klepp@gmx.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Mar 2019 09:41:19 +0100, Dr. Nikolaus Klepp wrote:
> Anno domini 2019 Fri, 29 Mar 09:22:32 +0100
>  Andrea Venturoli scripsit:
> > On 3/29/19 2:59 AM, Mayuresh Kathe wrote:
> > > easier to configure for simple tasks than Sendmail.
> > 
> > Just out of curiosity, what do you find so hard in configuring sendmail 
> > *for simple tasks*?
> > (I agree it's somewhat confusing sometimes when it comes to complex 
> > edge-cases).
> 
> Last time I looked at sendmail, it did not deliver local mail
> when no notwork and/or nameserver was available. Testing was
> done on a fresh installation of FreeBSD 10, so maybe things
> have changed. 

Does that system run the /etc/periodic system scripts? If yes,
where does the output go?

The only thing that sendmail requires for delivering local mail
(i. e., from "process user" to "real user" and of course for
"real user" to "real user") is a correct configuration for the
loopback device (see 127.0.0.1 and localhost). So if you have

	127.0.0.1 localhost

in your /etc/hosts, it should be okay. The setting

	sendmail_submit_enable="YES"

in /etc/rc.conf should be sufficient. This makes sure that
the periodic scripts can send messages to root (or any other
user, if additionally specified), as well as "intra-system
communication", such as:

	% mail root
	Subject: A test
	This is a test.
	.
	% _

And into the other direction:

	# mail -s "Test works" bob
	Hey Bob,
	the test was successful.
	.
	# _

This is basic system functionality. ;-)



See /etc/defaults/rc.conf for sendmail-related items.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190329100133.39ecebb1.freebsd>