Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 587
    • Issues 587
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 47
    • Merge requests 47
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #5964
Closed
Open
Issue created Dec 10, 2020 by Tony G@CaptainStarbuck

Mail Filter written incorrectly

From Mail Filter, Add new filter: To Contains some-text Reject some-message. This is saved to .ispconfig-before.sieve as:

### BEGIN FILTER_ID:19
if header :regex    "to" [".*some-text"] {
    reject "some-message";    stop;\n\n}
### END FILTER_ID:19

The \n\n is flagged in /var/log/mail.err as:

Error: sieve: Failed to compile script `/var/vmail/domain.tld/boxname/.ispconfig-before.sieve'

AND THE EMAIL IS LOST. The mail item is not rejected back to the sender.

This fixed code works, verified mail rejected to sender with no error in log:

### BEGIN FILTER_ID:19
if header :regex    "to" [".*some-text"] {
    reject "some-message";
    stop;
}
### END FILTER_ID:19

Running Ubuntu v20 with ISPConfig v3.2.1.

Assignee
Assign to
Time tracking