Novell Cool Solutions

NetMail 3.5.2 Mailbox Cleanup Routine



By:

June 28, 2006 2:50 pm

Reads:4,567

Comments:0

Score:Unrated

Print/PDF

License:
Free as long as credit is given where credit is due.

Download netmail-clean

This tool has been tested on the latest NetMail version (3.5.2). It can run against either NetWare or Linux NetMail installations, but the Perl script itself must be executed from a Linux machine. It cleans
mailboxes according to user-defined parameters. This tool is safe to run on a server while NetMail is running, as it uses the NMAP protocol and updates its message list frequently while executing the actual
Delete and Purge commands.

It is written in pure Perl and has a few minor Linux system calls built in (thus the Linux machine requirement). This tool uses a socket connection to talk to NetMail’s NMAP protocol. It has been highly
tested in a large environment.

To use this Perl script, you need the following Perl modules installed:
  Socket
  Date::Manip
  Number::Bytes::Human

Usage:

Edit the Perl script, setting your configuration options in the header. Make sure that you add the machine that you run this script from as a trusted host in WebAdmin!

To execute, at a bash prompt type: perl netmail-clean.pl (optionally to time the command: time perl netmail-clean.pl)

DISCLAIMER: Although this tool was highly tested I cannot make any guarantees that it will work with your setup. It was coded very closely to the NMAP protocol specification. I take no responsibility for this
code’s actions!

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS