Operational problems

331 views
Skip to first unread message

Andrew Syrov

unread,
Jul 22, 2015, 10:14:30 AM7/22/15
to rspamd
Hello!

I had install RSPAMD 0.9.9 from source on the Debian Wheezy 0.7.8 (without systemd) with Exim 4.83 (rspamd path applied).

Now I have some problems with RSPAMD.

1. I sorting some of incoming mail in IMAP mailbox (latest Dovecot). Mailbox in the Maildir format When I try to learn rspamd by command "rspamc -h 192.168.0.57:11334 -P "q2" learn_spam /home/Learning/Spam", I see multiple errors:

"Results for file: /home/Learning/Spam/1437470259.M796571P10259.newspam,S=44982,W=46039:2,S IO read error: unexpected EOF"

or

"Connection refused"

2. In the Web-interface I unable upload any email files for learning - error "Upload failing"

3. In the log files I see multiple errors:

2015-07-22 16:54:21 #10494(main) print_signals_info: got SIGCHLD from child: 11473; reason: 'Child has terminated abnormally but did not create a core file'
2015-07-21 16:49:08 #10805(main) rspamd_rcl_statfile_handler: statfile BAYES_HAM has no explicit 'spam' setting, trying to guess by symbol
2015-07-21 16:49:08 #10805(main) rspamd_rcl_statfile_handler: guessed that statfile with symbol BAYES_HAM is ham
2015-07-21 16:49:08 #10805(main) rspamd_rcl_statfile_handler: statfile BAYES_SPAM has no explicit 'spam' setting, trying to guess by symbol
2015-07-21 16:49:08 #10805(main) rspamd_rcl_statfile_handler: guessed that statfile with symbol BAYES_SPAM is spam
2015-07-21 16:49:08 #10805(main) rspamd_regexp_library_init: pcre is compiled without JIT support, so many optimisations are impossible
2015-07-21 16:49:08 #10805(main) rspamd_map_add: map '/usr/local/var/lib/rspamd/rspamd_dynamic' is not found, but it can be loaded automatically later
2015-07-21 16:49:09 #10805(main) rspamd_url_init: initialized ac_trie of 7439 elements
2015-07-21 16:49:09 #10805(main) rspamd_regexp_new: cannot optimize raw regexp pattern: '^$': (NULL)
2015-07-21 16:49:09 #10805(main) spamassassin.lua:522: loaded 0 freemail domains definitions
2015-07-21 16:49:09 #10805(main) ratelimit.lua:379: no servers are specified
2015-07-21 16:49:09 #10805(main) main: rspamd 0.9.9 is starting, build id:
2015-07-21 16:49:09 #10805(main) rspamd_roll_history_load: cannot load history from /usr/local/var/lib/rspamd/rspamd.history: size mismatch
2015-07-21 16:49:09 #10805(main) rspamd_inet_address_listen: bind failed: 98, 'Address already in use'
2015-07-21 16:49:09 #10805(main) spawn_workers: cannot listen on socket localhost: Address already in use
2015-07-21 16:49:09 #10805(main) spawn_workers: cannot create listen socket for normal at localhost

Rspamd.conf:

.include "$CONFDIR/common.conf"

options {
    pidfile = "$RUNDIR/rspamd.pid";
    .include "$CONFDIR/options.inc"
    dynamic_conf = "/usr/local/var/lib/rspamd/rspamd_dynamic";
}

logging {
    type = "file";
    filename = "$LOGDIR/rspamd.log";
    .include "$CONFDIR/logging.inc"
}

#worker {
#    bind_socket = "*:11334";
#    .include "$CONFDIR/worker-controller.inc"
#}

###options {
### dynamic_conf = "/var/lib/rspamd/rspamd_dynamic";
###}

worker {
    type = "controller";
    bind_socket = "*:11334";
    count = 1;
    # Password for normal commands
    password = "q1";
    # Password for privilleged commands
    enable_password = "q2";
    # Path to webiu static files
    static_dir = "${WWWDIR}";
}

worker {
    bind_socket = "localhost:11333";
    .include "$CONFDIR/worker-normal.inc"
}

Thank You,
Andrew.

Alexander Moisseev

unread,
Jul 22, 2015, 10:23:02 AM7/22/15
to rspamd
Just for reference, problem #1 looks like related to issue #331

Vsevolod Stakhov

unread,
Jul 22, 2015, 10:32:51 AM7/22/15
to Alexander Moisseev, rspamd
On 22/07/2015 15:23, Alexander Moisseev wrote:
> Just for reference, problem #1 looks like related toissue #331
> <https://github.com/vstakhov/rspamd/issues/331>
>

Isn't it fixed in 0.9.9?

--
Vsevolod Stakhov

Alexander Moisseev

unread,
Jul 22, 2015, 10:44:09 AM7/22/15
to rspamd
среда, 22 июля 2015 г., 17:32:51 UTC+3 пользователь vsevolod написал:

No, it isn't. I'v tried 0.9.9 and 59a41ed in 0.9 branch. The issue still persist in both.

Vsevolod Stakhov

unread,
Jul 22, 2015, 12:18:45 PM7/22/15
to Alexander Moisseev, rspamd
Well, I've added a bunch of fixes to both master and 0.9 branches.

--
Vsevolod Stakhov

Andrew Syrov

unread,
Jul 23, 2015, 1:53:57 AM7/23/15
to rspamd, alexander...@gmail.com
Thank You, Alexander.

It means, that rspamd does not learning on such messages? In my spam collection such mails much more other.

среда, 22 июля 2015 г., 17:23:02 UTC+3 пользователь Alexander Moisseev написал:

Alexander Moisseev

unread,
Jul 23, 2015, 2:53:33 AM7/23/15
to rspamd, ag.s...@gmail.com


четверг, 23 июля 2015 г., 8:53:57 UTC+3 пользователь Andrew Syrov написал:

It means, that rspamd does not learning on such messages? In my spam collection such mails much more other.

Rspamd crashes in the middle of the learning. So rspamd doesn't learn bayes, but this bug doesn't affect fuzzy. You can check messages before and after learning to make sure that.

Andrew Syrov

unread,
Jul 23, 2015, 10:27:09 AM7/23/15
to rspamd, alexander...@gmail.com
Alexander, sorry for my question, but I afraid, I don't understand - what is the "Fuzzy Storage", for which purposes it uses? Documentation is very small. What is the options "flag" and "weight" for "fuzzy_add" command? For example, I need to classify all messages in the folder as spam. "Learn_spam" command does not work for me, as I wrote earlier. Can I use "fuzzy_add" command for this purpose?

Thank You.
Reply all
Reply to author
Forward
0 new messages