Skip to content

Instantly share code, notes, and snippets.

View croessner's full-sized avatar

Christian Rößner croessner

View GitHub Profile
-- Performing Test SUPPORT_WIMPLICIT_FALLTHROUGH - Success
-- Performing Test SUPPORT_FPIC
-- Performing Test SUPPORT_FPIC - Success
CMake Warning (dev) at /usr/share/cmake/Modules/CheckIncludeFiles.cmake:120 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
@croessner
croessner / symbol.txt
Created October 23, 2019 13:25
NextCloud password
X-Spamd-Result: default: False [9.72 / 12.00];
RCVD_VIA_SMTP_AUTH(0.00)[];
R_SPF_ALLOW(-0.20)[+mx:c];
MV_CASE(0.50)[];
ARC_SIGNED(0.00)[i=1];
IP_REPUTATION_HAM(0.00)[asn: 197071(0.00), country: DE(-0.01), ip: 2a05:bec0:28:1:134:255:226:249(0.00)];
TO_DN_ALL(0.00)[];
DKIM_TRACE(0.00)[roessner.email:+];
BITCOIN_ADDR(0.00)[3SbeHoEFW7ZwoMS37SViDhBT5LanPq];
DMARC_POLICY_ALLOW(-0.50)[roessner.email,reject];
@croessner
croessner / rspamd.local.lua
Created October 17, 2019 09:12
Segfault for rspamadm configtest
-- rspamd.local.lua
local rspamd_logger = require "rspamd_logger"
local function mark_mail_ham(task)
local result = task:learn(false)
if result then
rspamd_logger.infox("Message learned as ham")
else
rspamd_logger.warnx("Message could not be learned as ham!")
rns root@mx ~ # vault secrets enable -path=dkim kv
Success! Enabled the kv secrets engine at: dkim/
rns root@mx ~ # rspamadm vault newkey --algorithm rsa example.com
stored key for: example.com, selector: 20190503
please place the corresponding public key as following:
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCw6rWlQOP75vxL7xGs7qqKpicw6jQmPMIS8YDx+7E+e/Irrk9jRrxHJOezyiMX/hq1KBD5326pyQsCA2xSYVye65OPXRFNVKVgcAHpEIKiJ2azv49+JNIXQWjgkS723Q2aanSmoQOxBQ8auGJqmXJNnpeqiwBNg0ssQFiY+cCA8wIDAQAB
rns root@mx ~ # rspamadm vault newkey --algorithm ed25519 example.com
stored key for: example.com, selector: 20190503
/etc/init.d/rspamd checkconfig
2019-03-13 10:33:19 #24527(main) rspamd_logger_configure_modules: enable debugging for module rbl (33)
2019-03-13 10:33:19 #24527(main) rspamd_logger_configure_modules: enable debugging for module spamtrap (34)
2019-03-13 10:33:19 #24527(main) rspamd_logger_configure_modules: enable debugging for module antivirus (35)
2019-03-13 10:33:19 #24527(main) rspamd_logger_configure_modules: enable debugging for module dkim_signing (36)
2019-03-13 10:33:19 #24527(main) <>; lua; lua_util.lua:793: enable debug for Lua module rbl
2019-03-13 10:33:19 #24527(main) <>; lua; lua_util.lua:793: enable debug for Lua module antivirus
2019-03-13 10:33:19 #24527(main) <>; lua; lua_util.lua:793: enable debug for Lua module spamtrap
2019-03-13 10:33:19 #24527(main) <>; lua; lua_util.lua:793: enable debug for Lua module dkim_signing
2019-02-26 13:07:17 #7687(rspamd_proxy) <d6021b>; dkim_signing; lua_dkim_tools.lua:144: user is authenticated
2019-02-26 13:07:17 #7687(rspamd_proxy) <d6021b>; dkim_signing; lua_dkim_tools.lua:244: use domain(header) for signature: roe
ssner.email
2019-02-26 13:07:17 #7687(rspamd_proxy) <d6021b>; dkim_signing; lua_dkim_tools.lua:263: final DKIM domain: roessner.email
2019-02-26 13:07:17 #7687(rspamd_proxy) <d6021b>; dkim_signing; lua_dkim_tools.lua:285: user domain mismatch
dkim_signing {
use_esld = true;
symbol = "DKIM_SIGNED";
allow_envfrom_empty = true;
sign_networks [
"127.2.4.7",
]
allow_username_mismatch = false;
sign_local = true;
allow_hdrfrom_mismatch = false;
settings {
TEST {
priority = high;
from = "postmaster@example.com";
apply {
actions {
reject = 100;
}
groups_disabled = [ "spf", "dkim", "dmarc" ];
symbols_disabled = [ "DMARC_POLICY_REJECT" ];
# elastic
server = "192.168.0.210:9200";
# Elasticsearch template file (json format)
template_file = "${LOCAL_CONFDIR}/elastic/rspamd_template.json";
# Kibana prebuild visualizations and dashboard template (json format)
kibana_file = "${LOCAL_CONFDIR}/elastic/kibana.json";
Feb 23 09:09:12 mx rspamd[2794]: <6b4a18>; csession; rspamd_controller_error_handler: http error occurred: IO read error: unexpected EOF
Feb 23 09:09:12 mx rspamd[2794]: <4ogau8>; map; http_map_finish: cannot load map http://127.0.0.1/data/cdeaffef2db94a7bd5b605041737526bfec170459d538e1209ecc4f6fbae4e57/online-valid.json from 127.0.0.1: HTTP error 302
Feb 23 09:09:22 mx rspamd[2794]: <4ogau8>; map; http_map_finish: cannot load map http://127.0.0.1/data/cdeaffef2db94a7bd5b605041737526bfec170459d538e1209ecc4f6fbae4e57/online-valid.json from 127.0.0.1: HTTP error 302
Feb 23 09:09:22 mx rspamd[2794]: <j7eift>; lua; fann_redis.lua:807: cannot get FANNS list from redis: timeout while connecting the server
Feb 23 09:09:32 mx rspamd[2794]: <4ogau8>; map; http_map_finish: cannot load map http://127.0.0.1/data/cdeaffef2db94a7bd5b605041737526bfec170459d538e1209ecc4f6fbae4e57/online-valid.json from 127.0.0.1: HTTP error 302
Feb 23 09:09:37 mx rspamd[2794]: <2d9a29>; csession; rspamd_controller_error_handler: http error o