{"action":"created","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/2306","repository_url":"https://api.github.com/repos/vstakhov/rspamd","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2306/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2306/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2306/events","html_url":"https://github.com/vstakhov/rspamd/issues/2306","id":335168798,"node_id":"MDU6SXNzdWUzMzUxNjg3OTg=","number":2306,"title":"Ratilimit module failed when disable postmaster in whitelisted_rcpts","user":{"login":"reztarter","id":676649,"node_id":"MDQ6VXNlcjY3NjY0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/676649?v=4","gravatar_id":"","url":"https://api.github.com/users/reztarter","html_url":"https://github.com/reztarter","followers_url":"https://api.github.com/users/reztarter/followers","following_url":"https://api.github.com/users/reztarter/following{/other_user}","gists_url":"https://api.github.com/users/reztarter/gists{/gist_id}","starred_url":"https://api.github.com/users/reztarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reztarter/subscriptions","organizations_url":"https://api.github.com/users/reztarter/orgs","repos_url":"https://api.github.com/users/reztarter/repos","events_url":"https://api.github.com/users/reztarter/events{/privacy}","received_events_url":"https://api.github.com/users/reztarter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-24T10:34:55Z","updated_at":"2018-07-02T12:24:24Z","closed_at":null,"author_association":"NONE","body":"### Classification (Please choose *one* option):\r\n\r\n* [] Crash/Hang/Data loss\r\n* [ ] WebUI/Usability\r\n* [ ] Serious bug\r\n* [ ] Other bug\r\n* [x] Feature\r\n* [ ] Enhancement\r\n\r\n### Reproducibility (Please choose *one* option):\r\n\r\n* [X] Always\r\n* [ ] Sometimes\r\n* [ ] Rarely\r\n* [ ] Unable\r\n* [ ] I didn’t try\r\n* [ ] Not applicable\r\n\r\n### Rspamd version:\r\nrspamd-1.7.6-3\r\n### Operation system, CPU, memory and environment:\r\nCentos 7\r\n### Description (Please provide a descriptive summary of the issue):\r\nI configured Exim with Rspamd. When I try to send email from postmaster@mydomai.tk  I see in rspamd.log value R_RATELIMIT(0.00) because postmaster is exists by default in whitelisted_rcpts of ratelimit module configuration. But when I excuded postmaster from whitelisted_rcpts = \"mailer-daemon\"; in /etc/rspamd/local.d/ratelimit.conf I got an error message in rspamd.log\r\n``\r\n2018-06-22 10:55:28 #19477(normal) <4856d6>; task; lua_metric_symbol_callback: call to (R_RATELIMIT) failed (2): /usr/share/rspamd/lua//ratelimit.lua:339: attempt to index field 'whitelisted_rcpts' (a nil value); trace: [1]:{/usr/share/rspamd/lua//ratelimit.lua:339 - fun [Lua]}; [2]:{/usr/share/rspamd/lib/fun.lua:30 - call_if_not_empty [Lua]}; [3]:{/usr/share/rspamd/lib/fun.lua:654 - any [Lua]}; [4]:{/usr/share/rspamd/lua//ratelimit.lua:339 - <unknown> [Lua]};\r\n\r\n### Compile errors (if any):\r\n\r\n### Steps to reproduce:\r\nChange value of whitelisted_rcpts in ratelimit.conf to whitelisted_rcpts = \"mailer-daemon\";\r\n\r\n### Expected results:\r\nI want to enable ratelimit feature when emails are sent from postmaster@mydomain.tk\r\n\r\n### Actual results:\r\n(R_RATELIMIT) failed (2) message in rspamd.log occurs\r\n\r\n### Debugging information (see details [here](https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed)):\r\n\r\n### Configuration:\r\n``\r\n$ rspamadm configdump\r\nratelimit {\r\n    whitelisted_rcpts = \"mailer-daemon\";\r\n    symbol = \"R_RATELIMIT\";\r\n    rates {\r\n        to_ip = \"3 / 2min\";\r\n        to = \"2 / 1min\";\r\n        bounce_to = \"2 / 1h\";\r\n        to_ip_from = \"1 / 1min\";\r\n        user = \"1 / 1min\";\r\n        bounce_to_ip = \"1 / 1h\";\r\n    }\r\n    max_rcpt = 5;\r\n    info_symbol = \"R_RATELIMIT_INFO\";\r\n    enabled = true;\r\n}\r\n\r\n### Additional information:\r\nIt's desirable for me that ratelimit mosule works exactly with account postmaster@mydomain.tk"},"comment":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/comments/401786904","html_url":"https://github.com/vstakhov/rspamd/issues/2306#issuecomment-401786904","issue_url":"https://api.github.com/repos/vstakhov/rspamd/issues/2306","id":401786904,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTc4NjkwNA==","user":{"login":"vstakhov","id":487344,"node_id":"MDQ6VXNlcjQ4NzM0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/487344?v=4","gravatar_id":"","url":"https://api.github.com/users/vstakhov","html_url":"https://github.com/vstakhov","followers_url":"https://api.github.com/users/vstakhov/followers","following_url":"https://api.github.com/users/vstakhov/following{/other_user}","gists_url":"https://api.github.com/users/vstakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/vstakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstakhov/subscriptions","organizations_url":"https://api.github.com/users/vstakhov/orgs","repos_url":"https://api.github.com/users/vstakhov/repos","events_url":"https://api.github.com/users/vstakhov/events{/privacy}","received_events_url":"https://api.github.com/users/vstakhov/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T12:24:24Z","updated_at":"2018-07-02T12:24:24Z","author_association":"OWNER","body":"I don't understand what you are trying to say. `set_symbol_only` means that you have configured your module to add symbol instead of issuing soft reject message. You need to remove `symbol` from the configuration if you want to do rejections..."}}
{"actor":{"display_login":"vstakhov"}}