PHPackages                             balgor/mailserver-autodiscovery - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. balgor/mailserver-autodiscovery

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

balgor/mailserver-autodiscovery
===============================

Discover imap, pop3 and smtp servers from email address

1.1.2(7y ago)61327[1 issues](https://github.com/matejsmisek/php-mailserver-autodiscovery/issues)GPL-2.0-or-laterPHPPHP &gt;=7.1.3

Since Jan 15Pushed 6mo agoCompare

[ Source](https://github.com/matejsmisek/php-mailserver-autodiscovery)[ Packagist](https://packagist.org/packages/balgor/mailserver-autodiscovery)[ Docs](https://github.com/Balgor/php-mailserver-autodiscovery)[ RSS](/packages/balgor-mailserver-autodiscovery/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

PHP Mail server autodiscovery
=============================

[](#php-mail-server-autodiscovery)

Translates provided email address into full IMAP/POP3/SMTP server configuration to be used by PHP

Library Features
----------------

[](#library-features)

- First it tries Mozzila ISPDB for any records from email domain
- Compatible with Thunderbird autoconfiguration XML
- Compatible with Outlook autodiscovery XML
- Tries to resolve MX and SRV DNS records for more accurate finds
- Optionally can perform test connection and login to found configurations

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

[](#limitations)

- Gmail accounts cannot be validated via tester and will usually report warning email to user

Why you might need it
---------------------

[](#why-you-might-need-it)

If you are building PHP application which integrates user mailbox. Users usually don't know their email server settings and popular e-mail clients (Thunderbird, Outlook) already fills this information for them

Installation &amp; loading
--------------------------

[](#installation--loading)

Library is available on [Packagist](https://packagist.org/packages/balgor/mailserver-autodiscovery), and installation via [Composer](https://getcomposer.org) is the recommended way to install Mail server autodiscovery. Just add this line to your `composer.json` file:

```
"phpmailer/mailserver-autodiscovery": "~1.1"
```

or run

```
composer require balgor/mailserver-autodiscovery
```

Planned Features
----------------

[](#planned-features)

- Validation of CRAM-MD5 password logins
- Autoconfiguration if no service was found by try connecting to Guessed service and reading server capabilities
- Easily fetch fully form string from server to use with php\_imap library
- Convert SMTP server configuration for Swift\_Mailer library usage

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance44

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

5

Last Release

2671d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea5f9b9724ee051befcc3f844c01902ec588298346c60e68f4272886f757ae63?d=identicon)[balgor](/maintainers/balgor)

---

Top Contributors

[![matejsmisek](https://avatars.githubusercontent.com/u/3141623?v=4)](https://github.com/matejsmisek "matejsmisek (6 commits)")

---

Tags

mailemailsmtpimappop3

### Embed Badge

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

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

###  Alternatives

[php-imap/php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)

1.7k12.9M42](/packages/php-imap-php-imap)[ddeboer/imap

Object-oriented IMAP for PHP

9153.9M11](/packages/ddeboer-imap)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[tedivm/fetch

A PHP IMAP Library

5061.2M8](/packages/tedivm-fetch)[mlocati/spf-lib

Parse, build and validate SPF (Sender Policy Framework) DNS records

67867.9k2](/packages/mlocati-spf-lib)[pear/net_smtp

An implementation of the SMTP protocol

263.0M16](/packages/pear-net-smtp)

PHPackages © 2026

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