Quarantine Issue

Discuss the ConfigServer MailScanner Front-End script
Post Reply
alinford
Junior Member
Posts: 14
Joined: 25 May 2014, 22:26

Quarantine Issue

Post by alinford »

I have Store Messages enabled, and I can see email in the quarantine directory, but when I open an email in MailControl, it always has "Message not found in quarantine" at the content section, with no options for processing the email.

I forced an update of both MailScanner (v3.14) and MailScanner FE (v7.29), but it did not fix the issue.

What could be causing this?
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Quarantine Issue

Post by ForumAdmin »

Have you moved the quarantine to a custom direcory, i.e. not /var/spool/MailScanner/quarantine/?
If so, then you will have to create a symlink to that location from the directory you have moved it to.
If not, then what is the full path to an email that is shown in MailControl and exists on disk but is not detected?
alinford
Junior Member
Posts: 14
Joined: 25 May 2014, 22:26

Re: Quarantine Issue

Post by alinford »

Yes, I moved the directory, but I updated the config file to point at the new directory, home/MailScanner

Both the incoming and quarantine directory are being updated in the new spot, so the system is seeing and writing to those directories. The permissions are the same as they were in the original directory.

Here are the lines I updated:
Line 187
# Set where to unpack incoming messages before scanning them
# This can completely safely use tmpfs or a ramdisk, which will
# give you a significant performance improvement.
# NOTE: The path given here must not include any links at all,
# NOTE: but must be the absolute path to the directory.
# NOTE: If you change this, you should change these too:
# NOTE: SpamAssassin Temporary Dir
# NOTE: SpamAssassin Cache Database File
Incoming Work Dir = /var/spool/MailScanner/incoming

Line 197
# Set where to store infected and message attachments (if they are kept)
# This can also be the filename of a ruleset.
Quarantine Dir = /var/spool/MailScanner/quarantine

Line 2711
# SpamAssassin creates lots of temporary files as it works on messages.
# For speed, these should be created in a location mounted using tmpfs if
# you have it. MailScanner will attempt to mkdir it if necessary, so no
# special scripts are needed to set it up before running MailScanner.
# Note: If you move the "Incoming Work Dir" then you should move this too.
SpamAssassin Temporary Dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp

Line 2300
# The SpamAssassin cache uses a database file which needs to be writable
# by the MailScanner "Run As User". This file will be created and setup for
# you automatically when MailScanner is started.
# Note: If you move the "Incoming Work Dir" then you should move this too.
# Note: you will also need to update /usr/mailscanner/usr/sbin/ms-sa-cache
SpamAssassin Cache Database File = /var/spool/MailScanner/incoming/SpamAssassin.cache.db
alinford
Junior Member
Posts: 14
Joined: 25 May 2014, 22:26

Re: Quarantine Issue

Post by alinford »

I can see the email in MailControl, and when I click on View/Status, I can view all the info about the email, including Message ID (1c8vmk-000NeO-JE), IP info, Subject, Header IP's, and the Headers, etc, but on the Contents line it says:
"Message not found in quarantine"

I can navigate to the email on the server under quarantine, and it is there. I can view the email and it's contents directly in the quarantine folder:
/home/MailScanner/quarantine/20161121/nonspam/1c8vmk-000NeO-JE

This is the same with all email in the spam and nonspam folders.
Last edited by alinford on 21 Nov 2016, 21:16, edited 1 time in total.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Quarantine Issue

Post by ForumAdmin »

You still need to do what I said in my previous reply for it to work with MailControl:
If so, then you will have to create a symlink to that location from the directory you have moved it to.
Post Reply