How to test the built in spamassassin auto update feature on Ubuntu server 20.02

mx flag

I am running an Ubuntu 20.04 based LEMP server, and I have properly set up an email system and added spamassassin to it. Prior to this post, spamassassin was sending me the following email notification on a regular basis:

error: unable to refresh mirrors file for channel, using old 
channel '': could not find working mirror, channel failed
sa-update failed for unknown reasons

To fix this, I simply imported the official spamassassin gpg signing key into spam assassin with sudo sa-update --import spamassassinGPG.KEY. Now when I run sudo sa-update -D -v spamassassin sucessfully updates itself. However, I have not gotten a report from the self installed spamassassin cron job (or cron daily or whatever SA auto updates with), and thus have not gotten any email notification letting me know spamassassin's auto update feature was successful.

My question is, how can I trigger the spamassassin auto-update feature manually to test and see if auto-updating will actually work. I just want to be sure there is not some sort of permissions issue or something, since I am using sudo before the sa-update -D -v command. Could anyone help me figure out how to manually test the SA auto-update feature so I know its going to work without having to wait for the SA auto-update feature to trigger itself next week?


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.