# cat > test.mbox <<EOF
From: test
To: test
Subject: test
test
EOF
# spamc < test.mbox
# grep vconfig/ /var/log/mail.log
Apr 3 19:37:08 test-spamassassin-jammy-fix spamd[2805]: spamd: using default config for root: /var/lib/spamassassin/vconfig/root//user_prefs
Apr 3 19:37:08 test-spamassassin-jammy-fix spamd[2805]: config: using "/var/lib/spamassassin/vconfig/root/" for user state dir
Apr 3 19:37:08 test-spamassassin-jammy-fix spamd[2805]: bayes: no dbs present, cannot tie DB R/O: /var/lib/spamassassin/vconfig/root//bayes_toks
Apr 3 19:37:08 test-spamassassin-jammy-fix spamd[2805]: bayes: no dbs present, cannot tie DB R/O: /var/lib/spamassassin/vconfig/root//bayes_toks
The failure does not show up here.
As a side note, when fully updating to proposed for all packages, /var/log/mail.log is not created. This is likely due to systemd updates in proposed. Restarting the container and running the commands leads to /var/log/mail.log being created and the fix works
Verified in Jammy: in-jammy- fix in-jammy- fix bash
# lxc launch images:ubuntu/jammy test-spamassass
# lxc exec test-spamassass
# cat <<EOF >/etc/apt/ sources. list.d/ ubuntu- $(lsb_release -cs)-proposed.list archive. ubuntu. com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe
deb http://
EOF
# apt update
# apt install spamassassin
# spamd -d --pidfile= /var/run/ spamd.pid -c -x --virtual- config- dir=/var/ lib/spamassassi n/vconfig/ %u/ --allow-tell -u debian-spamd -g debian-spamd --max-children=5 --min-children=3 --max-spare=3 -D
# cat > test.mbox <<EOF
From: test
To: test
Subject: test
test
EOF
# spamc < test.mbox in-jammy- fix spamd[2805]: spamd: using default config for root: /var/lib/ spamassassin/ vconfig/ root//user_ prefs in-jammy- fix spamd[2805]: config: using "/var/lib/ spamassassin/ vconfig/ root/" for user state dir in-jammy- fix spamd[2805]: bayes: no dbs present, cannot tie DB R/O: /var/lib/ spamassassin/ vconfig/ root//bayes_ toks in-jammy- fix spamd[2805]: bayes: no dbs present, cannot tie DB R/O: /var/lib/ spamassassin/ vconfig/ root//bayes_ toks
# grep vconfig/ /var/log/mail.log
Apr 3 19:37:08 test-spamassass
Apr 3 19:37:08 test-spamassass
Apr 3 19:37:08 test-spamassass
Apr 3 19:37:08 test-spamassass
The failure does not show up here.
As a side note, when fully updating to proposed for all packages, /var/log/mail.log is not created. This is likely due to systemd updates in proposed. Restarting the container and running the commands leads to /var/log/mail.log being created and the fix works