PHPackages                             cryodrift/mailserver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. cryodrift/mailserver

ActiveLibrary[HTTP &amp; Networking](/categories/http)

cryodrift/mailserver
====================

simple pop3 and smtp servers with encryption

0.1.13(5mo ago)02MITPHPPHP &gt;=8.4

Since Jan 15Pushed 5mo agoCompare

[ Source](https://github.com/cryodrift/mailserver)[ Packagist](https://packagist.org/packages/cryodrift/mailserver)[ RSS](/packages/cryodrift-mailserver/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (14)Used By (0)

POP3/SMTP Test Servers (Implicit TLS)
=====================================

[](#pop3smtp-test-servers-implicit-tls)

Minimal POP3 and SMTP servers intended for local account-setup and client integration tests. POP3 serves messages from a filesystem maildir. SMTP accepts messages and relays them using `src/mail/Smtp`.

This is not for production use.

What it does
------------

[](#what-it-does)

- POP3: Listens on a TLS socket (implicit TLS) — default `0.0.0.0:1995`.
- POP3: Serves messages from a configurable `maildir` directory (recursively scanned, oldest first).
- POP3: Accepts any `USER`/`PASS` (no verification) — for testing only.
- POP3: Supports core commands: `CAPA`, `USER`, `PASS`, `STAT`, `LIST`, `UIDL`, `RETR`, `TOP`, `NOOP`, `RSET`, `QUIT`.
- SMTP: Listens on implicit TLS (default `0.0.0.0:465`). Accepts `EHLO/HELO`, `AUTH` (accepts any), `MAIL FROM`, `RCPT TO`, `DATA`, `RSET`, `NOOP`, `QUIT`.
- SMTP: On end of `DATA`, relays via `\cryodrift\mail\Smtp` using configured user accounts.
- SMTP (receiver mode): Optionally saves each received message to a Maildir so POP3 can serve it.
- POP3: Multi-line responses and dot-stuffing per POP3.

Requirements
------------

[](#requirements)

- PHP 8.4+
- TLS certificate and key files (self-signed is fine for local testing)
- A maildir-like folder with message files (POP3)
- add domain to hosts eg: 127.0.0.1 mail.lab.lan
- create cert for this domain

Minimal usage examples
----------------------

[](#minimal-usage-examples)

POP3
====

[](#pop3)

php vendor/bin/cryodrift.php -echo /mailserver/cli/ pop3

SMTP
====

[](#smtp)

php vendor/bin/cryodrift.php -echo /mailserver/cli/ smtp

Connecting for quick tests
--------------------------

[](#connecting-for-quick-tests)

POP3 over TLS (implicit):

```
openssl s_client -connect 127.0.0.1:1995 -quiet
```

SMTP over TLS (implicit):

```
openssl s_client -connect 127.0.0.1:465 -quiet
EHLO localhost
AUTH PLAIN
MAIL FROM:
RCPT TO:
DATA
Subject: hello

body
.
QUIT
```

Maildir notes (POP3)
--------------------

[](#maildir-notes-pop3)

- The server recursively scans the configured `maildir` and serves every file it finds as a message.
- Messages are sorted by file modification time (oldest first).
- `UIDL` uses the filename (before any `:2,` suffix) for stability.

Limitations
-----------

[](#limitations)

- POP3: No user authentication or authorization (accepts any credentials). Read-only (`DELE` disabled).
- SMTP: Accepts any `AUTH` and relays based on local account config; intended only for local tests.
- Designed for local/test environments only.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance71

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

13

Last Release

165d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/240886628?v=4)[cryodrift](/maintainers/cryodrift)[@cryodrift](https://github.com/cryodrift)

### Embed Badge

![Health badge](/badges/cryodrift-mailserver/health.svg)

```
[![Health](https://phpackages.com/badges/cryodrift-mailserver/health.svg)](https://phpackages.com/packages/cryodrift-mailserver)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
