From nobody Sun Oct 16 21:23:46 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MrCmL3VB4z4g6fL; Sun, 16 Oct 2022 21:23:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MrCmL2d03z3T0v; Sun, 16 Oct 2022 21:23:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665955426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=erb7eFvEjbkeyN4HdHeUNeUUFBWvHzop+xQMO4/1E+0=; b=H/1iEi8K3zx8SLMBxitZs3DAlZNbVR1V+I4P52UJsI+SLUzfVFesquwi6kfo4AiEWQeVw5 gYyuUMxpi5EavVCBrSQWj/67mrKXnG8uwzhBAZIoR6IpgYS2RJfyXFu1lbV1t4lmWpNZLV Pyl7fxlvkrVN7XcDawBb64J+6CFvXN2N8dCd1ytTQDeqFH+QcBYjcNMlOwNsGGyLleRJ0K khc2axKCK9+D4LmVXhx18SLeP2nNJrg/MSur4/Cpx86HR2PWxyxRoQGV71WCyCLII0YT5Q I44oQW8mOFriztx0lzufglgFt6Xbcm/0uxIsk5ApaGdBtiaJF0xMdDW72wKa/w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MrCmL1jz3zbYN; Sun, 16 Oct 2022 21:23:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29GLNkl0045668; Sun, 16 Oct 2022 21:23:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29GLNkk0045667; Sun, 16 Oct 2022 21:23:46 GMT (envelope-from git) Date: Sun, 16 Oct 2022 21:23:46 GMT Message-Id: <202210162123.29GLNkk0045667@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: a3c7e5c215f6 - main - mail/postforward: New port: Postfix SRS forwarding agent List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a3c7e5c215f60071f920633960373fcef3b892d0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665955426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=erb7eFvEjbkeyN4HdHeUNeUUFBWvHzop+xQMO4/1E+0=; b=A5JPZoIeTu9oYL4hB0XS9arP1wSKYoBhksDSLmYFjFhfNbPqHYud3eHwG+29CcdeFsw4di /6UlTUio6vdc7YsU3OKBmhYwTV2gL+BNTgIOEkY8YchQxuwBF7AfBeZsnOGTMLnB9EYs5f CSvFIdiWtrgfNpqbJMU9sjaGb1D1NXAofaFApVfEJawS6aGOiESwYPnDW1s2zheFKttfVF QIsSNCynV1lNG22oJgM3vn9Pdtl7po4Pvpm9P3ba40vG2Kkh+jrv2+lNB2b/rjnndLSCI1 tnSqxwr8peMtKQ+GMR4d+O4XchHHusrffLXbODeq6IdA/966y3iU7Hut+B7RuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665955426; a=rsa-sha256; cv=none; b=JgwaGLA1TRGWV4F5KT/Q/MxHTdaQxkN8/5xYUAJL/W77p9+5rbwIiSlIL2Z2kZZRJG4V2C FTeap+fvC89bHiMQcMjLmB/qKeRon1+rvRIZvC+u6Bf6rexBm3CKyv7QtqyRiyfPpXjuC2 4Ety/HQ5UKd99rSpUAf1JouZ4fQgahJONtofFcqT1DcFC/wyrW2gD39VVlb5y+ox8mFamN TdqxhCnJtR8d9cFZtsV8nKmWr3ZH/Dy0NYDqs8g1kk1YTYbZ/POl26vCmkjX52YXZOqkA+ uhkoYdsN485++4sl6zV7Cg9QZgNHjdN7TkuRJeYeGmK5NeBX1flG249T0lrTnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=a3c7e5c215f60071f920633960373fcef3b892d0 commit a3c7e5c215f60071f920633960373fcef3b892d0 Author: Gian Luca Decurtins AuthorDate: 2022-10-16 21:19:42 +0000 Commit: Daniel Engberg CommitDate: 2022-10-16 21:23:08 +0000 mail/postforward: New port: Postfix SRS forwarding agent Postforward is a mail forwarding utility which aims to compliment the Postfix Sender Rewriting Scheme daemon (mail/postsrsd). The downside of using PostSRSd is that all mail is naively rewritten, even when no forwarding is actually performed. Such rewritten Return-Path addresses may confuse sieve scripts and other mail filtering software. This is where Postforward comes in. Instead of rewriting all incoming mail regardless of final destination, mail systems may be configured to pipe mail into Postforward only when forwarding needs to happen, leaving non-forwarded mail unaltered by PostSRSd. Postforward will rewrite envelope addresses for piped mail using PostSRSd itself and re-inject these messages back into the queue, destined for the forwarding recipient(s). Additional patch added to handle mailing lists Committers note: Patch modified to follow Porters Handbook more closely Reference: https://github.com/arbales/postforward/commit/c45dfe827ab9b1fafe3f4b10b8b773353ba908c4 PR: 253035 --- mail/Makefile | 1 + mail/postforward/Makefile | 36 ++++++++++++++++++++++++++++++++++++ mail/postforward/distinfo | 5 +++++ mail/postforward/pkg-descr | 2 ++ 4 files changed, 44 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 4d365a576c59..941234e606f0 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -481,6 +481,7 @@ SUBDIR += postfixadmin-lite SUBDIR += postfixadmin33 SUBDIR += postfixadmin33-lite + SUBDIR += postforward SUBDIR += postgrey SUBDIR += postsrsd SUBDIR += prepflog diff --git a/mail/postforward/Makefile b/mail/postforward/Makefile new file mode 100644 index 000000000000..89d2757f5766 --- /dev/null +++ b/mail/postforward/Makefile @@ -0,0 +1,36 @@ +PORTNAME= postforward +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.1 +CATEGORIES= mail + +PATCH_SITES= https://github.com/arbales/postforward/commit/ +PATCHFILES= c45dfe827ab9b1fafe3f4b10b8b773353ba908c4.patch:-p1 + +MAINTAINER= luca@asgard.ch +COMMENT= Postfix SRS forwarding agent +WWW= https://github.com/zoni/postforward + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= postsrsd:mail/postsrsd + +USES= go + +USE_GITHUB= yes +GH_ACCOUNT= zoni + +GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} +GO_BUILDFLAGS= -ldflags="-s -w" + +PLIST_FILES= bin/${PORTNAME} + +PORTDOCS= README.md CHANGES.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) + +.include diff --git a/mail/postforward/distinfo b/mail/postforward/distinfo new file mode 100644 index 000000000000..f82324794bdd --- /dev/null +++ b/mail/postforward/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1665953717 +SHA256 (zoni-postforward-v1.1.1_GH0.tar.gz) = caef40d6090d7e3ce01448d57cdb55933df434c2e430e5dbeac2e4f4bc59a1f5 +SIZE (zoni-postforward-v1.1.1_GH0.tar.gz) = 6086 +SHA256 (c45dfe827ab9b1fafe3f4b10b8b773353ba908c4.patch) = 862eecf6e6658762b7fbe621191c6aa7d66380607f2c5e0fddc767ccb8c14110 +SIZE (c45dfe827ab9b1fafe3f4b10b8b773353ba908c4.patch) = 2082 diff --git a/mail/postforward/pkg-descr b/mail/postforward/pkg-descr new file mode 100644 index 000000000000..a7441f3b1f5b --- /dev/null +++ b/mail/postforward/pkg-descr @@ -0,0 +1,2 @@ +Postforward is a mail forwarding utility which aims to compliment the Postfix +Sender Rewriting Scheme daemon (PostSRSd).