Pages

Welcome to My Blog

This is to share my IT experience with friends all around the world.
I have been working in Linux Fedora Systems for more than 8 years. Its fun to share knowledge and learn..
As everyone knows when a problem arises in your systems "googling" is the way that many depend on..

All the posts here are my working experiences during my working life.. So you can count on it..

I have added the references where I got help in solving IT issues


Wednesday, September 14, 2016

Deleting active mails in the mailq in Postfix

There are several scripts to do that, but I found most of them are not clearing the active queued messages as the mail ids contain '*' at the end of the ID field. I have used cut -n to get the exact mail ID and delete them.

Following given command will delete mails from/to 'testuser@test.com' from the queue:

postqueue -p | grep "testuser@test.com" | cut -f 1 -d ' ' | cut -c-10 | xargs -n 1 postsuper -d








Following referrences are worth to read:

http://www.postfix.org/postsuper.1.html



http://www.bstar.de/2014/07/08/how-delete-single-mails-from-the-mail-queue-of-postfix-plesk/

Monday, March 21, 2016

Linux Performance Observability Tools

I found this image from Facebook (It seems facebook is not providing gossips only :-) which is very useful for Linux system administrators in finding issues in the systems.



I have downloaded the image from its original site (Site owner Brendan D. Gregg) and the original site http://www.brendangregg.com/linuxperf.html


A big thank to Brendan D. Gregg for publishing this.

Thursday, March 10, 2016

iptables Issue in CentOS7

I had issues in enabling iptables in CentOS7. After following the post (link given below) I was able to resolve the issue I had with enabling iptables.

Error I got when I tried to enable iptables

server1#systemctl restart iptables.service
Failed to issue method call: Unit iptables.service failed to load: No such file or directory


Following is the screen shot of the answer received through the post http://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7