After seeing a increase in image spam, I decided to add the Fuzzy OCR plugin for spamassassin. Basically, it will read the image and see if there are any words or phrases that are labeled as spam and append a score to it. I was surprised that I didn’t see any how tos for Gentoo,… Continue reading How to set up Spamassasin-FuzzyOcr for Gentoo
Here is a sweet trick I learned to day to grab the line you’re looking for as well as the line after or before. It’s using the -A or -B flag within grep. Glad I found this before writing a stupid script using awk, etc. grep 'some value in a line' -B 1 /var/log/messages This… Continue reading Grep the line and the line before or after.
Today I had to do some work on my qmail, which I hate to work with. Basically, I needed to go through the logs and and verify some deliveries, etc. Well, the timestamps for qmail is using TAI64N (which I just learned about). You can use tai64nlocal to convert them to readable timestamps. Again, this… Continue reading Dealing with Qmail’s TAI64N format