Run postfix as a blackhole mail server (open relay)

If you want to run Postfix as a blackhole mail server (accepting connection for every user on every domain) then all you have to do is add these settings to /etc/postfix/main.cf :

Note: Postfix is not acting as an open relay in this configuration because it discards mails and is not relaying them to the final destination.

Microsoft Messenger not logging in on Mac OSX

If you run Microsoft Messenger (MSN) on a Mac OSX and you keep getting the message “failed to login” then you have to remove these files in ~/Library/Preferences/Microsoft folder :

(short posting mostly to serve as a reminder for a myself because I keep on forgetting the exact path)

Mapping my neighbourhood SSIDs

A recent post by @xme revealed a tool that allows for passive mapping of SSIDs. I gave it a go for 48 hours and below are the results.

bbox2-1888 2126 bbox2-4344 1580 dlink 84 Veronique 123 31 bbox2-0530 28 telenet-4F11F 28 ZapFi 14 FON_BELGACOM 12 linford1986 4 Wifi 45 4 ZapFi-Gusto 4 coffee House 3 homewlan 3 queenshotel 3 WifiCharles 3 Axip-Home 2 Axip-NW 2 bbox2-22b5 2 SKY24721 2 WLAN_38 2 bbox2-c230 1 BENCHIJIGUA 1Read more.

BNP Paribas, internetbanking and security/privacy marriage failure

I do some of my internet banking through BNP Paribas. Today I was greeted with this message:

The flash notice isn’t such a big security risk on its own but from a banking site I’d expect they would be more careful by – informing users that a (useless) banner requires Flash on your computer (Flash being a popular attack vector is good for gaming sites, from a banking site I’d expect something else) – informing users upfrontRead more.

Top 10 Favorite iPhone apps

The iPhone is such a nice piece of gadgetry but it would not be nothing without the numerous apps. I’ve been using an iPhone (iOS 3, 4 and 5) for more that a year and a half and these are the apps (*) I can’t live without.(*) only apps that are not part of the default install.

Evernote makes it easy to remember things big and small from your everyday life using your computer,Read more.

Basic template for WordPress

I recreated my site recently and moved the custom PHP and WordPress code to a central WordPress code base. I had to recreate some files in the template to get the site to behave the way I wanted it. This is the list of changed files in a WordPress template.

404.php comments.php content-page.php footer.php header.php index.php page.php sidebar.php single.php

Of course you’ll have to add the style.css file and include custom Javascript and CSS filesRead more.

New design

I thought it was time for a new design of this website. The old setup was a combination of my own code with a WordPress blog. I now moved everything to WordPress with a custom theme and some template coding.

The old site used to look like this :

This site uses Google Fonts so you might want to turn on Javascript for all visual effects.

Use ONLY_FULL_GROUP_BY with WordPress

Something I came across recently when installing WordPress gave me headaches. Everything seemed to work properly except when selecting posts by category no results were returned.

I debugged the problem by looking at the SQL-queries performed by WordPress. One query returned an error :

Because the MySQL server was configured to honor ONLY_FULL_GROUP_BY it gave the error “‘test.wpposts.post_author’ isn’t in GROUP BY”.

I could not disable ONLY_FULL_GROUP_BY serverwide so I had to insert it inRead more.

Lookup external IP

If you are behind a router or gateway and you need to get your public IP then you can use dyndns.org with this wget line:

Parse logfiles for entries from IP lists

I sometimes have to parse log files for different IP addresses and then group them by network owner. This becomes tedious If the number of IP addresses is rather long. The script below can help with automating this manual task.

It reads a log file and looks for a match based on keys in an iplist. Afterwards the result is summarized and grouped by a specified field. For example, say you have the log fileRead more.