HealthCheck::Diagnostic::SMTP - Verify connectivity to an SMTP mail server
Check that you can talk to the server.
my $health_check = HealthCheck->new( checks => [
host => 'smtp.gmail.com',
timeout => 5,
Determines if the SMTP mail server is available. Sets the status to "OK" if the connection was successful, or "CRITICAL" otherwise.
Can be passed either to new or check.
required Either a string of the hostname or a coderef that returns a hostname string.
The port to connect to. Defaults to 25.
The number of seconds to timeout after trying to establish a connection. Defaults to 5.
Grant Street Group <firstname.lastname@example.org>
This software is Copyright (c) 2019 - 2020 by Grant Street Group.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install HealthCheck::Diagnostic::SMTP, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.