• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Having trouble getting spamassassin working properly on my Linux server (SOLVED)

I think this is one of those times where my lack of Linux troubleshooting skills shows. I'm in the process of getting my server ready to replace its aging predecessor (running Windows). POP/IMAP is working (dovecot), SMTP is working (postfix), but despite following these instructions:

The instructions that I didn't follow in that guide was what's written in step 6 because I'm honestly not interested in having suspect mail routed to a different folder, I'm happy with just [SPAM] in the subject line and let the end user filter it as they please.

I'm in a situation whereby spamassassin (spamd) appears to be running, but I'm not seeing any sign at all that it's doing its job. For example, in test mails I'm sending around there are no SA headers, nor are there any signs of SA life in /var/log/syslog or mail.log (the latter seems to be where the Internet is generally in agreement that SA should be showing up in at the very least).

Server is running Ubuntu Server 24.x LTS with the latest updates, I've restarted spamd and postfix a couple of times apiece, but without any symptoms I'm seeing that I can work on, I'm a bit stuck.
 
Yay, I solved it!

The instructions I followed weren't completely correct for a few reasons:

1 - Ubuntu Server 24.x doesn't create a spamassassin service, but spamd instead
2 - the instructions for editing master.cf were wrong (I found correct instructions in another guide):

This line was missing from the first guide:

Code:
smtp      inet  n       -       n       -       -       smtpd -o content_filter=spamassassin

3 - the master.cf instructions were likely wrong (for Ubuntu 24?) for another reason, they say:

Code:
spamassassin unix -     n       n       -       -       pipe
  user=spamd argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}

But the user should be debian-spamd.


One thing I learned along the way though:
Code:
dpkg -L spamd
Lists all the files installed by a package. Handy in the event that you want to find out where a configuration file is.
 
Back
Top