Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables or placeholders in messages #2830

Open
leofeyer opened this Issue Apr 2, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@leofeyer
Copy link

leofeyer commented Apr 2, 2019

Classification (Please choose one option):

  • Crash/Hang/Data loss
  • WebUI/Usability
  • Unintended behaviour (bug)
  • Enhancement

Reproducibility (Please choose one option):

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try
  • Not applicable

Rspamd version:

1.9.0

Operation system (the exact version), CPU (including architecture and processor family):

Ubuntu 16.04

Description (Please provide a descriptive summary of the issue):

I am using the force actions module to reject mails that do not pass the SPF check:

# /etc/rspamd/local.d/force_actions.conf
rules {
  SPF_FAIL_REJECT {
    action = "reject";
    expression = "R_SPF_FAIL";
    message = "SPF check failed";
  }
}

Now I would like to make the message more descriptive by adding the IP address of the sending server and the domain name:

    message = "SPF check failed: xxx.xxx.xxx.xxx is not allowed to send mail from domain.tld";

To make this work, I would need some kind of variable or placeholder that I can use in the message. Does this make sense to you? Or am I missing another way to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.