r/email • u/unselective-amnesia • 5d ago
Open Question Looking for a linux-based email server implementation which fully supports "Sieve pipe" and also "Sieve ereject" ... ???
I'm running Debian 13 on my local host whose domain name an A-level static domain that's been valid and active for more than a decade.
I'm wondering whether there is any email implementation that I could run solely on my local machine which supports both "Sieve pipe" and "Sieve ereject".
It turns out that I can't use a Dovecot/Postfix implementation, because "pigeonhole" for Dovecot 2.4 only supports "Sieve pipe" and not "Sieve ereject". And I can't use Stalwart, because it only supports "Sieve ereject" and not "Sieve pipe". I know that Stalwart offers other facilities that perform some (but not all) of the same kind of functionality that "Sieve pipe" offers, but it turns out that I need full "Sieve pipe" functionality in this particular, rather unique instance.
And please understand that this is not an "XY" question. I am specifically and only asking about whether there is any linux-runnable software with which I can get these exact two Sieve actions ("pipe" and "ereject"), and I am not asking for any advice about alternatives to "Sieve pipe"/"Sieve ereject". I already know about alternatives, and for the purpose of this particular question here, I do not want to discuss any of those alternatives.
And I have very specfic reasons for needing to run this on my local email server, and these reasons are irrelevant to this current question. I therefore am not wanting to discuss the drawbacks of running such a local server. I already know these drawbacks, and they don't apply to my very specific and quite unique local email server configuration.
I just want to know whether anyone might know of any linux-runnable email software that fully supports all aspects of both "Sieve pipe" and "Sieve ereject". But if no such software exists, I can live with that with no problem ... and this is why I'm not writing this message in order to discuss any alternatives (that I already know about) to using a "Sieve pipe"/"Sieve ereject" combination.
Thank you very much in advance.
2
u/zarlo5899 5d ago edited 5d ago
you can use both have one point to the other
edit: fix typo
2
u/Squeebee007 5d ago
You expect a different answer than nine days ago when you last asked?
2
u/atom1cx 5d ago
I don't believe you researched this topic very well, or actually understand how any of this works.
https://support.stalw.art/t/does-stalwart-sieve-support-the-pipe-action-and-the-ereject-action/2504
This support question was asked a week ago, and responded to with other links to Stalwart's own documentation which outlines how to handoff incoming messages to external milters or MTA hooks to accomplish the "Sieve pipe" actions during the SMTP session itself!
Worth recognizing that Stalwart's own phases of email delivery limits the scope of any SMTP session; specifically, "user scripts" are defined and executed at the user mailbox level (and not during the SMTP session)... That being said, Stalwart does support said user scripts, https://stalw.art/docs/sieve/user-scripts/
To daisy-chain prepackaged software together (e.g. running both packages together) you'd have to configure each one to not overstep each other; maybe Dovecot to process incoming then fwd/punt everything to Stalwart (this is where users read their mail), or have Stalwart process incoming then fwd/punt to Dovecot to run its actions (this is where users read their mail), or rely on Roundcube to run the rules (they support client-side managesieve), or simply implement an entirely different rules engine (milter) that adheres to Sieve Pipe -- similar to how ClamAV is an external milter for incoming mail servers.
Final point: There's a commercial package, Axigen, which has native binaries -- but I've had mixed experiences having it properly handoff to third-party hooks and milters, so I'm not recommending it right now. My own tests might be impinged due to security (everything's running as 'root' on the VM) or some other nonsense.
1
u/Private-Citizen 4d ago
Or ditch doing it with sieve and go for a milter which plugs into postfix and becomes part of the SMTP transaction. You code your logic in perl which can reject or even rewrite parts of the email. Instead of piping to your logic, just build your logic into the milter perl.
https://mimedefang.org/
https://www.mailmunge.org/
<--my pick