Replies: 1 comment
-
Stalwart supports rewriting directly from within Sieve scripts. You don't need to rely on the rewriting feature for this use case. Instead, you can handle the rewriting within the Sieve script by modifying the envelope (RCPT TO) directly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the same configuration there is the possibility to rewrite RCP TO address.
The Sieve Script is called befor the address rewrite is done.
so the idea is to enable a sieve script before and another sieve script after adress rewriting or make it a choice when to start sieve script.
in my case i want to enable an non authrotative mailsystem to forward mails having no mailbox to stalwart.
there is a key value store (redis) where i have some addresses in and their rewriting address.
Want in RCP TO stage check if resulting RCPT TO is belonging to one of our domains and if not reject this mail. But Sieve script is called befor address rewriting happens so can do this check only in DATA stage.
Mailsystem having some mailboxes. if rcpt to is not found in this server, forward mail to stalwart.
Stalwart gets this mail, lookup the address rewriting and should now check if RCPT TO is ok or not.
but sieve script will be called befor address rewriting occurs. think it where an improvment if you had choice if sieve script runs before or after address rewrite as choice or enable 2 sieve scripts one before and one after rewriting.
Beta Was this translation helpful? Give feedback.
All reactions