[bug]: Unable to mount and execute sieve script correctly #712
Unanswered
winston0410
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Check the logs when the server starts up, there might be a problem compiling the script. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I believe the docs are outdated, Sieve scripts are defined as follows: [sieve.trusted.scripts.donotreply]
contents = '''
require ["envelope", "reject"];
if envelope :is "to" "[email protected]" {
reject "403 You can't reply to this address";
}
'''
|
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
-
What happened?
I notice that when I have a configuration like this, which is syntax wise similar with the example in doc
I will receive the following log, saying my configuration is corrupted
When I add quote around the script name at
[session.rcpt].script
, and change the config to this:I don't see the ERROR log for configuration. But when I receive email, I notice this log
And the script is not executed.
How can we reproduce the problem?
The following is my stalwart config, but I believe most of it is irrelavent:
Version
v0.9.x
What database are you using?
PostgreSQL
What blob storage are you using?
S3-compatible
Where is your directory located?
SQL
What operating system are you using?
Linux
Relevant log output
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions