Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Your goose is cooked. (Your current chick is burned up too!)


comp / comp.unix.bsd.freebsd.misc / Re: sendmail questions: setgid bit, mail.local et cetera

SubjectAuthor
* sendmail questions: setgid bit, mail.local et ceteraWolfgang Agnes
+- Re: sendmail questions: setgid bit, mail.local et ceteraJohn D Groenveld
`* Re: sendmail questions: setgid bit, mail.local et ceteraWinston
 `- Re: sendmail questions: setgid bit, mail.local et ceteraWolfgang Agnes

1
Subject: sendmail questions: setgid bit, mail.local et cetera
From: Wolfgang Agnes
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Tue, 5 Nov 2024 20:33 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: sendmail questions: setgid bit, mail.local et cetera
Date: Tue, 05 Nov 2024 17:33:05 -0300
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <87ikt1pgji.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 05 Nov 2024 21:33:06 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b13872127e8275801f8ca0eb3286b883";
logging-data="1766189"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2UD7i0kX7gWW/HnSce3MuL7RhtddN4z8="
Cancel-Lock: sha1:6OjrvJ6haXCpUIh+s1shCBgVgMM=
sha1:hpZZItGb7wMAVv/22R+hOEcdvK0=
View all headers

I have a fresh install of FreeBSD-RELEASE 14.0 done by my service
provider, which I upgraded to FreeBSD-RELEASE 14.1 yesterday (with help
from people here, in fact).

%uname -a
FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64

I'm reviewing sendmail configuration and I came to check whether my
sendmail had its setuid bit set. I discovered it does not. But then I
thought I'd find it had the setgid bit set. It also does not.

%ls -l $(which sendmail)
lrwxr-xr-x 1 root wheel 11 Nov 10 2023 /usr/sbin/sendmail -> mailwrapper

%ls -l $(which mailwrapper)
-r-xr-xr-x 1 root wheel 8648 Nov 4 22:34 /usr/sbin/mailwrapper

So I guess the FreeBSD designers compiled sendmail with a default group,
which must be ``mail'', which is the group in /var/mail, so that must be
how sendmail is able to deliver messages to local users.

I expected to find the program mail.local---for local mail delivery. I
do not find this program on root's path, but I find its manual page in
section 8. Should I not have this program? Where is it?

I'm reading the book

sendmail
Bryan Costales, George Jansen,
and Claus Afsmann with Gregory Neil Shapiro
O'Reilly, fourth edition, 2008, ISBN 978-0-596-51029-9

and they talk about mail.local as the program that delivers local mail.

Subject: Re: sendmail questions: setgid bit, mail.local et cetera
From: John D Groenveld
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: Groenveld.US
Date: Tue, 5 Nov 2024 22:21 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: groenveld@acm.org (John D Groenveld)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sendmail questions: setgid bit, mail.local et cetera
Date: 5 Nov 2024 22:21:15 GMT
Organization: Groenveld.US
Lines: 16
Message-ID: <lovk2rF35k5U1@mid.individual.net>
References: <87ikt1pgji.fsf@jemoni.to>
X-Trace: individual.net GT3fYaDS0kMn6qjxKhtc3gkSdvkL9maobjuCUNuQGDNGe+WNN9
Cancel-Lock: sha1:x1P7fNwXP+1IGbVGw73L6Lv7Wcg= sha256:ffxltlQsJWzbdBBcWZZZhTNBwXKzspDKIQDU6219lDU=
View all headers

In article <87ikt1pgji.fsf@jemoni.to>,
Wolfgang Agnes <wagnes@jemoni.to> wrote:
>I'm reading the book
>
> sendmail
> Bryan Costales, George Jansen,
> and Claus Afsmann with Gregory Neil Shapiro
> O'Reilly, fourth edition, 2008, ISBN 978-0-596-51029-9
>
>and they talk about mail.local as the program that delivers local mail.

Start with the FreeBSD Handbook:
<URL:https://docs.freebsd.org/en/books/handbook/mail/>

John
groenveld@acm.org

Subject: Re: sendmail questions: setgid bit, mail.local et cetera
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Wed, 6 Nov 2024 01:53 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sendmail questions: setgid bit, mail.local et cetera
Date: Tue, 05 Nov 2024 20:53:38 -0500
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <yd4j4li0v1.fsf@UBEblock.psr.com>
References: <87ikt1pgji.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 06 Nov 2024 02:53:26 +0100 (CET)
Injection-Info: dont-email.me; posting-host="09b0ff7a6a34b5e7350bbe6308484f42";
logging-data="1894491"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4fGoXqbPjuBKM4gJyd0Bi"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:Dw8tKIgrvW5GDeEWINdHMgPWvnc=
sha1:E8ZD6fwR9xBAvisQXb3NI4HLfAA=
Mail-Copies-To: never
View all headers

Wolfgang Agnes <wagnes@jemoni.to> writes:
> ... they talk about mail.local as the program that delivers local mail.

You might find procmail (in /usr/local/bin/ after install) superior for
local mail delivery. It lets each user have their own filters for their
incoming mail.
-WBE

Subject: Re: sendmail questions: setgid bit, mail.local et cetera
From: Wolfgang Agnes
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Wed, 6 Nov 2024 11:43 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sendmail questions: setgid bit, mail.local et cetera
Date: Wed, 06 Nov 2024 08:43:38 -0300
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <874j4kio45.fsf@jemoni.to>
References: <87ikt1pgji.fsf@jemoni.to> <yd4j4li0v1.fsf@UBEblock.psr.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 06 Nov 2024 12:43:38 +0100 (CET)
Injection-Info: dont-email.me; posting-host="86c3b33a1e78f159a7a4b47649e2da43";
logging-data="2215955"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FNuwtcrY62jhJ4M7+ATGa3e+N/4Nze5o="
Cancel-Lock: sha1:d5fEDDSjRS8zQ24j2oO3rrQ8zi0=
sha1:S4KoIOfwPI4vzLs7AzzY72VGkYs=
View all headers

Winston <wbe@UBEBLOCK.psr.com.invalid> writes:

> Wolfgang Agnes <wagnes@jemoni.to> writes:
>> ... they talk about mail.local as the program that delivers local mail.
>
> You might find procmail (in /usr/local/bin/ after install) superior for
> local mail delivery. It lets each user have their own filters for their
> incoming mail.
> -WBE

I always hear of procmail. It's now time to try it out. Thanks.

1

rocksolid light 0.9.8
clearnet tor