HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   web interface for releasing messages from quarantine (http://www.howtoforge.com/forums/showthread.php?t=23702)

lctn 28th May 2008 17:00

web interface for releasing messages from quarantine
 
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

Rocky 28th May 2008 17:59

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

lctn 28th May 2008 18:10

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:"

Rocky 28th May 2008 18:17

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

lctn 28th May 2008 18:26

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.

Rocky 28th May 2008 18:36

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

lctn 28th May 2008 21:18

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:(

Rocky 28th May 2008 21:54

Try this:

Code:


chmod 750 /var/spool/MailScanner/quarantine

Rocky

lctn 28th May 2008 22:10

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

lctn 28th May 2008 22:12

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?


All times are GMT +2. The time now is 04:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.