Search Advanced Search
Categories
Insight Server (165)
WebClient (18)
Insight Connector (65)
Address Book (12)
ExportPST (1)
Search Articles
Advanced Search
Frequently Asked Questions
Search our FAQ to find resolutions to common issues.
Automated script for purging virusmails directory
Your /opt/inisight/var/virusmails directory can grow quite large over time. The maintenance (purging) of this directory is designed to be managed by the systems administrators. There are potential company policies on email retention that may include items in these directories and in some cases, local law regulates what can be purged from the server. There are ways you can "automate" purging the virusmails folder using cron.

  1. Open a command line terminal and log in as root
  2. Edit your crontab by typing:
    # crontab -e <enter>
  3. Move your cursor to the bottom line of the crontab and hit "o" to start a new "insert" line.
  4. Type in the following:
    3 0 * * * find /opt/insight/var/virusmails/ -mtime +30 -type f -exec rm -f {} \;
  5. Press "ESC" followed by "Shift :wq" <enter> to "write" and "quit" the crontab edit.
The contents of this entry into the crontab are as follows:
  • The first entry - the number "3" represents minutes within the hour - i.e. 3 minutes after the hour.
  • The second entry is the hour. This figure is in 24 hour format with 0 being midnight, 1 being 1AM on through to 23 being 11PM.
  • The third entry (represented by an *) is the day of the month with values ranging from * (wild card meaning every day), to 1 through 31.
  • The fourth entry is the month. As in the previous entry an * is a wild card meaning every month. The acceptable values are *, 1 - 12.
  • The fifth entry is the day of the week. Acceptable values are *, 0 - 6 (0 = Sunday, 1 = Monday, etc.).
  • The "find" command searches for files within a directory.
  • The next entry is the literal path where the quarantined items are - it is important to use literal paths instead of relative paths when using cron.
  • The "-mtime +30" flag is used in conjunction with the "find" command to identify the items that have not been modified in 30 days or more.
  • The "-type f" flag is also used in conjunction with the "find" command to determine that the item is a regular file type.
  • The "exec rm -f" string tells cron to "execute" the "rm -f" command, or the "remove" command with the "force (-f)" flag.
  • The last items in the string, "{} \;" ends the command string properly.
Print  Email  Save  Comments  Notify Me  Add to Favorites 
Article ID: 200091 Article Created: 10-23-2007 20:47 PMLast Modified: 08-29-2008 13:01 PM

How well did this article answer your question? 100% 75% 50% 25% 0%

Most Recently Viewed Articles
Automated script for purging virusmails directory
Your /opt/inisight/var/virusmails directory can grow quite large over time. The maintenance (purging) of this directory is designed to be managed by the systems administrators. There are potential company policies on email retention that may include it...
Dependency Error libstdc++.so.5 when installing Insight Server
Q:  When I try to install the Insight Server rpm I get a dependency error.  It tells me that the “dependency for libstdc++.so.5” i...
"Failed to get the license certificate from the server" Error when registering AddressBook 3.0
...
Automatic Installation of Insight Connector
Automatic InstallationTo install the Insight Connector with minimal user intervention, the administrator (or manager) can modify a setup.ini file that will answer questions about the configuration setting...
When trying to move mail or create folders with the Insight Connector, I receive errors
When using a mail server other than Insight Server, the mail server may not be able to handle Access Control Lists (ACL).The Insight Connector applies permissions to each folder allowing or denying read and/or write access.  If the server ...
My remote users can't relay mail via Postfix using SMTP Authentication and I'm using a Cisco Pix firewall.
The Pix firewall attempts to harden inbound SMTP connections by limiting certain features and abilities available via SMTP. This includes the ability for clients to use SMTP authentication. In order to allow external clients to relay via SMTP using...
Enabling anonymous LDAP bind
In Insight Server 4.1.0-16 and up, anonymous LDAP access has been disabled for security reasons as well as for enabling private domains. This often has the adverse effect of clients no longer being able to access...
Creating a virtual alias domain
Often it is handy to automatically alias all accounts in a given domain on your Insight Server to a second domain without updating the mail alias on each account. An example might be all users in the domain example.ne...
Unable to login as manager after an LDAP restore
Try this first: # cd /opt/insight/htdocs/is4web # ./bin/resource password That will reset the manager password to "password" . Try logging in again. If it still fails, reset the Insight Servi...
Where do I enter the license key for the WebClient?
Navigate to the WebClient login:http://your.server/insight/ (5.x)http://your.server/groupware/ (4.x)Login as 'manager' and you will be able to enter the license key....