Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Issue with .spamassasin file permission since Upgrade to Cloudron 8.0.0

Issue with .spamassasin file permission since Upgrade to Cloudron 8.0.0

Scheduled Pinned Locked Moved Unsolved Support
mailspamassassin
8 Posts 4 Posters 772 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KubernetesK Offline
      KubernetesK Offline
      Kubernetes
      App Dev
      wrote on last edited by joseph
      #1

      Hi @staff,

      since upgrade to Cloudron 8.0.0 I discovered some warnings in the logfile of the email service:

      Jul 02 22:10:33 [POST] /spam_custom_config
      Jul 02 22:10:33 Jul 2 20:10:33.867 [5031] warn: config: path "/root/.spamassassin" is inaccessible: Permission denied
      Jul 02 22:10:33 Jul 2 20:10:33.867 [5031] warn: config: path "/root/.spamassassin/user_prefs" is inaccessible: Permission denied
      Jul 02 22:10:33 Jul 2 20:10:33.946 [5031] warn: config: registryboundaries: no tlds defined, need to run sa-update
      Jul 02 22:10:33 Jul 2 20:10:33.957 [5031] warn: config: path "/root/.spamassassin" is inaccessible: Permission denied
      

      Is this somehow specific to my installation or maybe a bug?

      Best,
      Mike

      1 Reply Last reply
      2
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #2

        I was able to reproduce this. Steps to reproduce:

        • Add # testing in Custom SpamAssassin Rules. Click Save
        • Warnings are displayed in mail server logs
        1 Reply Last reply
        2
        • J joseph marked this topic as a question on
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @joseph thanks, fixing

          1 Reply Last reply
          2
          • iamthefijI Offline
            iamthefijI Offline
            iamthefij
            App Dev
            wrote on last edited by
            #4

            I'm still seeing this error and new rules I save don't appear to be applied. Anywhere I can follow along with the fix or help out? I can't find the repo on git.cloudron.io.

            1 Reply Last reply
            0
            • iamthefijI Offline
              iamthefijI Offline
              iamthefij
              App Dev
              wrote on last edited by
              #5

              When I drop into the mail container and look at the logs for spamd, I see some more information. I can actually see where it's checking for spam and see that it's indeed not using my rules. It says:

              Oct  7 23:09:31.891 [109] info: spamd: using default config for iamthefij@example.com: /app/data/spamd/iamthefij@example.com/user_prefs
              

              That file does not exist. The actual rules are in /app/data/spamd/custom.cf.

              I can see in /etc/supervisor/conf.d/spamd.conf that spamd is started with:

              /usr/sbin/spamd --max-children 2 --port 7833 --nouser-config --virtual-config /app/data/spamd/%%u --syslog stderr -u cloudron --allow-tell
              

              This appears to tell it not to try and access /root/.spamassassin/user_prefs. When I look at the spamd logs, I actually don't see the error that I see in the mail logs. So not sure why that would be yet.

              The thing that does stand out is that it looks like it's telling spamd to look at /app/data/spamd/iamthefij@example.com/user_prefs, as I'm seeing in the logs. This file also does not exist. I don't see it looking for the custom file anywhere.

              1 Reply Last reply
              1
              • iamthefijI Offline
                iamthefijI Offline
                iamthefij
                App Dev
                wrote on last edited by
                #6

                I do see some of my local rules present in the logs. Only older ones though. I added a pretty specific one targeting a bunch of spam I've been getting and that doesn't seem to be applied.

                Just in case these messages are benign and my rule is breaking things, I'll post it here:

                body LOCAL_TINA_EGAN_SPAM_PHISH /Tina Egan/
                score LOCAL_TINA_EGAN_SPAM_PHISH 7.0
                

                I've been getting a bunch of spam addressed to "Tina Egan" trying to phish me. Trying to mark them all as junk.

                1 Reply Last reply
                2
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  @iamthefij I can take a look tomorrow but the repo is at https://git.cloudron.io/cloudron/mail-addon

                  iamthefijI 1 Reply Last reply
                  0
                  • girishG girish

                    @iamthefij I can take a look tomorrow but the repo is at https://git.cloudron.io/cloudron/mail-addon

                    iamthefijI Offline
                    iamthefijI Offline
                    iamthefij
                    App Dev
                    wrote on last edited by
                    #8

                    @girish must be private. I can't view that with my account.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search