Net::Server::Mail::ESMTP::SIZE - add support for the SIZE ESMTP extension to Net::Server::Mail


Net-Server-Mail-ESMTP-SIZE documentation  | view source Contained in the Net-Server-Mail-ESMTP-SIZE distribution.

Index


NAME

Top

Net::Server::Mail::ESMTP::SIZE - add support for the SIZE ESMTP extension to Net::Server::Mail

SYNOPSIS

Top

    use Net::Server::Mail::ESMTP;

    my @local_domains = qw(example.com example.org);
    my $server = new IO::Socket::INET Listen => 1, LocalPort => 25;

    my $conn;
    while($conn = $server->accept)
    {
        my $esmtp = new Net::Server::Mail::ESMTP socket => $conn;
        # activate some extensions
        $esmtp->register('Net::Server::Mail::ESMTP::SIZE');
        $esmtp->set_size(10_000_000); #10 Milion bytes
        $esmtp->process();
        $conn->close()
    }

DESCRIPTION

Top

Add the ESMTP SIZE extension to Net::Server::Mail::ESMTP. I stubbed this extension when I wrote Test::SMTP and thought it would be nice to finish it off.

METHODS

Top

set_size($size)

Establishes the size threshold for rejecting messages.

USAGE

Top

Register the plugin in the ESMTP object, and then call set_size on the object instance

AUTHOR

Top

    Jose Luis Martinez
    CPAN ID: JLMARTIN
    CAPSiDE
    jlmartinez@capside.com
    http://www.pplusdomain.net

COPYRIGHT

Top

SEE ALSO

Top

Net::Server::Mail, Net::Server::Mail::ESMTP


Net-Server-Mail-ESMTP-SIZE documentation  | view source Contained in the Net-Server-Mail-ESMTP-SIZE distribution.