Commit Graph

46 Commits

Author SHA1 Message Date
giovanni d39714319f import filter-mimedefang
filter-mimedefang is an opensmtpd filter that integrates MIMEDefang with OpenSMTPD.
ok afresh1@
2023-01-23 14:46:51 +00:00
sthen d294266874 opensmtpd-filter-dkimsign: merge the ed25519 flavour in to the main
build, it is no longer necessary to use ports OpenSSL for this now that
LibreSSL has EVP Ed25519 support.

Earlier version ok tb@, plus I tweaked README slightly during testing.
2022-11-15 11:27:19 +00:00
ajacoutot f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00
tb 2a3e346bdb Bump REVISION of ports depending on security/openssl/{1.1,3.0} 2022-10-12 16:15:02 +00:00
abieber f798747755 drop maintainer of stuff I don't use anymore 2022-10-05 14:54:22 +00:00
sthen 0125c21742 Add notes about why these ports use security/openssl 2022-06-26 13:40:59 +00:00
naddy 348a3e29c5 drop RCS Ids 2022-03-11 19:34:31 +00:00
sthen 0078b48c82 drop RCS IDs in martijn@'s ports per request 2022-03-08 11:24:02 +00:00
martijn 551c78eaf0 Apparently there are paid dnsbl providers out there that put an
authentication key in one of the domain labels. While I don't recommend
this construct; echoing said key back to anyone listed is an even worse
idea.

For these known blacklists strip the key label from the domain when
printing.

Behaviour pointed out by and initial diff from Renaud Allard
(renaud <at> allard <dot> it)

OK jasper@
2021-10-27 13:57:08 +00:00
martijn c04c2470d7 Enable opensmtpd-filter-dkimsign--ed25519
Looks OK to jasper@ sthen@
2021-06-10 11:00:15 +00:00
martijn 5480ba5c0b Update to version 0.5
Changelist:
- Add support for ed25519. This currently requires openssl1.1 libcrypto and
  is thus only enabled in an ed25519 flavor of the package.
  Lots of help from tb@ and sthen@
- Fix error handling in a couple of places
- Fix an initialization issue
  Spotted by Maarten de Vries <maarten <at> de-vri <dot> es>
- Fix a couple of signedness warnings
- Allow filter-dkimsign to be build on Debian (not relevant for OpenBSD)
  With Ryan Kavanagh <rak <at> debian <dot> org>

Looks OK to jasper@ sthen@
2021-06-10 10:58:51 +00:00
martijn b47237aa85 Update to 0.7
Fixes:
- Registering OSMTPD_PHASE_LINK_CONNECT should be OSMTPD_TYPE_REPORT
- Fix manpage: 0 is for outgoing connections, not 2.
  From Edgar Pettijohn <edgar <at> pettijohn-web <dot> com>
- Fix a spelling mistake.
  From Ryan Kavanagh <rak <at> debian <dot> org>
- Major overhaul of the Makefile.gnu so that things properly build on
  Debian (not relevant for OpenBSD)
  With Ryan Kavanagh <rak <at> debian <dot> org>

Looks OK to jasper@ sthen@
2021-06-10 10:47:00 +00:00
martijn ded2cc5477 filter-dkimsign version 0.4
- Some manpage fixes from bentley@
- Plug a memory leak
- Fix an infinite loop in the mheader.c
  Reported by Karsten.

OK jasper@
2021-03-30 12:32:53 +00:00
martijn e877a66539 Make osmtpd_run return on closing STDIN instead of exiting.
This doesn't make much difference for current filters, but allows filters
to clean up after themselves; which helps with memory leak detection.

OK jasper@
2021-03-30 12:23:47 +00:00
sthen 3046e0772e bump the golang ports so that pkg_add -u knows to update them 2021-03-08 13:59:23 +00:00
abieber 6f83bf7d0a Update opensmtpd-filters/rspamd to 0.1.7
- Switch to MODGO_*
- Add myself as maintainer.

Discussed with Gilles here:
  https://github.com/poolpOrg/filter-rspamd/pull/37

Thanks to Mark Patruck for testing / reporting!
2021-03-05 14:31:10 +00:00
martijn cbb9904e1b Hook up admdscrub 2021-01-04 07:50:56 +00:00
martijn 6a1e0ebb42 Import filter-admdscrub. This filter checks the Authentication-Results
header for the configured admd in smtpd.conf. This filter is intended for
border mailservers so that the internal mailservers can trust all
Authentication-Results headers within its own Administrative Management
Domain.

Code checked by gilles@
OK jasper@
2021-01-04 07:48:58 +00:00
martijn 22e4441405 Update to libopensmtpd 0.5. This adds support osmtpd_register_conf, which
passes the smtpd config to the application. This is needed for upcoming
filter-admdscrub.

OK jasper@
2021-01-04 07:40:05 +00:00
martijn 8018b7d8cd Add support for multiple domains by looking at the first mailbox from the
"from" mailheader.

Tested by me and Uwe Werler (uwe <dot> werler <at> retiolum <dot> eu)
"Go for it!" jasper@
2020-09-12 12:27:56 +00:00
jung d543c7438a update to 0.7 to follow filter protocol bump 2020-04-17 23:28:30 +00:00
martijn dd55f25fbf Add support for smtpd filter protocol v0.6, which is imminent. 2020-04-13 19:14:28 +00:00
eric caf1894f22 update to 0.1.6
from maintainer Gilles Chehade
2020-04-11 16:01:46 +00:00
jasper c0d71858db update MASTER_SITES where distfiles.nl was used 2020-01-26 11:14:29 +00:00
jung 4fc6f9c550 update to 0.6 to cope with filter protocol changes
ok giovanni
2019-12-16 21:32:02 +00:00
gilles 6deeda83e3 update to 0.1.1 in anticipation for a protocol change in filters
ok landry@
2019-12-09 20:24:02 +00:00
gilles af00efe88e update to 0.1.5 in anticipation for a protocol change in filters 2019-12-09 20:23:29 +00:00
martijn 88aebd36ef Update in anticipation of a coming filter protocol change.
This release works both the current and next version of the protocol.

OK jasper@
2019-12-06 12:57:40 +00:00
giovanni 81f158f446 Update to 0.5
reorder maintainers to please portroach
ok jung@ (co-maintainer)
2019-11-24 11:29:26 +00:00
giovanni f18e873203 bugfix update to 0.4
ok jung@ (co-maintainer)
2019-11-05 07:39:51 +00:00
gilles d5009eb269 update opensmtpd-filter-rspamd to 0.1.4 which solves some DKIM sign/verify
issues caused by the filter itself

ok jasper@ and landry@
2019-10-23 08:50:05 +00:00
martijn aea6fb2bea Fix off by one in relaxed mode.
Issue found and fix tested by Mikolaj Kucharski.
port diff looks good to jasper@
2019-10-23 08:01:19 +00:00
martijn d584a95336 When running filter-dnsbl later in a filter chain it can happen that a
disconnect command is issued without any prior. This results in an invalid
free.

Found by and fix tested by Mischa Peters
port diff looks good to jasper@
2019-10-23 07:59:10 +00:00
giovanni 3fe8a10246 +spamassassin 2019-10-03 06:22:29 +00:00
giovanni a34a678026 import opensmtpd-filter-spamassassin, an smtpd(1) filter
for Apache SpamAssassin
help, upstream code and ok jung@

pkg/DESCR:
filter-spamassassin is an opensmtpd filter that passes mail through
Apache SpamAssassin to flag or reject spam messages at session time.
2019-10-03 06:14:15 +00:00
jturner 94981237cd Sample ${SYSCONFDIR}/mail/dkim as a directory not a file
OK martijn@
2019-10-01 13:39:49 +00:00
gilles 613736a491 update opensmtpd-filter-rspamd to 0.1.3, fixes a concurrency-related crash,
and adds a few features

ok florian@ and landry@
2019-09-29 09:52:06 +00:00
martijn f0810fa9df Fix libopensmtpd to correctly interpret IPv6 addresses, which caused
crashes after smtpd changed the forward.

Bug found and fix tested by mikolaj <at> kucharski <dot> name

OK jasper@
2019-09-26 17:21:42 +00:00
martijn 7602fa21d5 Add a dedicated user for the dkimsign filter, including a default directory
to put the private key.

While here also add a README on how to set up the filter.

With help from and OK jasper@
2019-09-23 19:24:45 +00:00
gilles 276d3b2b88 bump filter-rspamd to 0.1.2
ok sthen@
2019-09-20 16:41:53 +00:00
martijn 27da1afd0f Hook up libopensmtpd, opensmtpd-filter-dnsbl and opensmtpd-filter-dkim.
OK jasper@
2019-09-20 13:00:35 +00:00
martijn 0f16ce3456 Import opensmtpd-filter-dkimsign
filter-dkim is an opensmtpd filter that signs email with a dkim signature.

OK jasper@
2019-09-20 12:57:48 +00:00
martijn 0945560bc6 Import opensmtpd-filter-dnsbl
filter-dnsbl is an opensmtpd filter that checks the sender's IP address
against one or more dnsbl lists to flag or reject spam messages at session time.

OK jasper@
2019-09-20 12:42:56 +00:00
martijn 9634140cf7 Import libopensmtpd
libopensmtpd is an libevent based library which allows for easy writing
of opensmtpd filter applications in C.

OK jasper@
2019-09-20 12:11:05 +00:00
martijn fc7f652b03 Make the variable assignment in Makefile.inc "?=" instead of "=".
Requested by jasper@
2019-09-20 11:22:23 +00:00
martijn 7b806786ea Move opensmtpd-filter-rspamd and opensmtpd-filter-senderscore to
mail/opensmtpd-filters and change the install directory to libexec/smtpd.

Idea OK by gilles@
OK sthen@
2019-09-04 12:27:42 +00:00