PowerWire.eu

Independent IBM i, AIX and Linux news and tech tips for Europe and beyond

  • Home
  • News
  • Technical Articles
    • IBM i
    • AIX
    • Linux
    • VIOS
  • Subscribe
  • About Us
  • Contact Us
  • Advertise with PowerWire.eu

CLEANMAIL – the folly of assumption

May 5, 2020 by David Shears Leave a Comment

This image has an empty alt attribute; its file name is header-pic.jpg



Bit of a short one this month as preparing for Year End tasks and shutdowns around the customers, but it gave me a little chuckle when I did it so maybe I can warn some people off the same fate!

CLEANMAIL, if you aren’t familiar, is a utility from IBM that’s useful for removing old distribution entries for users. You can find the source here and if you read the article by Graham Street last month then good news, it comes as part of the QMGTOOLS library so you’re already half way there.

For the purposes of the exercise I’m going to go with having manually created the CLs from the IBM page as opposed to using the downloaded version.

On a dark and stormy day in September last year we found out our message monitoring solution wasn’t working, my first thought was it’s a shame I don’t get email notification that my email notification system isn’t working! A bit of digging identified that the distribution limit had been reached so naturally I thought “I know the solution, I’ll run the mail cleanup utilities.” After it had run over all users, I restarted the subsystem and to my surprise, still didn’t work.

That’s very odd says I, so I check my notes in our knowledge base and confirm that the date there is anything prior to 2076 (same as the IBM sample code.) I don’t have the source on this customer server but I’m sure it must be right…..

As you may have guessed from that previous statement, it really would help if I had the source available. I go back to one of our internal servers that I saved the objects from, lo and behold someone had set a more sensible date in the program. So, the reason my purge wasn’t working is because by that date there was nothing to purge! The thought process at the time was “lets keep <x> months of entries” which is fine assuming you remember that / have a copy of your code next time the problem pops up.

Red faced after the amount of time it took me to get to this point, I sheepishly copy the source to the customer system and update the cut-off date. Would you believe this happened to fix my problem.

I still need to solve why my monitor is hitting this problem (he says writing about it 15 months later, how the time flies!) But hopefully if I don’t solve it by the next time the problem comes around, I’ll at least remember to check my source first 🙂



Related Posts

  • Who is using that IFS object?Who is using that IFS object?
  • Gartner Says Global IT Spending to Reach $3.7 Trillion in 2018Gartner Says Global IT Spending to Reach $3.7 Trillion in 2018
  • Remain Software announces a major step in global expansionRemain Software announces a major step in global expansion
  • A screen a story – to include or to filterA screen a story – to include or to filter
  • Using Ansible with IBM i to install PTFsUsing Ansible with IBM i to install PTFs
  • Press Release: Maxava launches a brand new product – Maxava Monitor Mi8Press Release: Maxava launches a brand new product – Maxava Monitor Mi8

Filed Under: IBM i, Technical Articles

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Free monthly newsletter signup

News

Rant for better security on IBM i

This rant is intended as a wakeup call to companies and ITSecurity experts.I have 25 years of experience in … [Read More...]

Probably the best Interactive Debugger on the IBM i

Get Started Open up ‘IBM i Client Access’, make sure you have entered the correct system, then choose … [Read More...]

How to find the right IBM i printer configuration

You might think that we live in a world of standards and that any printer would be able to work out of the box … [Read More...]

More articles from this section

Quick Links

  • Advertise
  • Subscribe

Follow Us…

  • Email
  • LinkedIn
  • Twitter

Search This Website

Copyright © 2022 · Cue Communications · All Rights Reserved

Log in

This site uses cookies More info