Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Klein bottle for rent -- inquire within.


computers / comp.mail.sendmail / Re: User unknown while 'makemap hash'

SubjectAuthor
* User unknown while 'makemap hash'Harald Hannelius
+* Re: User unknown while 'makemap hash'Harald Hannelius
|+* Re: User unknown while 'makemap hash'Claus Aßmann
||`* Re: User unknown while 'makemap hash'Harald Hannelius
|| `- Re: User unknown while 'makemap hash'Harald Hannelius
|`* Re: User unknown while 'makemap hash'Claus Aßmann
| `- Re: User unknown while 'makemap hash'Harald Hannelius
+* Re: User unknown while 'makemap hash' [generating new access table]Andrzej Adam Filip
|+* Re: User unknown while 'makemap hash' [generating new access table]Harald Hannelius
||`* Re: User unknown while 'makemap hash'Andrzej Adam Filip
|| `* Re: User unknown while 'makemap hash'Claus Aßmann
||  `* Re: User unknown while 'makemap hash'Andrzej Adam Filip
||   `* Re: User unknown while 'makemap hash'Claus Aßmann
||    `* Re: User unknown while 'makemap hash'Harald Hannelius
||     `* Re: User unknown while 'makemap hash'Claus Aßmann
||      `* Re: User unknown while 'makemap hash'Harald Hannelius
||       `* Re: User unknown while 'makemap hash'Grant Taylor
||        +* Re: User unknown while 'makemap hash'Andrzej Adam Filip
||        |`- Re: User unknown while 'makemap hash'Grant Taylor
||        `* Re: User unknown while 'makemap hash'Andrzej Adam Filip
||         `- Re: User unknown while 'makemap hash'Grant Taylor
|`- Re: User unknown while 'makemap hash' [generating new access table]Claus Aßmann
+- Re: User unknown while 'makemap hash'Claus Aßmann
`* Re: User unknown while 'makemap hash'Claus Aßmann
 `* Re: User unknown while 'makemap hash'Andreas S. Kerber
  `- Re: User unknown while 'makemap hash'Claus Aßmann

Pages:12
User unknown while 'makemap hash'

<4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=162&group=comp.mail.sendmail#162

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:9b51:: with SMTP id d78mr28054525qke.441.1621855606832; Mon, 24 May 2021 04:26:46 -0700 (PDT)
X-Received: by 2002:a25:e795:: with SMTP id e143mr4611746ybh.178.1621855606567; Mon, 24 May 2021 04:26:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 24 May 2021 04:26:46 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9; posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
Subject: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Mon, 24 May 2021 11:26:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: Harald Hannelius - Mon, 24 May 2021 11:26 UTC

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.

Re: User unknown while 'makemap hash'

<ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=163&group=comp.mail.sendmail#163

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:7306:: with SMTP id o6mr31089153qkc.38.1621856968437;
Mon, 24 May 2021 04:49:28 -0700 (PDT)
X-Received: by 2002:a5b:f41:: with SMTP id y1mr36769495ybr.163.1621856968116;
Mon, 24 May 2021 04:49:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!newsin.alt.net!fdcspool1.netnews.com!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 24 May 2021 04:49:27 -0700 (PDT)
In-Reply-To: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Mon, 24 May 2021 11:49:28 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2007
 by: Harald Hannelius - Mon, 24 May 2021 11:49 UTC

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.

Re: User unknown while 'makemap hash' [generating new access table]

<anfi+n0cteclftf-l5o1@wp.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=164&group=comp.mail.sendmail#164

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: anf...@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash' [generating new access table]
Date: Mon, 24 May 2021 11:58:19 +0000 (UTC)
Organization: It is for me to know and for you to find out.
Lines: 38
Message-ID: <anfi+n0cteclftf-l5o1@wp.eu>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="c7619d3a2433a2ec5c4c4aaa673972a9";
logging-data="28912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JR/OyG2QAH8/zPllEOS8K"
Cancel-Lock: sha1:jjxzc72amAjGSwhY2GqVzAXHaGU=
sha1:3Vq/jRb5BkrVHxfDArUoB+r80T8=
 by: Andrzej Adam Filip - Mon, 24 May 2021 11:58 UTC

Harald Hannelius <harald.hannelius@gmail.com> wrote:
> 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.

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

AFAIK /etc/mail/Makefile provided by Debian-Linux uses 4 step procedure
1. create new map version *in new/separate file* 2. fix ownership
3. fix access permissions 4. do atomic replacement (file rename) of old
version by new version

/usr/sbin/makemap hash /etc/mail/access.new.db < /etc/mail/access
chown smmta:smmsp /etc/mail/access.new.db
chmod 0640 /etc/mail/access.new.db
mv -f /etc/mail/access.new.db /etc/mail/access.db

AFAIR Ancient horror stories here included *HUGE* map taking hours to
generate as hash and 20 minutes to generate as btree from pre sorted
input [It was ling before SSD]

--
[Andrew] Andrzej A. Filip

Re: User unknown while 'makemap hash' [generating new access table]

<8dfe5b9f-04bc-4e3d-b2fa-57a942dfa991n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=165&group=comp.mail.sendmail#165

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:c241:: with SMTP id j1mr28794257qkm.387.1621858260342; Mon, 24 May 2021 05:11:00 -0700 (PDT)
X-Received: by 2002:a25:bb08:: with SMTP id z8mr35093451ybg.103.1621858260120; Mon, 24 May 2021 05:11:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 24 May 2021 05:10:59 -0700 (PDT)
In-Reply-To: <anfi+n0cteclftf-l5o1@wp.eu>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9; posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <anfi+n0cteclftf-l5o1@wp.eu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8dfe5b9f-04bc-4e3d-b2fa-57a942dfa991n@googlegroups.com>
Subject: Re: User unknown while 'makemap hash' [generating new access table]
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Mon, 24 May 2021 12:11:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
 by: Harald Hannelius - Mon, 24 May 2021 12:10 UTC

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.

Re: User unknown while 'makemap hash'

<anfi+e9sr2bp4pf-l5o1@wp.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=166&group=comp.mail.sendmail#166

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: anf...@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 24 May 2021 12:23:26 +0000 (UTC)
Organization: It is for me to know and for you to find out.
Lines: 20
Message-ID: <anfi+e9sr2bp4pf-l5o1@wp.eu>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+n0cteclftf-l5o1@wp.eu>
<8dfe5b9f-04bc-4e3d-b2fa-57a942dfa991n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="c7619d3a2433a2ec5c4c4aaa673972a9";
logging-data="28912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hCKA/BsUieRER1f9Gk3ZK"
Cancel-Lock: sha1:NyDUQ/ND3QCdyFh+8+StXWpfrRU=
sha1:O41r1ADz/Z1nG5J9O6jJtYtGMFw=
 by: Andrzej Adam Filip - Mon, 24 May 2021 12:23 UTC

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

Re: User unknown while 'makemap hash'

<s8gor0$tg6$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=167&group=comp.mail.sendmail#167

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 24 May 2021 17:47:12 +0000 (UTC)
Organization: MGT Consulting
Lines: 23
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8gor0$tg6$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <anfi+n0cteclftf-l5o1@wp.eu> <8dfe5b9f-04bc-4e3d-b2fa-57a942dfa991n@googlegroups.com> <anfi+e9sr2bp4pf-l5o1@wp.eu>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1621878432 30214 195.244.235.220 (24 May 2021 17:47:12 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Mon, 24 May 2021 17:47:12 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 24 May 2021 17:47 UTC

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.

Re: User unknown while 'makemap hash' [generating new access table]

<s8gp9f$tnd$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=168&group=comp.mail.sendmail#168

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash' [generating new access table]
Date: Mon, 24 May 2021 17:54:55 +0000 (UTC)
Organization: MGT Consulting
Lines: 23
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8gp9f$tnd$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <anfi+n0cteclftf-l5o1@wp.eu>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1621878895 30445 195.244.235.220 (24 May 2021 17:54:55 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Mon, 24 May 2021 17:54:55 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 24 May 2021 17:54 UTC

Andrzej Adam Filip wrote:

> AFAIK /etc/mail/Makefile provided by Debian-Linux uses 4 step procedure
> 1. create new map version *in new/separate file* 2. fix ownership
> 3. fix access permissions 4. do atomic replacement (file rename) of old
> version by new version

This is useful if makemap takes "too long".

However, any "long running" sendmail process will NOT notice the
new map content -- sendmail checks whether the actual file it has
open changed.

Of course sendmail does this with the proper locking -- but if that
locking is broken in some way on the OS (esp. if "lock on open"
does NOT work!) then there can be problems.

--
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.

Re: User unknown while 'makemap hash'

<anfi+9d8xpdisyf-l5o1@wp.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=169&group=comp.mail.sendmail#169

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: anf...@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 24 May 2021 18:01:39 +0000 (UTC)
Organization: It is for me to know and for you to find out.
Lines: 28
Message-ID: <anfi+9d8xpdisyf-l5o1@wp.eu>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+n0cteclftf-l5o1@wp.eu>
<8dfe5b9f-04bc-4e3d-b2fa-57a942dfa991n@googlegroups.com>
<anfi+e9sr2bp4pf-l5o1@wp.eu> <s8gor0$tg6$1@news.misty.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="038dd0b5559b4d9d0d99cf0f0b013f83";
logging-data="5287"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hyA0gMSC3gW8GuLnealSw"
Cancel-Lock: sha1:jN7bROt4zTbNOLCSJNGxS5G7Nng=
sha1:O6Uod3NWPWQIOo+gXkJib3Zr5YY=
 by: Andrzej Adam Filip - Mon, 24 May 2021 18:01 UTC

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

Re: User unknown while 'makemap hash'

<s8grsp$uqn$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=170&group=comp.mail.sendmail#170

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 24 May 2021 18:39:22 +0000 (UTC)
Organization: MGT Consulting
Lines: 17
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8grsp$uqn$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <anfi+e9sr2bp4pf-l5o1@wp.eu> <s8gor0$tg6$1@news.misty.com> <anfi+9d8xpdisyf-l5o1@wp.eu>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1621881562 31575 195.244.235.220 (24 May 2021 18:39:22 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Mon, 24 May 2021 18:39:22 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 24 May 2021 18:39 UTC

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.

Re: User unknown while 'makemap hash'

<s8hvs5$d2k$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=172&group=comp.mail.sendmail#172

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Tue, 25 May 2021 04:53:25 +0000 (UTC)
Organization: MGT Consulting
Lines: 20
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8hvs5$d2k$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1621918405 13396 195.244.235.220 (25 May 2021 04:53:25 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Tue, 25 May 2021 04:53:25 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
X-Received-Bytes: 1795
 by: Claus Aßmann - Tue, 25 May 2021 04:53 UTC

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.

Re: User unknown while 'makemap hash'

<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=173&group=comp.mail.sendmail#173

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:4484:: with SMTP id r126mr33749278qka.18.1621930595007;
Tue, 25 May 2021 01:16:35 -0700 (PDT)
X-Received: by 2002:a5b:90d:: with SMTP id a13mr43429910ybq.151.1621930594812;
Tue, 25 May 2021 01:16:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Tue, 25 May 2021 01:16:34 -0700 (PDT)
In-Reply-To: <s8grsp$uqn$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+e9sr2bp4pf-l5o1@wp.eu> <s8gor0$tg6$1@news.misty.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Tue, 25 May 2021 08:16:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harald Hannelius - Tue, 25 May 2021 08:16 UTC

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

Re: User unknown while 'makemap hash'

<a97f5e90-ffa3-4202-8cc0-ca9b07f6ddf8n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=174&group=comp.mail.sendmail#174

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:c241:: with SMTP id j1mr33636724qkm.387.1621930865792;
Tue, 25 May 2021 01:21:05 -0700 (PDT)
X-Received: by 2002:a5b:388:: with SMTP id k8mr42329636ybp.431.1621930865535;
Tue, 25 May 2021 01:21:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Tue, 25 May 2021 01:21:05 -0700 (PDT)
In-Reply-To: <s8hvs5$d2k$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com> <s8hvs5$d2k$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a97f5e90-ffa3-4202-8cc0-ca9b07f6ddf8n@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Tue, 25 May 2021 08:21:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harald Hannelius - Tue, 25 May 2021 08:21 UTC

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.

Re: User unknown while 'makemap hash'

<913a1e10-e731-473a-b24d-e982e32cc86dn@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=175&group=comp.mail.sendmail#175

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:620a:1039:: with SMTP id a25mr7091643qkk.6.1621931295638;
Tue, 25 May 2021 01:28:15 -0700 (PDT)
X-Received: by 2002:a25:ae24:: with SMTP id a36mr41966109ybj.97.1621931295442;
Tue, 25 May 2021 01:28:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Tue, 25 May 2021 01:28:15 -0700 (PDT)
In-Reply-To: <a97f5e90-ffa3-4202-8cc0-ca9b07f6ddf8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com> <s8hvs5$d2k$1@news.misty.com>
<a97f5e90-ffa3-4202-8cc0-ca9b07f6ddf8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <913a1e10-e731-473a-b24d-e982e32cc86dn@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Tue, 25 May 2021 08:28:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harald Hannelius - Tue, 25 May 2021 08:28 UTC

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

Re: User unknown while 'makemap hash'

<s8knup$gbv$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=176&group=comp.mail.sendmail#176

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 05:56:41 +0000 (UTC)
Organization: MGT Consulting
Lines: 18
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8knup$gbv$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com> <aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1622008601 16767 195.244.235.220 (26 May 2021 05:56:41 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Wed, 26 May 2021 05:56:41 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Wed, 26 May 2021 05:56 UTC

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.

Re: User unknown while 'makemap hash'

<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=177&group=comp.mail.sendmail#177

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:ae9:eb93:: with SMTP id b141mr40459788qkg.151.1622009410453;
Tue, 25 May 2021 23:10:10 -0700 (PDT)
X-Received: by 2002:a25:9a83:: with SMTP id s3mr9497475ybo.394.1622009410104;
Tue, 25 May 2021 23:10:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Tue, 25 May 2021 23:10:09 -0700 (PDT)
In-Reply-To: <s8knup$gbv$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com> <s8knup$gbv$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Wed, 26 May 2021 06:10:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harald Hannelius - Wed, 26 May 2021 06:10 UTC

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!

Re: User unknown while 'makemap hash'

<s8ksqh$inn$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=178&group=comp.mail.sendmail#178

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 07:19:45 +0000 (UTC)
Organization: MGT Consulting
Lines: 14
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8ksqh$inn$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1622013585 19191 195.244.235.220 (26 May 2021 07:19:45 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Wed, 26 May 2021 07:19:45 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Wed, 26 May 2021 07:19 UTC

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.

Re: User unknown while 'makemap hash'

<7b67b482-7826-49b0-90bc-f36e5a8257e5n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=179&group=comp.mail.sendmail#179

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a37:f612:: with SMTP id y18mr39123372qkj.436.1622015580256;
Wed, 26 May 2021 00:53:00 -0700 (PDT)
X-Received: by 2002:a25:50cb:: with SMTP id e194mr17992980ybb.184.1622015580093;
Wed, 26 May 2021 00:53:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Wed, 26 May 2021 00:52:59 -0700 (PDT)
In-Reply-To: <s8ksqh$inn$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:708:170:33:0:0:0:9;
posting-account=rbvScAoAAAAa9xNa0AwABHreC_kgMf4k
NNTP-Posting-Host: 2001:708:170:33:0:0:0:9
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<ef7b24bc-1936-4f55-8b43-b600a4c61dffn@googlegroups.com> <s8ksqh$inn$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7b67b482-7826-49b0-90bc-f36e5a8257e5n@googlegroups.com>
Subject: Re: User unknown while 'makemap hash'
From: harald.h...@gmail.com (Harald Hannelius)
Injection-Date: Wed, 26 May 2021 07:53:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harald Hannelius - Wed, 26 May 2021 07:52 UTC

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

Re: User unknown while 'makemap hash'

<s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=180&group=comp.mail.sendmail#180

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 10:30:17 -0600
Organization: TNet Consulting
Message-ID: <s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
<s8knup$gbv$1@news.misty.com>
<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 May 2021 16:32:41 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="17937"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
Content-Language: en-US
 by: Grant Taylor - Wed, 26 May 2021 16:30 UTC

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

Re: User unknown while 'makemap hash'

<anfi+d7m4x8nkrf-l5q3@wp.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=183&group=comp.mail.sendmail#183

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: anf...@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 17:33:10 +0000 (UTC)
Organization: It is for me to know and for you to find out.
Lines: 22
Message-ID: <anfi+d7m4x8nkrf-l5q3@wp.eu>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
<s8knup$gbv$1@news.misty.com>
<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
<s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="af36b15154cbd3ec9c6ef8aa24a635b8";
logging-data="25060"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9AljpidJFerpVSGqgEGpM"
Cancel-Lock: sha1:tlbjK+xVpkTdpgXWkTIYzIyietI=
sha1:/B1nTSbMHnmXSSWVqYcXi3H3m/w=
 by: Andrzej Adam Filip - Wed, 26 May 2021 17:33 UTC

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

Re: User unknown while 'makemap hash'

<anfi+iaj3p6sbjf-l5q3@wp.eu>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=184&group=comp.mail.sendmail#184

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: anf...@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 17:49:14 +0000 (UTC)
Organization: It is for me to know and for you to find out.
Lines: 19
Message-ID: <anfi+iaj3p6sbjf-l5q3@wp.eu>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
<s8knup$gbv$1@news.misty.com>
<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
<s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="af36b15154cbd3ec9c6ef8aa24a635b8";
logging-data="25060"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YA5+1WL4bY92HQDlE61UD"
Cancel-Lock: sha1:T+jzie85KB6L2Dj0owOjTqgPvFc=
sha1:zLgfTM4k113lRaCRT0SlUSORm3k=
 by: Andrzej Adam Filip - Wed, 26 May 2021 17:49 UTC

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

Re: User unknown while 'makemap hash'

<s8m2e3$sf$1@tncsrv09.home.tnetconsulting.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=185&group=comp.mail.sendmail#185

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 11:59:14 -0600
Organization: TNet Consulting
Message-ID: <s8m2e3$sf$1@tncsrv09.home.tnetconsulting.net>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
<s8knup$gbv$1@news.misty.com>
<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
<s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net> <anfi+d7m4x8nkrf-l5q3@wp.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 May 2021 18:01:39 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="911"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <anfi+d7m4x8nkrf-l5q3@wp.eu>
Content-Language: en-US
 by: Grant Taylor - Wed, 26 May 2021 17:59 UTC

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

Re: User unknown while 'makemap hash'

<s8m2hp$sf$2@tncsrv09.home.tnetconsulting.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=186&group=comp.mail.sendmail#186

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Wed, 26 May 2021 12:01:13 -0600
Organization: TNet Consulting
Message-ID: <s8m2hp$sf$2@tncsrv09.home.tnetconsulting.net>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
<anfi+9d8xpdisyf-l5o1@wp.eu> <s8grsp$uqn$1@news.misty.com>
<aa16bec3-5b42-4999-92d0-d0d2706183een@googlegroups.com>
<s8knup$gbv$1@news.misty.com>
<96f56a0e-1beb-4aae-94fa-11d705145321n@googlegroups.com>
<s8lt79$hgh$2@tncsrv09.home.tnetconsulting.net> <anfi+iaj3p6sbjf-l5q3@wp.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 May 2021 18:03:37 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="911"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <anfi+iaj3p6sbjf-l5q3@wp.eu>
Content-Language: en-US
 by: Grant Taylor - Wed, 26 May 2021 18:01 UTC

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

Re: User unknown while 'makemap hash'

<s8nust$q30$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=187&group=comp.mail.sendmail#187

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fdc2.netnews.com!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: ml+sendm...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Thu, 27 May 2021 11:13:34 +0000 (UTC)
Organization: MGT Consulting
Lines: 12
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s8nust$q30$1@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1622114014 26720 195.244.235.220 (27 May 2021 11:13:34 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Thu, 27 May 2021 11:13:34 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
X-Received-Bytes: 1611
 by: Claus Aßmann - Thu, 27 May 2021 11:13 UTC

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.

Re: User unknown while 'makemap hash'

<s93a1k$bjj$2@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=195&group=comp.mail.sendmail#195

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!.POSTED!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 31 May 2021 18:31:16 +0000 (UTC)
Organization: MGT Consulting
Lines: 12
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s93a1k$bjj$2@news.misty.com>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1622485876 11891 195.244.235.220 (31 May 2021 18:31:16 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Mon, 31 May 2021 18:31:16 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Mon, 31 May 2021 18:31 UTC

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.

Re: User unknown while 'makemap hash'

<s93fr7$mlh$2@bastet.speedkom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=196&group=comp.mail.sendmail#196

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!speedkom.net!not-for-mail
From: ask...@eb6.srv.ke3.speedkom.net (Andreas S. Kerber)
Newsgroups: comp.mail.sendmail
Subject: Re: User unknown while 'makemap hash'
Date: Mon, 31 May 2021 20:10:15 +0000 (UTC)
Organization: IDKOM Networks GmbH
Lines: 41
Message-ID: <s93fr7$mlh$2@bastet.speedkom.net>
References: <4c93692b-a8c6-4376-a447-7a40b7fad104n@googlegroups.com> <s93a1k$bjj$2@news.misty.com>
NNTP-Posting-Host: eb6.srv.ke3.speedkom.net
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: bastet.speedkom.net 1622491815 23217 2001:14e0::31 (31 May 2021 20:10:15 GMT)
X-Complaints-To: abuse@speedkom.net
NNTP-Posting-Date: Mon, 31 May 2021 20:10:15 +0000 (UTC)
 by: Andreas S. Kerber - Mon, 31 May 2021 20:10 UTC

> 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'

Pages:12
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor