1.2.2 • Published 10 months ago

paperbox v1.2.2

Weekly downloads
61
License
ISC
Repository
github
Last release
10 months ago

paperbox - SMTP Mail Server for Testing

This mail server stores all the mails sent to it. It will create mail box for new reciepient address.

To start a SMTP server listen on port 1025, and recieve all the mails.

var paperbox = require('paperbox');

server = new paperbox();
server.listen();

Choose Mail Store Types

LevelDB

server = new paperbox({db_type: 'leveldb'});

SQLite3

server = new paperbox({ db_type: 'sqlite3' });

NeDB

server = new paperbox({db_type: 'nedb'});

Test SMTP

Use openssl to STARTTLS with login:

$ openssl s_client -crlf -starttls smtp -connect 0.0.0.0:1025
...
250 STARTTLS
AUTH PLAIN AGptczFAam1zMS5uZXQAbm90Lm15LnJlYWwucGFzc3dvcmQ=
235 Authentication successful
mail from: <user1@test.example.com>
250 Accepted
rcpt to: <user2@test.example.com>
250 Accepted
data
354 End data with <CR><LF>.<CR><LF>
subject: Test Mail Server

This is a test mail from openssl client.
Please discard it.
.
250 OK: message queued
quit
221 Bye
closed
1.2.0

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.0

4 years ago