Giter Site home page Giter Site logo

rs / net-server-mail Goto Github PK

View Code? Open in Web Editor NEW
15.0 7.0 9.0 218 KB

Extensible Perl implementation of the STMP protocol and its different evolutions (ie: ESMTP, LMTP)

Home Page: http://search.cpan.org/dist/Net-Server-Mail/

License: Other

Perl 100.00%
lmtp smtp-protocol perl esmtp-extensions esmtp smtp

net-server-mail's Introduction

Net::Server::Mail

This module is a versatile and extensible implementation of the SMTP protocol and its different evolutions like ESMTP and LMTP. The event driven object-oriented API makes easy to incorporate the SMTP protocol to your programs.

Other SMTPd implementations don't support useful ESMTP extensions and the LMTP protocol. Their interface design precludes adding them later. So I've decided to rewrite a complete implementation with extensibility in mind.

It provides mechanism to easy addition future or not yet implemented ESMTP extensions. Developers can hook code at each SMTP session state and change the module's behaviors by registering event call-backs. The class is designed to be easily inherited from.

Installation

To install this module type the following:

perl Makefile.PL
make
make test
make install

Dependencies

This module requires these other modules and libraries:

Sys::Hostname IO::Select and Carp all available on CPAN.

Licence

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Copyright

  • Copyright (C) 2002 - Olivier Poitrey
  • Copyright (C) 2007-2015 - Xavier Guimard [email protected]

STARTTLS

Contributors

  • Georg Hoesch (patch to reduce memory consumption)

net-server-mail's People

Contributors

andee avatar dsteinbrunner avatar guimard avatar mgrdcm avatar migotom avatar rs avatar rubbercthulhu avatar shlomif avatar xsawyerx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

net-server-mail's Issues

Test `lmtp.t` fails

When running the testing suite, the lmtp.t test fails for me. CPAN Testers shows an issue on Windows, but I'm running GNU/Linux here, so I'm not sure why it's failing. I'm investigating further and hope to update with what I learn.

1..11
ok 1 - use Net::Server::Mail::LMTP;
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
not ok 11
#   Failed test at t/lmtp.t line 52.
# Looks like you failed 1 test of 11.

"quit" broken

Bug was introduced in:

$line =~ s/^(.*\s)/uc($1)/ge;

Lowercased "quit" does not have any following params. Because of that \s does not match and command is not uppercased. Therefore it is not recognized as registered command:

< 220 Service ready
> quit 
< 500 Syntax error: unrecognized command

Incorrect behaviour on empty line

According to RFC5321 section 4.3.2 Command-Reply Sequences server should just reply with 500 for invalid command.

Current implementation reply with 500 and write perl error message.

Steps to reproduce issue:

  1. Start service
  2. Telnet to it
telnet localhost 2500
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

220 Server.com ESMTP Service ready

500 Syntax error: unrecognized command
  1. Read error from console:
    Use of uninitialized value $verb in uc at /home/getresponse/perl/lib/site_perl/5.28.0/Net/Server/Mail.pm line 564.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.