Originally Posted by byran cheung
I know the command "mailq" can be used to check any mail is pending , if I would like to get the alert if the no. of pending mail is over 500 , would advise what can I do , if a script can do that ? very thanks
Yes, you can obviously write a script. There are many scripting tutorials you can easily find. And it seems like you've asked this before:
What have YOU
written/done/tried to get things going??? We are NOT going to write your scripts for you, but will be happy to help if you're stuck, but you will have to show SOME effort of your own.