diff --git a/plugins/tls b/plugins/tls index 533c5df..4aceaad 100644 --- a/plugins/tls +++ b/plugins/tls @@ -149,12 +149,16 @@ sub hook_connect { my ($self, $transaction) = @_; my $local_port = $self->qp->connection->local_port; - return DECLINED unless defined $local_port && $local_port == 465; # SMTPS + if ( ! defined $local_port || $local_port != 465 ) { # SMTPS + $self->log(LOGDEBUG, "skip, not SMTPS"); + return DECLINED; + }; unless (_convert_to_ssl($self)) { + $self->log(LOGINFO, "fail, unable to establish SSL"); return (DENY_DISCONNECT, "Cannot establish SSL session"); } - $self->log(LOGWARN, "Connected via SMTPS"); + $self->log(LOGINFO, "pass, connect via SMTPS"); return DECLINED; }