GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MAIL::OPENRELAY::SIMPLE (3)

.ds Aq ’

NAME

Mail::OpenRelay::Simple - check if a mail server runs as an open relay.

CONTENTS

SYNOPSIS



  use 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;



DESCRIPTION

This module permit to check if a mail server runs as an open relay.

<B>Note: this module provides only a simple test. No email message is sended.B>

METHODS

    new

The 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 :
<B>portB> remote port. Default is 25;
<B>timeoutB> default is 8 seconds;
<B>from_emailB> default is test\@foobar.com;
<B>rcpt_emailB> default is test\@foobar.com;
<B>bannerB> 0 (none), 1 (show mail server banner). Default is 0;
<B>debugB> 0 (none), 1 (show all requests). Defualt is 0;

    check

Checks the target.



  $scan->check;



SEE ALSO

http://en.wikipedia.org/wiki/Open_mail_relay

AUTHOR

Matteo Cantoni, <mcantoni@cpan.org>

COPYRIGHT AND LICENSE

You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.

Copyright (c) 2006, Matteo Cantoni

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MAIL::OPENRELAY::SIMPLE (3) 2006-07-20

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.