KOPANO-SPAMD.CFG(5)
π KOPANO-SPAMD.CFG(5) π
okay bestie, welcome to the Kopano Core user reference β this is the manual page for kopano-spamd.cfg, and yes, the whole section-5 situation is giving "config file" energy, no cap β¨
πΈ NAME πΈ
kopano-spamd.cfg β the Kopano Spamd configuration file. that's it, that's the name, slay π
π¦ SYNOPSIS π¦
spamd.cfg
β¨ DESCRIPTION β¨
so spamd.cfg is the config file for the Kopano Spamd Service. it's literally a little instruction manual for the software β it tells it how to set up the connection, the indexing, and the logging systems. three whole systems, one tiny file, we love a multitasker π«Ά
π FILE FORMAT π
okay so the file is one big section, but the parameters can be grouped by what they actually do. functionally organized, iconic behavior β¨
parameters get written like this:
name = value
the file is line-based. every newline-terminated line is one of four things: a comment, nothing at all, a parameter, or a directive. a line that starts with # is a comment and Kopano will just ignore it, like it's not even there π
β οΈ parameter names are case sensitive.Spam_Dirandspam_dirare NOT the same thing bestie, do not play with me.
lines beginning with ! are directives.
directives look like this:
!directive [argument(s)]
here's the directive list, the whole thing, no skipping:
includeβ include and process argument.
example: !include common.cfg
π EXPLANATION OF THE SERVICE SETTINGS PARAMETERS π
run_as_userβ after it starts up correctly, the server process becomes this user, which means it drops root privileges. important note: the log file has to be writeable by this user, and the directory too, so that new logfiles can be created after logrotation. you can also handle this by setting the correct group and permissions. default value is empty, which means it does not change the user after starting.run_as_groupβ after it starts up correctly, the server process becomes this group, dropping root privileges. default value is empty, which means it does not change the group after starting.pid_fileβ write the process ID number to this file. the init.d script uses this to correctly stop/restart the service. default:/var/run/kopano/spamd.pidrunning_pathβ change directory to this path when running in daemonize mode. when you use the-Fswitch to run in the foreground, the directory will not be changed. default:/
π EXPLANATION OF THE SERVER SETTINGS PARAMETERS π
server_socketβ the socket used to find the connection to the Kopano server. default:file:///var/run/kopano/server.sockssl_key_fileβ the file containing the private key and certificate. pls go read the SSL section in thekopano-server(8)manual for how to actually create this file, i'm not doing that part for you π₯² default:/etc/kopano/ssl/spamd.pemssl_key_passβ put your password here when your key file has a password on it so it can be read. no default set.
β EXPLANATION OF THE LOG SETTINGS PARAMETERS β
log_methodβ the method that should be used for logging. valid values are:syslogβ use the Linux system log. all messages get written to the mail facility. see alsosyslog.conf(5).fileβ log to a file. the filename gets specified inlog_file.
default: file
log_levelβ the level of output for logging, in the range from 0 to 5.0means no logging at all,5means full logging. default:3log_fileβ when logging to a file, specify the filename in this parameter. use-(minus sign) for stderr output. default:/var/log/kopano/spamd.loglog_timestampβ specify whether to prefix each log line with a timestamp when in'file'logging mode. default:1log_buffer_sizeβ buffer logging in what sized blocks. the special value0selects line buffering. default:0
π EXPLANATION OF THE ADVANCED SETTINGS PARAMETERS π
spam_dirβ the dir where spam mails get written to, which are later picked up by thesa-learnprogram. default:/var/lib/kopano/spamd/spamspam_dbβ location for the database containing metadata on learned spam. default:/var/lib/kopano/spamd/spam.dbheader_tagβ header tag for spam message. the options areX-Spam-Flag,X-Spam-Status,X-Spam. default:X-Spam-Flaglearn_hamβ learn ham, which happens when the user moves emails from junk to inbox. enabled by default. default:yesham_dirβ the dir where ham mails get written to, which are later picked up by thesa-learnprogram. default:/var/lib/kopano/spamd/hamsa_groupβ Spamassassin group. default:amavis
π§ AUTHOR π§
written by Kopano. π
π SEE ALSO π
okay and that's the whole page bestie!! π Kopano 8, February 2018 β that's the version and the date this whole thing was stamped with, so if you're reading this and it's giving ancient artifact vibes, that's why π go forth and configure, you absolute icon ππ
π¦ where this page comes from
- ubuntu jammy: kopano-spamd 8.7.0-7.1ubuntu10 Β· AGPL-3.0-only
- ubuntu jammy: kopano-spamd 8.7.0-7.1ubuntu10.1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms