[Nix-dev] spamassassin module

Luca Bruno lethalman88 at gmail.com
Wed Feb 18 10:19:33 CET 2015


On 17/02/2015 23:59, Eike wrote:
> Hello,
>
> I'm trying to add spamassassin to my email setup. So I added this to my
> configuration.nix:
>
>     services.spamassassin = {
>       enable = true;
>       debug = true;
>     };
>
> I then tried with `systemctl start spamd' which failed, because of
> missing configs (I should admit now, that I'm very new to
> spamassassin). The error message suggests to run `sa-update', so I did
> with this result:
>
>     Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!
>     Check the necessary '.pre' files are in the config directory.
>
> Some searches later, I found out that there are missing config files in
> /etc/spamassassin (the instructions in spamassassin/default.nix specify
> this as CONFDIR). I then copied all files from
> ${pkgs.spamassassin}/share/spamassassin/* to /etc/spamassassin to make
> the sa-update command work. After that spamd started.
>
> Would it make sense to symlink those files from the spamassassin module?
> Or did I miss something and should go back and read spamassassins
> manual(s) first?
I think those configs are supposed to be changed by the administrator,
hence I don't think it's a good idea to symlink.


More information about the nix-dev mailing list