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

leofeyer opened this Issue Apr 2, 2019 · 0 comments


None yet
1 participant
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:


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 {
    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: 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.