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

Mac OS X – WARNING: UNPROTECTED PRIVATE KEY FILE!: “Permissions 0755 for ‘id_rsa.pub’ are too open.”


When i transfer my private key file to my new Mac OS X, i got an error message below:-

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder.

So, the solution for this is, make that file(id_rsa) readable or writable only for the owner with private key. Below is the command

sudo chmod 600 ~/.ssh/id_rsa

After change the permission, my problem is solved.

 

BIND 9.9.X – How to view BIND Slave Zone files?


If you recently update your BIND server to version 9.9.X, you will noticed that you unable to read slave zone file.

Below is the example of zone file

As per checking on BIND official release notes from ISC, BIND version 9.9.x store Slave Zones file in raw/binary format.

In order to view the content of Slave Zone file, you need to convert “raw” format zone files to “text” format using the named-compilezone utility that comes with BIND. Continue reading