Find all email that a user sent via postfix mail.log

I needed to find all the email that a user sent with only the postfix mail.log. This simple script does that. There is probably an easier way :-)

#!/bin/bash USERNAME=$1 for i in `grep -A2 $USERNAME mail.log | \
grep message-id | cut -d'<' -f2 | cut -d'>' -f1`; \
do grep "$i" /var/log/mail.log | grep "to=" | awk '{ print $7 }' | \
cut -d'<' -f2 | cut -d'>' -f1; done | sort | uniq -c

 

Topics

A low resource usage Pandora player - Pianobar

Pandora has become my go to choice of music player some time ago, but having a browser window open just to play music strikes me as we little crazy.

Pithos is one alternative and does a reasonable job, but I was looking for something lighter and I found it with Pianobar.

Theres a bunch of features, it works a treat, and is very lightweight compared to Pithos.

Give it a try, maybe you'll prefer a non-gui too.

Ubuntu winbind not working?

Have you been trying to get winbind working on Ubuntu, and not having any luck? After the usual:

 

sudo apt-get install winbind

 

You also need to install libnss-winbind as well:

 

sudo apt-get install libnss-winbind

 

That should get it working, when combined with the change of the hosts: line in /etc/nsswitch.conf from:

 

hosts: files dns

 

to

 

hosts: files dns wins

 

And presto, it should start working.

Topics

Fish smoker

One of the Christmas presents I got this year was a Jarvis Walker Fish Smoker.

I've been a bit slack, but we bought some Trout today to give it a try.

It worked quite well, but I think I left it in a little too long, so taste is not awesome.

I'm sure it will take a few more tries to get the technique down pat, but I'm looking forward to trying a few different combinations.

Topics

Outlook fail

Microsoft outlook has a facility to "recall a message".

However, despite what you may think it would do, all it does is send a message to all recipients stating that you'd like to recall the message.

Basically, outlook has a "I was a dumbass" function. It just tells everyone that you sent the message to that you DON'T want them to read the message you just sent.

WTF. So full of fail, only makes you go to read it more!

Topics