Test as root: echo "test" | spamassassin -D razor2 2>&1 | less
Result with error: Mar 14 12:53:56.923 [27516] dbg: razor2: razor2 is available, version 2.84 Mar 14 12:53:58.439 [27516] warn: razor2: razor2 check failed: razor2: razor2 had unknown error during get_server_i nfo at /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 186, <GEN3> line 1. at /usr/share/perl5/Mail/SpamAs sassin/Plugin/Razor2.pm line 329. Razor-Log: read_file: 2 items read from /etc/razor/razor-agent.conf ... There are two ways to fix the error: 1) If you use Amavis and razor_config /etc/razor/razor-agent.conf: (default if you install razor) # su - amavis -s /bin/bash # razor-admin -create # razor-admin -register Register successful. Identity stored in /etc/mail/spamassassin/razor/identity-kis3udk1FDHj # razor-admin -discover # exit Restart Spamassassin "service spamassassin restart" and test 2) or create a new razor config: # mkdir /etc/spamassassin/razor # razor-admin -home=/etc/spamassassin/razor -register Register successful. Identity stored in /etc/mail/spamassassin/razor/identity-rudk1FD2xs # razor-admin -home=/etc/spamassassin/razor -create # razor-admin -home=/etc/spamassassin/razor -discover Add/Change the following line at the end of /etc/spamassassin/local.cf file: razor_config /etc/spamassassin/razor/razor-agent.conf Restart Spamassassin "service spamassassin restart" and test Result with no error: echo "test" | spamassassin -D razor2 2>&1 | less Mar 14 13:09:45.871 [27832] dbg: razor2: razor2 is available, version 2.84 Mar 14 13:09:46.716 [27834] info: util: setuid: ruid=0 euid=0 rgid=0 0 egid=0 0 Razor-Log: read_file: 2 items read from /etc/razor/razor-agent.conf Razor-Log: Computed razorhome from env: /root/.razor Mar 14 13:09:46.849663 check[27832]: [ 2] [bootup] Logging initiated LogDebugLevel=9 to stdout ... greetings frank from administrator.de -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1819977 Title: razor2 had unknown error during get_server_info To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/spamassassin/+bug/1819977/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
