I just did a new install of spamsnake. I haven't implemented a few things at the end of the howto yet, but think I must have missed something earlier in the instructions. I am not getting a web interface for releasing messages from quarantine. Any idea what portion of the docs I may have missed that provides for this, or maybe a permission problem? Raymond
Raymond, I replied to you on the mailscanner list about the permission issue. Anyhow, what steps did you leave out? Also, what happens when you try to hit the MailWatch interface via your web browser? Do you connect to it and can you log into it? Rocky
works perfect except for missing message release Everything works perfect in the web interface. I just don't have a way of releasing messages from quarantine, which makes me think I missed something, or the perms are wrong on a folder?? I stopped at "9.24.1 Dangerous Content:"
Ok, try this: In your MailWatch interface, there should be a [ ] next to each mail. If you click on that it should take you into the actual message, where you can view the header and what mailscanner has revealed about the message. At the very bottom of that message box, you'll see a check box for release. If you check the box and hit submit, it should release the message. Try that and let me know what happens. Rocky
Thanks for your quick reply I run a few mailscanners with mailwatch, so I and am familiar with the web interface. I am able to view the message details, as you described, but nothing is at the bottom that allows me to release a spam message. I have spam and high spam set to "store" in the config.
Raymond, Make sure you have the following set in /etc/MailScanner/MailScanner.conf: Quarantine User = root Quarantine Group = www-data Quarantine Permissions = 0660 Quarantine Whole Message = yes Always Looked Up Last = &MailWatchLogging Quarantine Whole Message As Queue Files = no Detailed Spam Report = yes Include Scores In SpamAssassin Report = yes Repeat these steps: chown -R postfix:www-data /var/spool/MailScanner chown -R postfix:www-data /var/lib/MailScanner chown -R postfix:www-data /var/run/MailScanner chown -R postfix:www-data /var/lock/subsys/MailScanner chown -R postfix:www-data /var/spool/postfix/hold chmod -R ug+rwx /var/spool/postfix/hold Finally restart MailScanner, log into your MailWatch interface and test it. /etc/init.d/mailscanner restart Rocky
no progress Followed your instructions again, changed from using sql for bayes, back to standard setup. Lint test shows the bayes database is being used. Bayes scores each message. Dropped and recreated mailscanner database, and copied over a fresh Mailwatch.pm. No errors in mail.log Still don't get the section at the bottom of the message detail to release quarantined messages, like my other mailscanners. I must be missing something simple here
chmod I had already done that, but did it again. drwxr-x--- 2 postfix postfix 4096 2008-04-04 21:00 archive drwxr-x--- 39 postfix postfix 4096 2008-05-28 15:02 incoming drwxr-x--- 4 postfix www-data 4096 2008-05-28 00:00 quarantine drwxr-xr-x 2 postfix postfix 4096 2008-05-27 09:05 spamassassin
do_message_ops.php I see the portion that is missing is supplied by do_message_ops.php. Is there a way to see if this is erring out when it is called?
Hmm, very interesting problem. I did notice that you have postfix as the group for a few subfolders in /var/spool/MailScanner. drwxr-x--- 2 postfix postfix 4096 2008-04-04 21:00 archive drwxr-x--- 39 postfix postfix 4096 2008-05-28 15:02 incoming drwxr-x--- 4 postfix www-data 4096 2008-05-28 00:00 quarantine drwxr-xr-x 2 postfix postfix 4096 2008-05-27 09:05 spamassassin Try running the following, restart MailScanner and test MailWatch: Code: chown -R postfix:www-data /var/spool/MailScanner chmod -R ug+rwx /var/spool/MailScanner Does that fix it? Rocky
Run As Group In the instructions it instructs the "Run As Group" be "Postfix". If I change it to www-data, everything works as expected. Changing back to Postfix breaks things.
Raymond, That should work and I do have that in my notes. I haven't tested it without MailWatch to see if MailScanner would still function without any problems. I'll make sure to give it a test run using www-data as the Run As User without MailWatch. Rocky
I've been following this thread to the bitter end, but no luck for me. I have more or less the same problem, ie. I can't se the release-function in the mails. Even more, I can't even see the mails that are in the Quarantine tab, I get the errormessage (?) 'No Rows Retrieved'. Any help is appreciated //David
David, Make sure you have the following set in /etc/MailScanner/MailScanner.conf: Run As Group = www-data Quarantine User = root Quarantine Group = www-data Quarantine Permissions = 0660 Quarantine Whole Message = yes Always Looked Up Last = &MailWatchLogging Quarantine Whole Message As Queue Files = no Detailed Spam Report = yes Include Scores In SpamAssassin Report = yes Repeat these steps: chown -R postfix:www-data /var/spool/MailScanner chown -R postfix:www-data /var/lib/MailScanner chown -R postfix:www-data /var/run/MailScanner chown -R postfix:www-data /var/lock/subsys/MailScanner chown -R postfix:www-data /var/spool/postfix/hold chmod -R ug+rwx /var/spool/postfix/hold chmod -R ug+rwx /var/spool/MailScanner Finally restart MailScanner, log into your MailWatch interface and test it. /etc/init.d/mailscanner restart Let me know if that worked. Rocky
Thanx Rocky, but... been there done that (did it again now for the.... say 5th time). Still the same. Other suggestions? //David