Outbound bcc #2911
Unanswered
NetserveMalta
asked this question in
Q&A
Outbound bcc
#2911
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm trying to implement automatic outbound BCC using a trusted System Sieve script bound to the DATA stage of the SMTP inbound listener.
The script works correctly and the redirect is generated, but messages to remote recipients are rejected because the envelope From is empty (<>), causing DMARC failures on the receiving side. Redirects to local recipients are delivered though, Stalwart apparently is not checking the DMARC policy when it detects a local message.
I tried using
set "envelope.from" "sender@example.com";before the redirect, but as soon as that line is present, the redirect is not generated at all.I also tried rewriting the From header with
deleteheader+addheaderbefore the redirect, but the envelope From remains empty regardless.Here is my current script:
Is there a way to set the envelope From for the redirected copy without suppressing the redirect itself? Or is there another recommended approach for outbound BCC in Stalwart? The official doc is a bit obscure in this regard.
BTW, is it correct to use the System Scripts or should I use the User Scripts?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions