This partially implements RFC3203. Note that we are not fully compliant as we do not support authentication.