Skip to content

Author: halfgaar

Halfgaar is Wiebe. Wiebe is a contributing author on this weblog. He also has a lot of stuff (such as long, in-depth articles) on his personal website.

Wiebe works at YTEC, where he is a senior developer of customer-specific tailor-made software (“klantspecifieke maatwerk software“) for clients in a few select markets: wholesale, printing and healthcare.

Working with a postfix mail queue

Some useful commands when working with a postfix mailqueue: "postsuper -r ALL". Requeues all messages. "postcat [file]". Views queue files in /var/spool/bla. "postqueue". Deal with queue. Read More »

Rewrite rules to redirect to a temporary offline page

Sometimes you want to take a site offline for a while. You can put this in .htaccess or the vhost config: Read More »

Enabling authentication and SSL for Postfix on Debian

I used this document as main source. This blogpost is also useful. Read More »

Configuring thunderbird to put date of original message above quote

To put "on [date] x wrote" instead of "x wrote" above a quote, set the mailnews.reply_header_type param to 2.

Read More »

Preventing IOerror on stdout with modWSGI

By default, you can't use prints in a django app, because mod_wsgi restricts that. You can change that by putting this in your configuration: Read More »

Changing an apache virtual host to ssl

To change a virtual host in apache to ssl: #Redirect all normal traffic to the https site. RewriteEngine on RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R] Read More »

Redirect multiple domains to one

When a site is available under multiple domains, it is usually bad idea to not have them all redirect to one domain. In apache, do this: Read More »

Making Windows RDP more secure

I don't really trust the security of RDP, so therefore I'd like to take some extra security measures. I found this article explaining a lot. Read More »

Generating key and certificate for courier-imap

To create a self-signed certificate for courier-imap: openssl req -new -x509 -days 3650 -nodes -out imapd.pem -keyout imapd.pem Read More »

Setting password for mysql user in .my.cnf

Sometimes you want automated access for root on your MySQL database. One way of accomplishing that is by doing this: Read More »