Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Old programmers never die, they just hit account block limit.


computers / comp.mail.sendmail / Re: prefer IPv4 when connecting to external dual-stack MTAs

SubjectAuthor
* Re: prefer IPv4 when connecting to external dual-stack MTAsOtto J. Makela
+* Re: prefer IPv4 when connecting to external dual-stack MTAsMarco Moock
|`* Re: prefer IPv4 when connecting to external dual-stack MTAsOtto J. Makela
| `- Re: prefer IPv4 when connecting to external dual-stack MTAsMarco Moock
+* Re: prefer IPv4 when connecting to external dual-stack MTAsHenning Hucke
|`- Re: prefer IPv4 when connecting to external dual-stack MTAsOtto J. Makela
+* Re: prefer IPv4 when connecting to external dual-stack MTAsClaus Aßmann
|+- Re: prefer IPv4 when connecting to external dual-stack MTAsMarco Moock
|`- Re: prefer IPv4 when connecting to external dual-stack MTAsAndreas S. Kerber
`- Re: prefer IPv4 when connecting to external dual-stack MTAsClaus Aßmann

1
Re: prefer IPv4 when connecting to external dual-stack MTAs

<87tu3pigdl.fsf@tigger.extechop.net>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: om@iki.fi (Otto J. Makela)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Thu, 27 Oct 2022 15:46:14 +0300
Organization: Games and Theory
Lines: 25
Message-ID: <87tu3pigdl.fsf@tigger.extechop.net>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="fea57f66d7ac2f33e48f5bab52cd726a";
logging-data="2917483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ei0NXStMy8z3CIEjryX5X"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:6vpNcJTgGXSe4M9dhsnfCCro4FU=
sha1:Fxx+gToKGn+A5eEbB38oLKvdn0o=
X-Face: 'g'S,X"!c;\pfvl4ljdcm?cDdk<-Z;`x5;YJPI-cs~D%;_<\V3!3GCims?a*;~u$<FYl@"E
c?3?_J+Zwn~{$8<iEy}EqIn_08"`oWuqO$#(5y3hGq8}BG#sag{BL)u8(c^Lu;*{8+'Z-k\?k09ILS
Mail-Copies-To: never
X-URL: http://www.iki.fi/om/
 by: Otto J. Makela - Thu, 27 Oct 2022 12:46 UTC

Claus Aßmann <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote:

> Tim Mooney wrote:
>> xdelay=00:00:01, mailer=esmtp, pri=44502294, relay=example-com.mai...ction.outlook.com.
>> [IPv6:their-address-withheld], dsn=4.0.0, stat=Deferred: 450 4.7.26 Service does not accept messages sent over
>> IPv6 [our-smtp-server-ipv6-address] unless they pass either SPF or DKIM validation (message not signed)
>
> Wow, really? I didn't see that requirement in any RFC.
> But hey, "We are M$, we don't care about ..."

Unfortunately also Google seems to these days be doing this, except they
give a dsn=5.0.0 answer.

It seems that the thinking is that if you are able to set up IPv6 on
your host, you must be super-good at Teh Internet and you'll also very
easily produce a fully functional SPF+DKIM setup.

Has any progress been made on the "prefer IPv4 connections" option over
these 5 years?

--
/* * * Otto J. Makela <om@iki.fi> * * * * * * * * * */
/* Phone: +358 40 765 5772, ICBM: N 60 10' E 24 55' */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki */
/* * * Computers Rule 01001111 01001011 * * * * * * */

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tjdv1k$2n3ev$20@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Thu, 27 Oct 2022 14:54:12 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tjdv1k$2n3ev$20@dont-email.me>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com>
<87tu3pigdl.fsf@tigger.extechop.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Oct 2022 12:54:12 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fe7ce6a6e53c15641581ebf3aa5b1833";
logging-data="2854367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Wt+lgP+KMR8i6tPX3YOsc"
Cancel-Lock: sha1:vo8Te/gg7NiccaWihCOtUUtYQdc=
 by: Marco Moock - Thu, 27 Oct 2022 12:54 UTC

Am 27.10.2022 um 15:46:14 Uhr schrieb Otto J. Makela:

> Unfortunately also Google seems to these days be doing this, except
> they give a dsn=5.0.0 answer.
>
> It seems that the thinking is that if you are able to set up IPv6 on
> your host, you must be super-good at Teh Internet and you'll also very
> easily produce a fully functional SPF+DKIM setup.

The problem with IPv6 is the amount of addresses. Operating IP
blocklists for IPv4 is rather easy compared to IPv6. Setting up SPF
should be rather easy, DKIM is much more complicated.

Do you have SPF set up correctly?

Re: prefer IPv4 when connecting to external dual-stack MTAs

<87pmediewd.fsf@tigger.extechop.net>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: om@iki.fi (Otto J. Makela)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Thu, 27 Oct 2022 16:18:10 +0300
Organization: Games and Theory
Lines: 29
Message-ID: <87pmediewd.fsf@tigger.extechop.net>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net>
<tjdv1k$2n3ev$20@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="fea57f66d7ac2f33e48f5bab52cd726a";
logging-data="2917483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ITYkghJBCn/qap6oEQz01"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:D0PQsLZLPUgoEcbnWYWz3iOLmTY=
sha1:JrX30CrxmDg3M19GjdF1zL22E6g=
Mail-Copies-To: never
X-Face: 'g'S,X"!c;\pfvl4ljdcm?cDdk<-Z;`x5;YJPI-cs~D%;_<\V3!3GCims?a*;~u$<FYl@"E
c?3?_J+Zwn~{$8<iEy}EqIn_08"`oWuqO$#(5y3hGq8}BG#sag{BL)u8(c^Lu;*{8+'Z-k\?k09ILS
X-URL: http://www.iki.fi/om/
 by: Otto J. Makela - Thu, 27 Oct 2022 13:18 UTC

Marco Moock <mo01@posteo.de> wrote:

> Am 27.10.2022 um 15:46:14 Uhr schrieb Otto J. Makela:
>> It seems that the thinking is that if you are able to set up IPv6 on
>> your host, you must be super-good at Teh Internet and you'll also
>> very easily produce a fully functional SPF+DKIM setup.
>
> The problem with IPv6 is the amount of addresses. Operating IP
> blocklists for IPv4 is rather easy compared to IPv6. Setting up SPF
> should be rather easy, DKIM is much more complicated.

Blocklists were a thing of the 2010's anyway, spammers these days seem
to be fully functioning criminals who steal all resources they need.
The amount of spam originating from outlook.com/gmail.com is suprising.

> Do you have SPF set up correctly?

Yes, SPF is correctly set up. Although with some of our clients we're
getting problematically close to the "max 10 lookups" limitation,
these solutions are really not designed for large-scale outsourcing.

We're working on DKIM with the dozen or so clients who haven't needed it
up till now, until they suddenly do now.

--
/* * * Otto J. Makela <om@iki.fi> * * * * * * * * * */
/* Phone: +358 40 765 5772, ICBM: N 60 10' E 24 55' */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki */
/* * * Computers Rule 01001111 01001011 * * * * * * */

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tje1ig$2n3ev$21@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Thu, 27 Oct 2022 15:37:20 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <tje1ig$2n3ev$21@dont-email.me>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com>
<87tu3pigdl.fsf@tigger.extechop.net>
<tjdv1k$2n3ev$20@dont-email.me>
<87pmediewd.fsf@tigger.extechop.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Oct 2022 13:37:20 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fe7ce6a6e53c15641581ebf3aa5b1833";
logging-data="2854367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/skK5OZMOuIKDyjjprLgCi"
Cancel-Lock: sha1:UIN0XhMOv8TLhX0xew3PfSQnwkY=
 by: Marco Moock - Thu, 27 Oct 2022 13:37 UTC

Am 27.10.2022 um 16:18:10 Uhr schrieb Otto J. Makela:

> Blocklists were a thing of the 2010's anyway, spammers these days seem
> to be fully functioning criminals who steal all resources they need.

Mostly they use hacked machines.

> The amount of spam originating from outlook.com/gmail.com is
> suprising.

Because Google doesn't care about this, same on Google Groups.

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tjfsdn$cbe$1@sirius.aeon.icebear.cloud>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: h_hucke+spam.news@newsmail.aeon.icebear.org (Henning Hucke)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 06:21:43 -0000 (UTC)
Organization: aeon: think longer than you thought before
Lines: 38
Distribution: world
Message-ID: <tjfsdn$cbe$1@sirius.aeon.icebear.cloud>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com> <ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net>
Reply-To: Henning Hucke <h_hucke+news.reply@newsmail.aeon.icebear.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net DTh4dxdYFo6L1jvoTgIY0A4m/sJU94y5Wmbsyz87iNbKKvI2K1
X-Orig-Path: news.aeon.icebear.cloud!news1.aeon.icebear.cloud!.POSTED.romulus.aeon.icebear.cloud!not-for-mail
Cancel-Lock: sha1:s1lD0iV7hlJddGgvfL/S/4SSyTU= sha1:MC7FoneKVkafwJRxMgOf4Z9YIhw=
Injection-Date: Fri, 28 Oct 2022 06:21:43 -0000 (UTC)
Injection-Info: sirius.aeon.icebear.cloud; posting-host="romulus.aeon.icebear.cloud:fd09:afca:b044:1:4ecc:6aff:fecf:5c8f";
logging-data="12654"; mail-complaints-to="abuse+news@aeon.icebear.cloud"
User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (Linux/4.9.0-15-amd64 (x86_64))
 by: Henning Hucke - Fri, 28 Oct 2022 06:21 UTC

Otto J. Makela <om@iki.fi> wrote:
> Claus Aßmann <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote:
>
>> Tim Mooney wrote:
>>> xdelay=00:00:01, mailer=esmtp, pri=44502294, relay=example-com.mai...ction.outlook.com.
>>> [IPv6:their-address-withheld], dsn=4.0.0, stat=Deferred: 450 4.7.26 Service does not accept messages sent over
>>> IPv6 [our-smtp-server-ipv6-address] unless they pass either SPF or DKIM validation (message not signed)
>>
>> Wow, really? I didn't see that requirement in any RFC.
>> But hey, "We are M$, we don't care about ..."
>
> Unfortunately also Google seems to these days be doing this, except they
> give a dsn=5.0.0 answer.

Which prooves that some silly people are also working for google.

> It seems that the thinking is that if you are able to set up IPv6 on
> your host, you must be super-good at Teh Internet and you'll also very
> easily produce a fully functional SPF+DKIM setup.

The message states SPF (logical) /or/ DKIM! And neither SPF nor DKIM are
books with seven seals. DKIM is a little bit tricky for a comany which
sends diverse flavours of mails but its not a trick...

> Has any progress been made on the "prefer IPv4 connections" option over
> these 5 years?

This is IMHO no sendmail issue! Simply make your DNS sort the results of
a query so that A RRs are "listed" before AAAA RRs. Possibly this can
also be done locally by using the DNS resolver directive of sendmail
together with an appropriate resolver option - for example "sortlist" -
with a "pattern" which matches IPv4 addresses first ("0/0"?) and IPv6
addresses second ("::/0"?).

Regards
Henning
--
Hacking's just another word for nothing left to kludge.

Re: prefer IPv4 when connecting to external dual-stack MTAs

<878rl0wh9z.fsf@tigger.extechop.net>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: om@iki.fi (Otto J. Makela)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 10:15:20 +0300
Organization: Games and Theory
Lines: 29
Message-ID: <878rl0wh9z.fsf@tigger.extechop.net>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net>
<tjfsdn$cbe$1@sirius.aeon.icebear.cloud>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="e0208411cdc6842a6edbeaf374b722ad";
logging-data="3175616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xN58gv4IRS6/4vC0w4zcw"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:ZuIGziUwBGSfpstnYujmdSbFZ24=
sha1:XJWSyKH/hZXGrugF1WMtl085vsE=
X-Face: 'g'S,X"!c;\pfvl4ljdcm?cDdk<-Z;`x5;YJPI-cs~D%;_<\V3!3GCims?a*;~u$<FYl@"E
c?3?_J+Zwn~{$8<iEy}EqIn_08"`oWuqO$#(5y3hGq8}BG#sag{BL)u8(c^Lu;*{8+'Z-k\?k09ILS
X-URL: http://www.iki.fi/om/
Mail-Copies-To: never
 by: Otto J. Makela - Fri, 28 Oct 2022 07:15 UTC

Henning Hucke <h_hucke+spam.news@newsmail.aeon.icebear.org> wrote:

> Otto J. Makela <om@iki.fi> wrote:
>> Claus Aßmann
>> <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote:
>>> The source code has a comment about this:
>>> ** Try v6 first, then fall back to v4.
>>> and there doesn't seem to be an option to change that
>>> in sendmail.
>>
>> Has any progress been made on the "prefer IPv4 connections" option
>> over these 5 years?
>
> This is IMHO no sendmail issue! Simply make your DNS sort the results
> of a query so that A RRs are "listed" before AAAA RRs. Possibly this
> can also be done locally by using the DNS resolver directive of
> sendmail together with an appropriate resolver option - for example
> "sortlist" - with a "pattern" which matches IPv4 addresses first
> ("0/0"?) and IPv6 addresses second ("::/0"?).

Considering Claus's comment from 2017 (I've copied it above) about how
the sendmail code is built, I doubt trying to mess around with the
resolver will help in this case.

--
/* * * Otto J. Makela <om@iki.fi> * * * * * * * * * */
/* Phone: +358 40 765 5772, ICBM: N 60 10' E 24 55' */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki */
/* * * Computers Rule 01001111 01001011 * * * * * * */

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tjg23i$32v$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 03:58:42 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <tjg23i$32v$1@news.misty.com>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com> <ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 28 Oct 2022 07:58:42 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="3167"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Fri, 28 Oct 2022 07:58 UTC

Otto J. Makela wrote:

> Has any progress been made on the "prefer IPv4 connections" option over
> these 5 years?

There were no requests in those 5 years, hence we didn't work on
it (and nobdoy sent a patch).

Now we will be looking into it because M$ is breaking things
again (there are already many workarounds in the code because M$
is too $#%^@ to set up their IPv6, esp. DNS).

--
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: prefer IPv4 when connecting to external dual-stack MTAs

<tjg3li$30p64$5@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 10:25:21 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <tjg3li$30p64$5@dont-email.me>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com>
<ofhd51$b37$1@news.misty.com>
<87tu3pigdl.fsf@tigger.extechop.net>
<tjg23i$32v$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Date: Fri, 28 Oct 2022 08:25:22 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="95835b37de53117cb47276e42c9ba34e";
logging-data="3171524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JJdwQyYu6qMEo/WuFHbwg"
Cancel-Lock: sha1:9lVHhMqapffyrE+676gHiPpqJOs=
 by: Marco Moock - Fri, 28 Oct 2022 08:25 UTC

Am 28.10.2022 schrieb Claus Aßmann
<INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org>:

> Now we will be looking into it because M$ is breaking things
> again (there are already many workarounds in the code because M$
> is too $#%^@ to set up their IPv6, esp. DNS).

Thanks for doing that, Claus.

Will that option be a general "prefer IPv4" or one that can be
specified for certain recipient domains?

The later one would be very helpful to address problems with IPv6 and
Google/MS.

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tjgerg$85d$1@bastet.speedkom.net>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!news.nntp4.net!speedkom.net!not-for-mail
From: ask@eb6.srv.ke3.speedkom.net (Andreas S. Kerber)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 11:36:16 +0000 (UTC)
Organization: IDKOM Networks GmbH
Lines: 18
Message-ID: <tjgerg$85d$1@bastet.speedkom.net>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com> <ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net> <tjg23i$32v$1@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 1666956976 8365 2001:14e0::31 (28 Oct 2022 11:36:16 GMT)
X-Complaints-To: abuse@speedkom.net
NNTP-Posting-Date: Fri, 28 Oct 2022 11:36:16 +0000 (UTC)
 by: Andreas S. Kerber - Fri, 28 Oct 2022 11:36 UTC

Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> wrote:
> Now we will be looking into it because M$ is breaking things
> again (there are already many workarounds in the code because M$
> is too $#%^@ to set up their IPv6, esp. DNS).

BTW
MS fixed their bad MX entries a short while ago.
falling back to IPv4 is currently no longer necessary to
deliver mail to them.

I don't really see a need to fiddle with the sendmail code
in to order to fallback to IPv4 in such cases.

We've deployed a temporary sendmail instance without "-DNETINET6"
during the days MS had fcked up their MX and routed their domains
via mailertable to that instance. Was a bit of a hazzle at first
but easy enough. IMHO.

Re: prefer IPv4 when connecting to external dual-stack MTAs

<tjh0bi$7fi$1@news.misty.com>

  copy mid

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

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: prefer IPv4 when connecting to external dual-stack MTAs
Date: Fri, 28 Oct 2022 12:34:58 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <tjh0bi$7fi$1@news.misty.com>
References: <0fc9dc83-37ed-453a-b971-0dbfe1ec57e4@googlegroups.com> <ofhd51$b37$1@news.misty.com> <87tu3pigdl.fsf@tigger.extechop.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 28 Oct 2022 16:34:58 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="7666"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Fri, 28 Oct 2022 16:34 UTC

Completely untested patch, used at your own risk etc...
Please report back; any problem description should include enough
information to reproduce it.

To use:
copy the esmtp mailer definition to esmtp4,
add the flag '4' to F=,
and select the esmtp4 mailer for any domain that should
use only IPv4 addresses, maybe something like:
gmail.com esmtp4:gmail.com

As I wrote: it's untested!

diff --git a/sendmail/daemon.c b/sendmail/daemon.c
index c782a50..eafd6f6 100644
--- a/sendmail/daemon.c
+++ b/sendmail/daemon.c
@@ -2160,7 +2160,7 @@ makeconnection(host, port, mci, e, enough
#if NETINET6
volatile bool v6found = false;
#endif
- volatile int family = InetMode;
+ volatile int family;
SOCKADDR_LEN_T len;
volatile SOCKADDR_LEN_T socksize = 0;
volatile bool clt_bind;
@@ -2181,6 +2181,10 @@ makeconnection(host, port, mci, e, enough
tlsa_flags = *ptlsa_flags;
*ptlsa_flags &= ~(TLSAFLALWAYS|TLSAFLSECURE);
#endif
+ if (bitnset(M_IPV4, mci->mci_mailer->m_flags))
+ family = AF_INET;
+ else
+ family = InetMode;
/* retranslate {daemon_flags} into bitmap */
clrbitmap(d_flags);
diff --git a/sendmail/sendmail.h b/sendmail/sendmail.h
index e4e790b..4c90286 100644
--- a/sendmail/sendmail.h
+++ b/sendmail/sendmail.h
@@ -630,8 +630,8 @@ struct mailer
#define M_NOMX '0' /* turn off MX lookups */
#define M_NONULLS '1' /* don't send null bytes */
#define M_FSMTP '2' /* force SMTP (no ESMTP even if offered) */
- /* '4' free? */
#define M_EBCDIC '3' /* extend Q-P encoding for EBCDIC */
+#define M_IPV4 '4' /* Use only IPv4 */
#define M_TRYRULESET5 '5' /* use ruleset 5 after local aliasing */
#define M_7BITHDRS '6' /* strip headers to 7 bits even in 8 bit path */
#define M_7BITS '7' /* use 7-bit path */

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor