• sendmail questions: setgid bit, mail.local et cetera

    From Wolfgang Agnes@21:1/5 to All on Tue Nov 5 17:33:05 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to wagnes@jemoni.to on Tue Nov 5 22:21:15 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Winston@21:1/5 to Wolfgang Agnes on Tue Nov 5 20:53:38 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Agnes@21:1/5 to Winston on Wed Nov 6 08:43:38 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)