Top Nav

Archive | Uncategorized

Encode/decode SMTP AUTH username/passwords

When using SMTP AUTH, the username and password are base64 encoded. Here’s a snip of perl that will encode a string:

This will produce something like this:

And here’s the decode:

which of course yields:

3

Change ZimbraMon Disk Thresholds

Edit the file at:

Look for these lines:

Change them as desired to give different warning/critical levels.

In one case that we worked on, the server had multiple partitions. We wanted different thresholds on each partition which was accomplished with the following patch:

1

Perl – Sorting multi-diminsional arrays

To numerically sort @myarray by the second column do this:

Here is an alpha sort of @myarray on the third column:

0