Bug 253035 - New port: mail/postforward: Postfix SRS forwarding agent
Summary: New port: mail/postforward: Postfix SRS forwarding agent
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-26 21:29 UTC by Gian Luca Decurtins
Modified: 2022-10-16 21:26 UTC (History)
1 user (show)

See Also:


Attachments
New port: mail/postforward: Postfix SRS forwarding agent (2.71 KB, patch)
2021-01-26 21:29 UTC, Gian Luca Decurtins
no flags Details | Diff
postforward.diff (2.71 KB, patch)
2021-02-01 19:42 UTC, Gian Luca Decurtins
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gian Luca Decurtins 2021-01-26 21:29:03 UTC
Created attachment 221948 [details]
New port: mail/postforward: 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).
Comment 1 Gian Luca Decurtins 2021-02-01 19:42:45 UTC
Created attachment 222083 [details]
postforward.diff

I've adjusted the email address: mirror@asgard.ch -> luca@asgard.ch
Comment 2 Gian Luca Decurtins 2022-04-26 14:46:50 UTC
Hi all

Would I have to repackage it as git? Or would the current approach still work?

Regards
-Luca.
Comment 3 Gian Luca Decurtins 2022-04-26 14:49:25 UTC
There is a typo in the pkg-descr, should be WWW: https://github.com/zoni/postforward
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2022-08-09 08:02:43 UTC
Hi, thanks for your submission

Is this something we should include?
https://github.com/arbales/postforward/commit/c45dfe827ab9b1fafe3f4b10b8b773353ba908c4

Best regards,
Daniel
Comment 5 Gian Luca Decurtins 2022-08-09 09:20:26 UTC
Hi Daniel

This commit is about handling mailing lists; I didn't try it out.
On the other hand, I've been using the original version for about two years without issue.

I'm happy with both approaches. :-)

Regards
-Luca.
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-10-16 21:23:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a3c7e5c215f60071f920633960373fcef3b892d0

commit a3c7e5c215f60071f920633960373fcef3b892d0
Author:     Gian Luca Decurtins <luca@asgard.ch>
AuthorDate: 2022-10-16 21:19:42 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
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 (new)  | 36 ++++++++++++++++++++++++++++++++++++
 mail/postforward/distinfo (new)  |  5 +++++
 mail/postforward/pkg-descr (new) |  2 ++
 4 files changed, 44 insertions(+)
Comment 7 Daniel Engberg freebsd_committer freebsd_triage 2022-10-16 21:26:11 UTC
Committed, sorry for the wait