Configuring Domain & User Mailbox Quotas in Dovecot via PostfixAdmin on Ubuntu 12.04LTS


This article attempts to document how to configure Dovecot and domain & users’ mailbox quota sizes using information contained within PostfixAdmin and its associated tables.

During PostfixAdmin install time, the database is requested where PostfixAdmin can store additional tables.  Selecting the same database as postfix itself neatly installs these additional tables, that can then be used by Dovecot to monitor mailbox quota sizes. Continue reading

Configure Postfix, PostfixAdmin, Dovecot & SMTP-Auth SASL Using MySQL on Ubuntu 12.04 LTS


This article sets out the steps needed to support multiple domains and their users’ email accounts allowing them to recieve emails via secure IMAP and send emails via a secure SMTP server using their POP3/IMAP credentials.  This is particularly useful for mobile users (road warrior) who may not have a consistent ISP provided SMTP server.

  • Recieve emails, using IMAPS or POP3S via Dovecot
  • Configuring Postfix to receive and send emails for virtual domain, and emails accounts
  • Configure SASL to provide a method of authenticating users email users to allow them access to the Postfix SMTP in order to send emails securely.
  • Easy delegated management of virtual domain mailboxes using PostfixAdmin

This article has been put together from countless other articles so that it should provide an all inclusive set of instructions.

Continue reading

Using the DD Linux Command To Backup & Restore


I have been messing around with backing up a compact flash card and trying to put images onto an sd card for my Raspberry PI and thought I would jot down effective use of the Linux DD utility. The ‘dd’ command is one of the original Unix utilities and should be avaliable in all Linux distros. It can strip headers, extract parts of binary files and write into the middle of floppy disks; it is used by the Linux kernel Makefiles to make boot images. It can be used to copy and convert magnetic tape formats, convert between ASCII and EBCDIC, swap bytes, and force to upper and lowercase. Continue reading

Checking an MD5 Checksum Of A Downloaded File in Linux

MD5 is a one-way algorithm as defined by the RFC1321 that can be used to verify the integrity of a file or filesystem by providing as 128bit digital signature.  This digital signature is like a fingerprint for a file or filesystem and will change dramatically even if a single byte changes.

This means they are excellent in checking the integrity of a file that you have downloaded of a mirror that provides the files equivalent MD5Checksum.  Continue reading

VBScript – Passing Named Arguments

I am always forgetting this so I have posted it so I can refer back to this when needed.  Sometimes via a command line you want to be able to pass command line parameters to a vbscript. e.g.

cscript.exe myscript.vbs /Parameter:value

The vbscript to handle this is as follow:

Option Explicit
Dim colNamedArguments

Set colNamedArguments = Wscript.Arguments.Named
If colNamedArguments.Exists("Parameter") Then
    Wscript.echo "Parameter Exists!"
    Wscript.echo "Parameter = " & _
End If

For more information see the following microsoft article :


Windows XP (x64) & Lenovo S30 Workstation SATA & SAS Drivers Via RIS

I have the challenge of trying to get Windows XP (x64) work on some of the most recent hardware.  SATA and the newer SAS Drivers are quite a challenge on these devices, as was proving the case when I was trying to get them to work on the Lenovo S30.  During Remote Installation Services (RIS) kept reporting “corrupted driver messages” when trying to put the two sets of drivers Continue reading

SCCM OSD ‘No Boot Action for Device (x) found

I was receiving the above message ‘No Boot Action for Device(32123) found.’  on the PXE service point server, in smspxe.log.

The number (32123) is the resource ID of the computer object found at that SCCM site.  The device was in a collection which had an advertisement pointing to a OSD Task sequence with a valid boot image.  I realised that the message is a little misleading.  I deal with a number of boot images and this particular boot image specified in this advertised Operating System Task Sequence was not on the SMSPXE$ share (i.e. not on the distribution point). 

So things to look out for :

  • Make sure that the OSD task sequence boot images are on the distribution point
  • That the task sequence you are using have a valid boot image, easy to decommision a boot image without updating your OSD task sequence 

Installing an Solid State Hard Drive without re-installing on Windows 7 Using Image For Windows

I was very lucky to receive a Solid State Drive (SSD), a splendid present from a group of friends to mark a milestone Birthday.  It was an OCZ Agility III 240GB drive, which I wanted to install inside my main machine as the system drive, however I was not so keen at the prospect of having re-install my Windows 7 Operating System. Continue reading

OpenVPN server.key file not in RSA format for pfSense v1.2.3a


Recently I was trying to set up an OpenVPN server on pfSense using an Ubuntu 11.10.  Following the guides I found I ran into a problem when generating the “server.key” file using the easy-rsa toolset that comes with OpenVPN.  It was producing a server.key file with the following headers and footers :


pfSense v.1.2.3a OpenVPN server.key setup was expecting it to read as follows :


This —-BEGIN PRIVATE KEY—- results in a error message in pfSense when it tries to use save the settings, and before you maybe tempted to try, you cannot simply rename the header and footer by adding “RSA” as this results in invalid key errors when the vpn is initiated, these are found in the pfSense error logs.

It seems it is something to do with the version of OpenSSL I was running on the rig.  On my older 10.04 Ubuntu installation I had OpenSSL 0.98a on my newer 11.10 rig I have OpenSSL 1.0.0e 6 Sep 2011.  Creating the server.key on 0.98a by default created the RSA PRIVATE KEY, creating the server.key on 1.0.0e did not create a RSA Private Key, but an encrypted PRIVATE KEY.

Running the following :

openssl rsa -in server.key -out decryptedserver.key

generated the RSA decrypted server.key file that can simply be cut and pasted into the pfSense v1.2.3a OpenVPN server configuration page.  Solved!