pfSense 2.3 STARTTLS email notification problem

When using email notification on pfSense 2.3 with STARTTLS i got the following error:

Error: could not start TLS connection encryption protocol

This is due to PHP 5.6 which forces the certificate validation as a default. Here is the fix, hope that the upstream developers fix this in a future version:

open file /etc/inc/smtp.inc and find the following lines:

if($this->debug)
    $this->OutputDebug('Starting TLS cryptograpic protocol');
############## ADD THIS BEGIN ########################
stream_context_set_option($this->connection, [
    "ssl" => [
        "verify_peer" => false,
        "verify_peer_name" => false,
        "allow_self_signed" => true
    ]
]);
############## ADD THIS END ##########################
if(!($success = @stream_socket_enable_crypto($this->connection,1,STREAM_CRYPTO_METHOD_TLS_CLIENT)))
    $this->error = 'could not start TLS connection encryption protocol';
else
{
    if($this->debug)
        $this->OutputDebug('TLS started');
    $success = $this->StartSMTP($localhost);
}

Creating a bootable USB stick from any ISO in MacOSX

Here are a few steps if you want to create a bootable USB stick:

  1. open Disk Utility and erase the USB drive with the partition tab
  2. choose "1 partition" and "free space" as file system
  3. open the Terminal
  4. find your USB stick device:

    # diskutil list
  5. and type

    # sudo dd if=/path/to/fiile.iso of=/dev/rdiskX bs=1m

Please make sure that you use the correct output device (of=/dev/rdiskX). if you choose the wrong one you could overwrite your internal disk!