The Linux Page

Bad DKIM signature data

Yesterday I had a customer sending me emails from a different account from last time. That different account is a Yahoo! account so in general there is no problems with that.

Yet, this one time it did not make it. One of my email filters failed. Namely, the DKIM filter. It uses the dkim library to check mail messages and make sure that they indeed originate from where they say they are from.

It is an interesting concept. In the following figure I show the standard scenario of a hacker sending me spam and a valid domain sending me an email:

As you can see, if I communicate with the sender's server (via the DNS server) I can ask the domain whether it signs all of its emails. If so and the spam email is not properly signed I can safely discard the spammer's email.

This works in most cases. but with that one customer, it failed...

There are two ways to avoid problems. You can add the whole domain to the peerlist of the DKIM driver. The problem here is that you will accept any email from that domain without verification. Whether or not the emails are from a hacker. Yet, if that domain did not properly implement the DKIM specification, you may not have much of a choice.

The other way is to add the email(s) in a whitelist checked before the DKIM filter. At that point it will bypass the DKIM filter. It won't prevent a hacker from using that very email, but they need to know what's in your whitelist... not as easy.

More info: http://en.wikipedia.org/wiki/DomainKeys_Identified_Mail


Change the display resolution

Often, when one writes a game, one wants a specific resolution to make sure that the game works as expected. Zoomed out textures may not look as nice and the speed could be affected too (drawing 1280x1024 pixels instead of 640x480 is more than 4x higher and all video boards won't be as fast as required in this case). Under MS-Windows you can ask the system to change resolution (size & depth) with a call to ChangeDisplaySettings().

Read more...


Change the display resolution

Often, when one writes a game, one wants a specific resolution to make sure that the game works as expected. Zoomed out textures may not look as nice and the speed could be affected too (drawing 1280x1024 pixels instead of 640x480 is more than 4x higher and all video boards won't be as fast as required in this case). Under MS-Windows you can ask the system to change resolution (size & depth) with a call to ChangeDisplaySettings().

Read more...


Change the display resolution

Often, when one writes a game, one wants a specific resolution to make sure that the game works as expected. Zoomed out textures may not look as nice and the speed could be affected too (drawing 1280x1024 pixels instead of 640x480 is more than 4x higher and all video boards won't be as fast as required in this case). Under MS-Windows you can ask the system to change resolution (size & depth) with a call to ChangeDisplaySettings().

Read more...


[toc title:Testing Table of content; minlevel:2; maxlevel:3;]

H1 title

h2 title

h3 title

h4 title

h5 title
h6 title

H1 title

h2 title

h3 title

h4 title

h5 title
h6 title