Using Term::Prompt for terminal output from Perl

For a script I made recently to manage contacts to my LDAP server on the command line, I needed a package to easily output a prompt to the terminal.

The requirement is to be able to output things very easily and giving a default value that will be...

Read the rest...

SPAM protection on Postfix (Part 3)

Most spammers are very aggressive in terms of connection and re-connection to mail servers. Of course they want to send as many SPAM as possible in the shortest time period.

However if you’re using postfix you can throttle that by being a bit more...

Read the rest...

policyd-weight and Postfix SPAM fighting

If you run your own mail server you have to think carefully about SPAM protection of course. The first line of defence is in front of the actual mail server or at least before accepting the actual mail body.

The problem is that in some countries the...

Read the rest...

RBLs on Postfix made easy

Real-time blacklists, DNS RBL precisely, are a convenient way to mitigate the SPAM problem on your server despite all critics about it. policyd is another option that you should consider.

If you’re using Postfix as your MTA it’s quite easy to setup...

Read the rest...

Convert a text file from UTF-8 to ISO-8859-1

From time to time you stumble upon the problem of character encodings. You get a file in encoding A, but prefer it in encoding B.

If you have a Unix shell at your fingertips (or at least something similar) you can use the iconv tool to do the job...

Read the rest...

Uninstall or re-install a Drupal module

After upgrading my Drupal to 6.8 I faced the problem that one module didn’t work right. Maybe it was broken before and I simply didn’t notice that beforehand. However I needed to fix the tables and re-installing the module seemed the best idea to...

Read the rest...