About @HKw@!

I am an IT Engineer who blog about my IT Support and System Administration working Experience If you like to know more about my IT Engineer life, Press Ctrl+D to bookmark my page.

Linux: Sendmail: Check/ Clear / Delete / Flush Mail Queue

To display a summary of the mail messages queued for future delivery. Type the following command:

# mailq

/var/spool/mqueue (1 request) —–Q-ID—– –Size– —–Q-Time—– ————Sender/Recipient———–
p41J74u5032681 893 Fri Apr 1 14:07 8DITNIME (Deferred: Connection timed out with example.com.)
Total requests: 1

All the mail queue store at /var/spool/mqueue. To remove all the mail queue, just delete all files in /var/spool/mqueue

# cd /var/spool/mqueue/
# ls
# rm *

To force mail queue to be sent.
Type the following command:

# sendmail -v -q

How to downgrade VMware Tools for VMware VMs

Problem: VMWare tools not working fine after upgraded to latest version

Solution: Downgrade VMware Tools,

  1. Uninstall the newer version of VMware Tools
  2. Click Here to access VMware Tools download page
  3. Click the link for your version of ESX/ESXi and version of your guest operation system
  4. Download the VMware Tools ISO image
  5. Mount the ISO image to your VM and install it.