|
NAMEMail::OpenRelay::Simple - check if a mail server runs as an open relay.SYNOPSISuse Mail::OpenRelay::Simple; my $host = "127.0.0.1"; my $scan = Mail::OpenRelay::Simple->new({ host => $host, timeout => 5, from_email => "test\@foobar.com", rcpt_email => "test\@foobar.com", banner => 0, debug => 0 }); print "$host open relay\n" if $scan->check; DESCRIPTIONThis module permit to check if a mail server runs as an open relay.Note: this module provides only a simple test. No email message is sended. METHODSnewThe constructor. Given a host returns a Mail::OpenRelay::Simple object:my $scan = Mail::OpenRelay::Simple->new({ host => "127.0.0.1" }); Optionally, you can also specify :
checkChecks the target.$scan->check; SEE ALSOhttp://en.wikipedia.org/wiki/Open_mail_relayAUTHORMatteo Cantoni, <mcantoni@cpan.org>COPYRIGHT AND LICENSEYou may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.Copyright (c) 2006, Matteo Cantoni
Visit the GSP FreeBSD Man Page Interface. |