Rspamd: Read map file many errors

Created on 3 Mar 2017  路  7Comments  路  Source: rspamd/rspamd

Classification (Please choose one option):

  • [ ] Crash/Hang/Data loss
  • [ ] WebUI/Usability
  • [ ] Serious bug
  • [x] Other bug
  • [ ] Feature
  • [ ] Enhancement

Reproducibility (Please choose one option):

  • [X] Always
  • [ ] Sometimes
  • [ ] Rarely
  • [ ] Unable
  • [ ] I didn鈥檛 try
  • [ ] Not applicable

Rspamd version:

1.5.1 (git)

Operation system, CPU, memory and environment:

Centos 6.8 x64

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

I am get errors after start rspamd (log level "warning"):
rspamd[314244]: ; map; read_map_file: map file is unavailable for reading
rspamd[314243]: ; map; read_map_file: map file is unavailable for reading
rspamd[314245]: ; map; read_map_file: map file is unavailable for reading
rspamd[314245]: ; map; read_map_file: map file is unavailable for reading
rspamd[314248]: ; map; read_map_file: map file is unavailable for reading

If level = "debug" no this error.

Please help.

wontfix

Most helpful comment

Looking forward to getting this fixed! It's really annoying...

All 7 comments

You will see this on startup for map files that don't exist (which is expected):

<35rhob>; map; rspamd_map_file_read_callback: rereading map file /etc/rspamd/local.d/mid.inc
<35rhob>; map; read_map_file: map file is unavailable for reading

Thank you. Indeed, the file does not exist.

I found one more problem. Rspamd put error if map file is empty.

map; read_map_file: can't open map /usr/local/rspamd/etc/rspamd/local.d/redirectors.inc: Success
stat /usr/local/rspamd/etc/rspamd/local.d/redirectors.inc
  File: `/usr/local/rspamd/etc/rspamd/local.d/redirectors.inc'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file

@AlexeySa You can add a commented line as workaround.

I'm getting this if map file is empty. Should be ignored if its empy imo.

csession; rspamd_controller_handle_get_map: cannot read map /etc/rspamd/local.d/blacklist.domain.map: Invalid argument

Looking forward to getting this fixed! It's really annoying...

Is it possible to make a PR concerning these map to the GH rspamd repository, what are the drawbacks if you did not do it before ?

I speak about

2tld.inc.local  
dkim_whitelist.inc.local  
dmarc_whitelist.inc.local  
mime_types.inc.local  
spf_dkim_whitelist.inc.local  
spf_whitelist.inc.local  
surbl-whitelist.inc.local

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings