web interface for releasing messages from quarantine

Discussion in 'Server Operation' started by lctn, May 28, 2008.

  1. lctn

    lctn New Member

    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
     
  2. Rocky

    Rocky Member

    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
     
  3. lctn

    lctn New Member

    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:"
     
  4. Rocky

    Rocky Member

    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
     
  5. lctn

    lctn New Member

    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.
     
  6. Rocky

    Rocky Member

    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
     
  7. lctn

    lctn New Member

    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:(
     
  8. Rocky

    Rocky Member

    Try this:

    Code:
     
    chmod 750 /var/spool/MailScanner/quarantine
    
    Rocky
     
  9. lctn

    lctn New Member

    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
     
  10. lctn

    lctn New Member

    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?
     
  11. Rocky

    Rocky Member

    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
     
  12. lctn

    lctn New Member

    solved

    Thank you very much!!

    I am not sure when/how I did that, but changing it fixed things.
     
  13. Rocky

    Rocky Member

    Raymond,

    You're welcome. I knew it had to be a permission issue.:)

    Rocky
     
  14. lctn

    lctn New Member

    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.
     
  15. Rocky

    Rocky Member

    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
     
  16. skruven2006

    skruven2006 New Member

    I've been following this thread to the bitter end, but no luck for me. :confused:
    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
     
  17. Rocky

    Rocky Member

    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
     
  18. skruven2006

    skruven2006 New Member

    Thanx Rocky, but... been there done that :( (did it again now for the.... say 5th time).
    Still the same.

    Other suggestions?

    //David
     
  19. Rocky

    Rocky Member

    Try this:

    Code:
    chmod -R u+rwx,g+rx /var/spool/MailScanner/quarantine
    Let me know if that worked.
     
  20. skruven2006

    skruven2006 New Member

    Sorry, didn't work either :(

    //David
     

Share This Page