• User unknown while 'makemap hash'

    From Harald Hannelius@21:1/5 to All on Mon May 24 04:26:46 2021
    Hello,

    it's been years since we had Usenet, I miss it so.

    I noticed that while running the command '/usr/sbin/makemap hash /etc/mail/access.db < /etc/mail/access' sendmail says "User unknown" for users for a few fractions of a second.

    Am I doing it wrong? Shouldn't there be a seamless gap between the old and new access db's?

    14:05:00.999160066 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
    14:05:01.014579615 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
    14:05:01.030263277 username@ourdomain.com... User unknown
    14:05:01.057106599 username@ourdomain.com... User unknown
    14:05:01.074483391 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
    14:05:01.091811253 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to Harald Hannelius on Mon May 24 04:49:27 2021
    On Monday, 24 May 2021 at 14:26:47 UTC+3, Harald Hannelius wrote:

    I noticed that while running the command '/usr/sbin/makemap hash /etc/mail/access.db < /etc/mail/access' sendmail says "User unknown" for users for a few fractions of a second.

    Am I doing it wrong? Shouldn't there be a seamless gap between the old and new access db's?

    It looks like the Debian way of doing it;

    /usr/sbin/makemap hash /etc/mail/virtual-domains.new.db < /etc/mail/virtual-domains
    mv -f /etc/mail/virtual-domains.new.db /etc/mail/virtual-domains.db

    Doesn't cause a momentary "User unknown". It's funny cause sendmail's documentation afaik suggests to use '/usr/sbin/makemap hash /etc/mail/access.db < /etc/mail/access' .

    Correcting the original post, it was virtual-domains that was the problematic db in our case.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrzej Adam Filip@21:1/5 to Harald Hannelius on Mon May 24 12:23:26 2021
    Harald Hannelius <harald.hannelius@gmail.com> wrote:
    On Monday, 24 May 2021 at 14:59:07 UTC+3, Andrzej Adam Filip wrote:

    Have you considered using make (Makefile) in /etc/mail directory?
    It should allow you more atomic & fail-safe generation of new map version.

    I used it so much that I gleaned the solution from it. Slackware even
    has a Makefile, has it always been included?

    The rebuild includes a lot of other stuff in our environment, so I had
    to figure out how to do this right. Still funny that sendmail docs
    don't mention this.

    It must be well buried somewhere as usual :-)

    AFAIR aliases as the oldest map uses some kind of "it is complete"
    mark/entry (@: @ ?)

    --
    [Andrew] Andrzej A. Filip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Andrzej Adam Filip on Mon May 24 17:47:12 2021
    Andrzej Adam Filip wrote:
    Harald Hannelius <harald.hannelius@gmail.com> wrote:

    I used it so much that I gleaned the solution from it. Slackware even
    has a Makefile, has it always been included?

    The rebuild includes a lot of other stuff in our environment, so I had
    to figure out how to do this right. Still funny that sendmail docs
    don't mention this.

    That's simple: /etc/mail/[Mm]akefile is not part of the sendmail
    distribution, so obviously it is not documented by us.

    It must be well buried somewhere as usual :-)

    Maybe complain to whoever distributes a Makefile without
    documentation?

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrzej Adam Filip@21:1/5 to @esmtp.org on Mon May 24 18:01:39 2021
    Claus Aßmann <ml+sendmail(-no-copies-please)@esmtp.org> wrote:
    Andrzej Adam Filip wrote:
    Harald Hannelius <harald.hannelius@gmail.com> wrote:

    I used it so much that I gleaned the solution from it. Slackware even
    has a Makefile, has it always been included?

    The rebuild includes a lot of other stuff in our environment, so I had
    to figure out how to do this right. Still funny that sendmail docs
    don't mention this.

    That's simple: /etc/mail/[Mm]akefile is not part of the sendmail distribution, so obviously it is not documented by us.

    It must be well buried somewhere as usual :-)

    Maybe complain to whoever distributes a Makefile without
    documentation?

    Where is documented a proper safe way to compile (big) map files
    according to sendmail.org?

    "Debian way" to generate/compile maps seems to make more sense.
    Debian's "hard to recommend sendmail's tweaks" lie elsewhere AFAIR.
    [ They make some+ sense but are "too nonstandard" for my tastes ]

    --
    [Andrew] Andrzej A. Filip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Andrzej Adam Filip on Mon May 24 18:39:22 2021
    Andrzej Adam Filip wrote:

    Where is documented a proper safe way to compile (big) map files
    according to sendmail.org?

    Do you really have to ask?

    man makemap

    How long does makemap for your "big map files" take on a recent
    computer? If it's "too long" you can use the well-known workaround.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Harald Hannelius on Tue May 25 04:53:25 2021
    Harald Hannelius wrote:

    Correcting the original post, it was virtual-domains that was the problematic db in our case.

    Please post the output of
    sendmail -bt -d0.15 </dev/null

    On which filesystem is /etc/mail/ ?

    Which Berkeley DB version is used by sendmail?

    It seems there is a locking problem on your system
    and I would like to know which components cause that.


    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to Harald Hannelius on Tue May 25 01:28:15 2021
    On Tuesday, 25 May 2021 at 11:21:06 UTC+3, Harald Hannelius wrote:
    On Tuesday, 25 May 2021 at 07:53:26 UTC+3, Claus Aßmann wrote:
    Harald Hannelius wrote:

    Correcting the original post, it was virtual-domains that was the problematic db in our case.
    Please post the output of
    sendmail -bt -d0.15 </dev/null
    Version 8.15.2
    Compiled with: DNSMAP IPV6_FULL LDAPMAP LDAP_REFERRALS LOG MAP_REGEX
    clip

    It seems there is a locking problem on your system
    and I would like to know which components cause that.
    Sorry, I can't tell how long this has been happening but I remember that it has happened a couple of years back but back then I didn't trace it down this far. I concur that there's something going on that I really am sure that someone else has thought
    about before me.

    I tested with the testlk.c from nfs-utils (I think), and at least fcntl seems ok.

    # /root/bin/testlk testfile
    fcntl: ok
    ^C

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to All on Tue May 25 01:16:34 2021
    On Monday, 24 May 2021 at 21:39:23 UTC+3, Claus Aßmann wrote:
    Andrzej Adam Filip wrote:

    Where is documented a proper safe way to compile (big) map files
    according to sendmail.org?
    Do you really have to ask?

    man makemap

    I honestly checked there first, but there was no mention of risks involving running makemap and having constant incoming e-mail.

    How long does makemap for your "big map files" take on a recent
    computer? If it's "too long" you can use the well-known workaround.

    # time /usr/sbin/makemap hash /etc/mail/virtual-domains.new.db < /etc/mail/virtual-domains

    real 0m0.056s
    user 0m0.030s
    sys 0m0.007s

    This seems to correlate with the timeframe that Sendmail answers with 'user unknown' to deliveries tried to existing users.

    # wc -l /etc/mail/virtual-domains
    8358 /etc/mail/virtual-domains

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to All on Tue May 25 01:21:05 2021
    On Tuesday, 25 May 2021 at 07:53:26 UTC+3, Claus Aßmann wrote:
    Harald Hannelius wrote:

    Correcting the original post, it was virtual-domains that was the problematic db in our case.
    Please post the output of
    sendmail -bt -d0.15 </dev/null

    Version 8.15.2
    Compiled with: DNSMAP IPV6_FULL LDAPMAP LDAP_REFERRALS LOG MAP_REGEX
    MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
    NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP
    STARTTLS TCPWRAPPERS USERDB USE_LDAP_INIT XDEBUG
    OS Defines: ADDRCONFIG_IS_BROKEN HASFCHOWN HASFCHMOD
    HASGETDTABLESIZE HASGETUSERSHELL HASINITGROUPS HASLSTAT HASNICE
    HASRANDOM HASRRESVPORT HASSETREGID HASSETREUID HASSETRLIMIT
    HASSETSID HASSETVBUF HASURANDOMDEV HASSTRERROR HASUNAME
    HASUNSETENV HASWAITPID IDENTPROTO IP_SRCROUTE NEEDSGETIPNODE
    REQUIRES_DIR_FSYNC SFS_VFS USE_DOUBLE_FORK USE_SIGLONGJMP
    USESETEUID
    Kernel symbols: /boot/vmlinux
    Conf file: /etc/mail/submit.cf (default for MSP)
    Conf file: /etc/mail/sendmail.cf (default for MTA)
    Pid file: /var/run/sendmail/mta/sendmail.pid (default)
    libsm Defines: SM_CONF_LDAP_INITIALIZE SM_CONF_LDAP_MEMFREE
    SM_CONF_LONGLONG SM_CONF_MEMCHR SM_CONF_MSG SM_CONF_SEM
    SM_CONF_SIGSETJMP SM_CONF_SHM SM_CONF_SSIZE_T SM_CONF_STDBOOL_H
    SM_CONF_STDDEF_H SM_CONF_SYS_CDEFS_H SM_CONF_UID_GID
    DO_NOT_USE_STRCPY SM_HEAP_CHECK SM_OS=sm_os_linux SM_VA_STD
    FFR Defines: _FFR_BADRCPT_SHUTDOWN _FFR_MAIL_MACRO _FFR_NO_PIPE
    _FFR_QUEUE_SCHED_DBG _FFR_RESET_MACRO_GLOBALS _FFR_RHS
    _FFR_SHM_STATUS _FFR_SKIP_DOMAINS _FFR_TLS_EC
    OpenSSL: compiled 0x1010103f
    OpenSSL: linked 0x1010104f
    Canonical name: server.domain.com
    UUCP nodename: server
    a.k.a.: [IPv6:2xxx:708:xxx:xx:0:0:0:234]
    a.k.a.: [127.0.0.1]
    a.k.a.: [193.xxx.xx.xxx]
    Conf file: /etc/mail/sendmail.cf (selected)
    Pid file: /var/run/sendmail/mta/sendmail.pid (selected)

    ============ SYSTEM IDENTITY (after readcf) ============
    (short domain name) $w = server
    (canonical domain name) $j = server.domain.com
    (subdomain name) $m = domain.com
    (node name) $k = server ========================================================

    mailer 0 (prog): P=/bin/sh S=EnvFromL/HdrFromL R=EnvToL/HdrToL M=0 U=-1:-1 F=9DFMeloqsu L=0 E=\n T=X-Unix/X-Unix/X-Unix r=100 A=sh -c $u
    mailer 1 (*file*): P=[FILE] S=parse/parse R=parse/parse M=0 U=-1:-1 F=9DEFMPloqsu L=0 E=\n T=X-Unix/X-Unix/X-Unix r=100 A=FILE $u
    mailer 2 (*include*): P=/dev/null S=parse/parse R=parse/parse M=0 U=-1:-1 F=su L=0 E=\n T=<undefined>/<undefined>/<undefined> r=100 A=INCLUDE $u
    mailer 3 (local): P=/usr/sbin/sensible-mda S=EnvFromL/HdrFromL R=EnvToL/HdrToL M=0 U=-1:-1 F=/59:@ADFMPSlnqsw| L=0 E=\n T=DNS/RFC822/X-Unix r=100 A=sensible-mda $g $u $h ${client_addr}
    mailer 4 (smtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 U=-1:-1 F=DFMXmu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
    mailer 5 (esmtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 U=-1:-1 F=DFMXamu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
    mailer 6 (smtp8): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 U=-1:-1 F=8DFMXmu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
    mailer 7 (dsmtp): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=EnvToSMTP/EnvToSMTP M=0 U=-1:-1 F=%DFMXamu L=990 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
    mailer 8 (relay): P=[IPC] S=EnvFromSMTP/HdrFromSMTP R=MasqSMTP/MasqSMTP M=0 U=-1:-1 F=8DFMXamu L=2040 E=\r\n T=DNS/RFC822/SMTP r=100 A=TCP $h
    ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
    Enter <ruleset> <address>


    On which filesystem is /etc/mail/ ?

    /dev/sda2 on / type ext4 (rw,relatime,discard,errors=remount-ro)

    Could 'relatime' be the culprit here?

    Which Berkeley DB version is used by sendmail?

    # file /etc/mail/virtual-domains.db
    /etc/mail/virtual-domains.db: Berkeley DB (Hash, version 9, native byte-order)

    It seems there is a locking problem on your system
    and I would like to know which components cause that.

    Sorry, I can't tell how long this has been happening but I remember that it has happened a couple of years back but back then I didn't trace it down this far. I concur that there's something going on that I really am sure that someone else has thought
    about before me.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Harald Hannelius on Wed May 26 05:56:41 2021
    Harald Hannelius wrote:

    man makemap

    I honestly checked there first, but there was no mention of risks involving running
    makemap and having constant incoming e-mail.

    Because that was not a known problem - your bug report is the first
    time I heard about this.

    Thanks for the info provided elsewhere in this thread, I will try
    to reproduce the problem (and then fix it).

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to All on Tue May 25 23:10:09 2021
    On Wednesday, 26 May 2021 at 08:56:43 UTC+3, Claus Aßmann wrote:
    Harald Hannelius wrote:

    man makemap

    I honestly checked there first, but there was no mention of risks involving running
    makemap and having constant incoming e-mail.
    Because that was not a known problem - your bug report is the first
    time I heard about this.

    25 + years with Sendmail and I would have found a bug? Incredible :)

    I do think there's a reason why Debian does it the way they do. It would be interesting to do some internet-archeology and find out why.

    Thanks for the info provided elsewhere in this thread, I will try
    to reproduce the problem (and then fix it).

    Much appreciated, thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Hannelius@21:1/5 to All on Wed May 26 00:52:59 2021
    On Wednesday, 26 May 2021 at 10:19:47 UTC+3, Claus Aßmann wrote:
    Harald Hannelius wrote:

    [[...]] it was virtual-domains that was the problematic db in our case.

    Another question:
    what's the definition of the map in the mc/cf file?
    FEATURE(`virtusertable', ???)
    It's not using -o (optional), right?

    FEATURE(`virtusertable', `hash /etc/mail/virtual-domains')dnl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Harald Hannelius on Wed May 26 07:19:45 2021
    Harald Hannelius wrote:

    [[...]] it was virtual-domains that was the problematic db in our case.

    Another question:
    what's the definition of the map in the mc/cf file?
    FEATURE(`virtusertable', ???)
    It's not using -o (optional), right?

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Harald Hannelius on Wed May 26 10:30:17 2021
    On 5/26/21 12:10 AM, Harald Hannelius wrote:
    25 + years with Sendmail and I would have found a bug? Incredible :)

    It happens.

    I do think there's a reason why Debian does it the way they do. It
    would be interesting to do some internet-archeology and find out why.

    I won't be surprised if it's because the time it took to build the map
    on older systems for large numbers of entries took too long. Which
    seems to be a non-starter for about the last decade or two for me.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrzej Adam Filip@21:1/5 to Grant Taylor on Wed May 26 17:49:14 2021
    Grant Taylor <gtaylor@tnetconsulting.net> wrote:
    On 5/26/21 12:10 AM, Harald Hannelius wrote:
    25 + years with Sendmail and I would have found a bug? Incredible :)

    It happens.

    I do think there's a reason why Debian does it the way they do. It
    would be interesting to do some internet-archeology and find out
    why.

    I won't be surprised if it's because the time it took to build the map
    on older systems for large numbers of entries took too long. Which
    seems to be a non-starter for about the last decade or two for me.

    Another *very good* reason may be to keep old map version if the makemap
    fails e.g. due bad line format/missing value. Shit happens.

    --
    [Andrew] Andrzej A. Filip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Andrzej Adam Filip on Wed May 26 11:59:14 2021
    On 5/26/21 11:33 AM, Andrzej Adam Filip wrote:
    Define/estimate your large (number of entries)

    With no first hand experience, I'm guestimating something with 4+
    (decimal) digits in the count of entries. I'm also thinking a low end
    system from the mid to late '90s. So 1,000 through 9,999 on a 486 or
    10,000 through 99,999 on a SUN (or the likes) from the era.

    AFAIR Suresh (ancient times c.m.sendmaik poster) switched from sendmail
    to postfix to avoid problems with exporting/map *HUGE* SQL database into sendmail maps (*LONG* build times).

    *nod*

    I don't know when it was introduced, but I'd think that judicious use of editmap might be a viable option to avoid completely rebuilding a map.

    Note: I'm assuming that editmap has the ability to edit a single entry
    of the existing file without doing a wholesale replacement. Lest it be effectively the same as makemap.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrzej Adam Filip@21:1/5 to Grant Taylor on Wed May 26 17:33:10 2021
    Grant Taylor <gtaylor@tnetconsulting.net> wrote:
    On 5/26/21 12:10 AM, Harald Hannelius wrote:
    25 + years with Sendmail and I would have found a bug? Incredible :)

    It happens.

    I do think there's a reason why Debian does it the way they do. It
    would be interesting to do some internet-archeology and find out
    why.

    I won't be surprised if it's because the time it took to build the map
    on older systems for large numbers of entries took too long. Which
    seems to be a non-starter for about the last decade or two for me.

    Define/estimate your large (number of entries)

    AFAIR Suresh (ancient times c.m.sendmaik poster) switched from sendmail
    to postfix to avoid problems with exporting/map *HUGE* SQL database into sendmail maps (*LONG* build times).

    --
    [Andrew] Andrzej A. Filip

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Andrzej Adam Filip on Wed May 26 12:01:13 2021
    On 5/26/21 11:49 AM, Andrzej Adam Filip wrote:
    Another *very good* reason may be to keep old map version if the makemap fails e.g. due bad line format/missing value. Shit happens.

    That's what my (nightly) system backups provide.

    Obviously there's nothing wrong with taking a copy of the existing map
    file before running makemap (or editmap). This should also be trivial
    to automate via script or Makefile.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to All on Thu May 27 11:13:34 2021
    Update:
    the problem seems to be fairly specific to Debian 10,
    it's not reproduceable on CentOS (notr *BSD).
    Switching to flock() (instead of fcntl()) locking:
    APPENDDEF(`confENVDEF', ` -DHASFLOCK')
    fixes the problem - hence it might be a bug in the OS.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to All on Mon May 31 18:31:16 2021
    Update 2:
    it seems the use of fcntl() for file locking does not work for
    Berkeley DB 5.x (and later?).

    8.17.0.1 (just released) fails to compile if such a setup is
    detected. Alternatives are listed in the release notes etc.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas S. Kerber@21:1/5 to All on Mon May 31 20:10:15 2021
    Update 2:
    it seems the use of fcntl() for file locking does not work for
    Berkeley DB 5.x (and later?).

    8.17.0.1 (just released) fails to compile if such a setup is
    detected. Alternatives are listed in the release notes etc.

    Just gave it a try on CentOS 8 with gcc version 8.3.1.
    3 deprecation warnings about RES_USE_INET6 and 1 error in conf.c.

    Making all in:
    /usr/local/src/sendmail-8.17.0.1/sendmail
    Configuration: pfx=, os=Linux, rel=4.18.0-240.22.1.el8_3.x86_64, rbase=4, rroot=4.18.0-240.22.1.el8_3,
    arch=x86_64, sfx=, variant=optimized
    Making in /usr/local/src/sendmail-8.17.0.1/obj.Linux.4.18.0-240.22.1.el8_3.x86_64.x86_64/sendmail
    make[1]: Entering directory '/usr/local/src/sendmail-8.17.0.1/obj.Linux.4.18.0-240.22.1.el8_3.x86_64.x86_64/sendmail'
    cc -O2 -I. -I../../include -I/usr/local/include -DSASL=2 -DNETINET6 -D_FFR_DEAL_WITH_ERROR_SSL -D_FFR_TLS_EC -D_FFR_TLS_1 -DMAP_REGEX -DNEWDB -DSTARTTLS -c -o conf.o conf.c
    conf.c: In function ‘sm_getipnodebyname’:
    conf.c:4320:13: warning: RES_USE_INET6 is deprecated
    resv6 = bitset(RES_USE_INET6, _res.options);
    ^
    conf.c:4321:13: warning: RES_USE_INET6 is deprecated
    _res.options |= RES_USE_INET6;
    ^
    conf.c:4328:13: warning: RES_USE_INET6 is deprecated
    _res.options &= ~RES_USE_INET6;
    ^
    conf.c: At top level:
    conf.c:5952:6: error: invalid preprocessing directive #ERROR
    # ERROR: "Berkeley DB file locking needs flock() for version 5.x (and greater?)"
    ^
    make[1]: *** [<builtin>: conf.o] Error 1
    make[1]: Leaving directory '/usr/local/src/sendmail-8.17.0.1/obj.Linux.4.18.0-240.22.1.el8_3.x86_64.x86_64/sendmail'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Andreas S. Kerber on Mon May 31 20:35:36 2021
    [reposting, it seems the first attempt failed]
    Andreas S. Kerber wrote:

    8.17.0.1 (just released) fails to compile if such a setup is
    ^^^^^^^^^^^^^^^^
    detected. Alternatives are listed in the release notes etc.

    conf.c:5952:6: error: invalid preprocessing directive #ERROR
    # ERROR: "Berkeley DB file locking needs flock() for version 5.x (and greater?)"

    That's exactly what I wrote above.

    See also the release notes and KNOWNBUGS.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

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