Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everybody, I'm a new user. I d'ont know if this is the right section for my answer, if so, I beg your pardon. So, I have my relay server ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    14

    Mailscanner mysql

    Hi everybody,
    I'm a new user.

    I d'ont know if this is the right section for my answer, if so, I beg your pardon.

    So,
    I have my relay server with SLES 10, Mailscanner (version 4.60.8 ) and Mailwatch.
    I need to clear the mailscanner mysql db with a cronjob because the growing db will soon fill up my disk.
    I find this documentation
    but I don't understand where I can find the mailwatch_mysql_maintenance.sql file. There isn't in /path/to/mailwatch...
    Any help?

    Thanks.

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Hi Kebold. Welcome to the forums.

    Have you tried locate?
    Code:
    $locate mailwatch_mysql_maintenance.sql

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    14
    yes, but without success...
    I think I have to create this file, but I'm not sure about that and in the Mailscanner documentation I can't find any help.

    Maybe the filename is not the same for the suse disto?

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    How about using wildcard characters to broaden the search?
    Code:
    locate "*.sql"
    Also, it's possible that your locate db hasn't been updated since these files were created so you may have to run updatedb as root to update it manually. That command may take a minute or two to finish.

  5. #5
    Just Joined!
    Join Date
    Dec 2007
    Posts
    14
    Ok, I Find the solution!

    I dont' have the mailwatch_mysql_maintenance.sql file, but in another directory:
    /usr/local/src/mailwatch/tools, I have a php script: db_clean.php.
    This script work like the .sql file.

    Thanks for the answers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...