OpenBSD CVS

CVS log for src/usr.sbin/smtpd/spfwalk.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 14 17:58:16 2021 UTC (2 years, 11 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.19: +2 -5 lines
Diff to previous 1.19 (colored)

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 14 11:15:25 2020 UTC (3 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

All buffers are in rw-memory, but lookup_record has it defined as
const char *. Remove the const so things compile a little cleaner.

Pointer out by Mark Patruck <mark <at> wrapped <dot> cx>. Thanks

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 14 09:48:08 2020 UTC (3 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.17: +10 -0 lines
Diff to previous 1.17 (colored)

Make "spf walk" report if an spf-record has macro's and can't be resolved.

Originally reported by and OK on earlier version giovanni@
Looks good to deraadt@
feedback and OK jmc@
feedback semarie@
OK sthen@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 15 16:34:57 2020 UTC (4 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

Add missing casts to unsigned char when using ctype(3).
From Hiltjo Posthuma

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 13 13:21:24 2019 UTC (4 years, 5 months ago) by gilles
Branch: MAIN
Changes since 1.15: +117 -38 lines
Diff to previous 1.15 (colored)

add support for CIDR in a: spf atoms

diff from Quentin Rameau <quinq@fifth.space>

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 11 17:20:25 2019 UTC (4 years, 6 months ago) by gilles
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix 'mx:' mechanism in smtpd spf walk

diff from Quentin Rameau <quinq@fifth.space>

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 3 08:51:43 2019 UTC (4 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.13: +0 -3 lines
Diff to previous 1.13 (colored)

no need to increment argv and decrement argc, we're not using them later

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 29 10:14:19 2019 UTC (4 years, 8 months ago) by gilles
Branch: MAIN
Changes since 1.12: +10 -6 lines
Diff to previous 1.12 (colored)

- remove specific cases for +a and +mx as the + prefix is handled earlier
- support mx: notation

diff from Quentin Rameau <quinq@fifth.space>

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 23 15:39:11 2019 UTC (4 years, 9 months ago) by eric
Branch: MAIN
Changes since 1.11: +9 -0 lines
Diff to previous 1.11 (colored)

only process records of the expected type.
fix an issue where CNAME records generate bogus results.

ok gilles@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 15 20:03:59 2018 UTC (5 years, 7 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.10: +1 -0 lines
Diff to previous 1.10 (colored)

in spfwalk, search both A and AAAA records when "a" is used in an spf txt
record.

spotted, reported and diff by Tim Kuijsten <info@netsend.nl>

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 3 11:43:57 2018 UTC (5 years, 8 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.9: +6 -14 lines
Diff to previous 1.9 (colored)

correctly handle "+a:..." entries

from gilles@

ok otto@ gilles@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 10 14:37:08 2018 UTC (6 years, 1 month ago) by sunil
Branch: MAIN
Changes since 1.8: +10 -4 lines
Diff to previous 1.8 (colored)

Fix previous. Use inet_net_pton(3) instead of inet_pton(3) as
addresses could be listed with prefix.

Initial diff from Ryan Kavanagh, tweaked by me.
Ok millert@ gilles@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 9 11:09:40 2018 UTC (6 years, 1 month ago) by sunil
Branch: MAIN
Changes since 1.7: +9 -4 lines
Diff to previous 1.7 (colored)

Check for legitimate IPv4, IPv6 addrs before printing.

Ryan Kavanagh reported on github that certain domains have misconfigured
SPF records.  https://github.com/OpenSMTPD/OpenSMTPD/issues/844

Ok millert@ gilles@

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 14 21:16:31 2018 UTC (6 years, 2 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.6: +9 -0 lines
Diff to previous 1.6 (colored)

skip spf mechanisms that have been processed already.
prevent possible loops on badly configured spf records.

ok gilles@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 7 08:36:15 2018 UTC (6 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.5: +2 -0 lines
Diff to previous 1.5 (colored)

check for expected record type
ok deraadt@ mestre@ gilles@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 26 08:00:54 2018 UTC (6 years, 4 months ago) by eric
Branch: MAIN
Changes since 1.4: +2 -12 lines
Diff to previous 1.4 (colored)

allow unpriviledged user to run "encrypt" and "spf walk"

ok todd@, gilles@, sunil@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 22 20:56:47 2018 UTC (6 years, 4 months ago) by okan
Branch: MAIN
Changes since 1.3: +8 -0 lines
Diff to previous 1.3 (colored)

Add support for 'a:' and 'exists:' mechanisms.

ok gilles@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 15 08:48:40 2018 UTC (6 years, 4 months ago) by eric
Branch: MAIN
Changes since 1.2: +45 -3 lines
Diff to previous 1.2 (colored)

fix parsing of RDATA for TXT records

ok gilles@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 11 19:20:41 2018 UTC (6 years, 4 months ago) by gilles
Branch: MAIN
Changes since 1.1: +6 -4 lines
Diff to previous 1.1 (colored)

fix parsing of long TXT records, this prevents 'smtpctl spf walk' from
producing bogus entries with some SPF records.

ok ajacoutot@

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 6 07:59:27 2018 UTC (6 years, 4 months ago) by sunil
Branch: MAIN

Import gilles@'s standalone spfwalk utility into smtpctl(8) as
'spf walk' command.

Ok gilles@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.