{
    $OUT = "";

    #--------------------------------------------------
    # Now check for SMTP smart host
    #--------------------------------------------------

    if (
        $postfix{'SMTPSmartHost'}
        &&
        ($postfix{'SMTPSmartHost'} ne 'off')
        &&
        ($postfix{'SMTPSmartHost'} !~ /^\s*$/)
    )
    {
        # Is the authentication enabled?
        if (${'postfix'}{'SMTPSmartHostStatus'} eq 'enabled')
        {
            $OUT .= "# using postfix to send to authenticated $SMTPSmartHost";
        }
        else
        {
	    my $port = $postfix{'SMTPSmartHostPeerPort'}|| "25";
            $OUT .= ":$SMTPSmartHost:$port";
        }
    }

    chomp ($OUT);
}
