A PHP Web Mail Client
Disclaimer: WebyMail is provided "as is." While we strive for security, you use this software at your own risk.
- Multi-account with just one login
- Login CAPTCHA Protection
- Two Factor Protection
- Reply-To option during email composing
- HTML signature
- A modern look
- An updated and maintained code
- Easy to install without use of the SSH terminal
- Possibility to use without MySQL database. SQL Lite is used and some config are stored in PHP config file.
- Headers check
- Folders manager
-
You can monitor the status of this project here: https://github.com/PeopleInside/WebyMail/releases
-
For any question you can use https://github.com/PeopleInside/WebyMail/discussions
-
For security policy you can read the right section: https://github.com/PeopleInside/WebyMail/security
- Upload the files to your web server.
- Ensure the
config/anddata/directories are writable by the web server. - Visit
setup.phpin your browser to configure the application. - After setup,
setup.phpis automatically deleted for security.- To re-run setup, re-upload the
setup.phpfile and visitsetup.php?force=1.
- To re-run setup, re-upload the
- Critical: Make a backup before updating. Ensure you have a copy of:
- Your configuration file:
config/config.php - Your database file (path defined in
config.php) - Your encryption key file:
app_secret.wm(located next to the database)
- Your configuration file:
- Replace all WebyMail files by FTP with the new release files.
- Your data and settings are preserved as long as you keep
config/config.phpand your external data directory.
- A self-hosted proof-of-work captcha is enabled by default on login. To disable it, set
'captcha_enabled' => falseinconfig/config.php. - Two factor can be disabled in case of login issue also on
config/config.php - The application uses a per-installation
app_secretfor encryption of account passwords, recovery data, and session tokens. For security, this secret is stored in an external file (app_secret.wm) in the same secure directory as your database. - When upgrading, preserve your existing
config/config.phpand the directory containing your database andapp_secret.wm. - Existing installations will automatically migrate the
app_secretfromconfig/config.phpto the new external file upon first run.
- HTTPS & Reverse Proxy: Serve WebyMail exclusively over HTTPS. If running behind a reverse proxy (Cloudflare, Nginx, Traefik), configure
'trusted_proxies'inconfig/config.phpso forwarded HTTPS and client IP headers are trusted only from your proxy. - Database Outside Webroot: Store your SQLite database and
app_secret.wmoutside the web-accessible directory (configurable via setup or Settings → System & Maintenance by the primary administrator). - Web Server Rules: On Apache,
.htaccessfiles protectconfig/,data/,src/, andtemplates/. On Nginx or other servers, explicitly deny HTTP access to those directories and to.db/.wm/.jsonfiles. - Remove
setup.php: Ensuresetup.phpis removed once installation is complete. - Quick Fix Actions: If the security banner alerts logged-in users to insecure file permissions or disabled login CAPTCHA, clicking Fix Permissions or Enable CAPTCHA in Settings → System & Maintenance safely applies the recommended hardening automatically.
- Added Unread first and Unread only message filtering across all regular folders and Unified multi-account folders, preserved across pagination and message view/actions.
- Added automatic live unread count synchronization across all Unified folders (
#unified-subfolders) and per-account folders (#unified-accounts-list), including instant updates when reading, composing drafts, deleting, moving, or receiving new emails.
- Added raw email headers inspection (Headers button, modal, and copy-to-clipboard) inside both the modal and standalone (Full Tab)
.emlattachment previews. - Added direct download links for nested attachments inside attached
.emlemails (action=eml_attachment), with improved MIME boundary/preamble parsing and nestedmessage/rfc822support inEmlParser. - Added
EmailAuthAnalyzerto inspectAuthentication-ResultsandReceived-SPFheaders: displays a 3-check authentication badge (SPF, DKIM, DMARC in green/orange/red) and an anti-spoofing warning banner when authentication fails, softfails, or sender domains do not align (both in message view and.emlpreviews).
- Added missing
debugErrorMessage()helper inindex.phpso failed login and account validation errors safely return generic messages in production without triggering HTTP 500 errors. - Hardened
Config::moveDatabase()(extension checks, control-character filtering, webroot rejection) and restricted database relocation/warning dismissal to the primary administrator (user_id === 1), while keeping safe Fix Permissions and Enable CAPTCHA actions working for any logged-in user via the security alert banner. - Normalized email/username casing in
Authrate-limiting and user lookups (LOWER(...)), added session-bound CSRF protection onlogin2fa, sanitized SMTP sender headers (From:,Disposition-Notification-To:) and folder management inputs, validated account email addresses, and hardenedsanitizeHtml()against HTML comments and legacy raw-text tags. - Updated documentation (
README.mdandSECURITY.md).
- Preserved left-sidebar scroll position on folder navigation and persisted expanded/collapsed unified account states across browser restarts.
- Added non-standard unified folders under Unified Accounts in the sidebar.
- Isolated HTML email and
.emlattachment previews inside<iframe sandbox="allow-popups allow-popups-to-escape-sandbox" referrerpolicy="no-referrer">, hardened SSRF / private-host validation (HostValidator), bound existing primary accounts against arbitrary IMAP host login takeover, and hardenedConfig::isRequestSecure()and TOTP enrollment.
WebyMail is free, open-source software licensed under the GNU General Public License v3.0 and is provided "AS IS" and "AS AVAILABLE", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, title, and non-infringement.
In no event shall the authors, maintainers, or contributors be held liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, without limitation, loss of data, lost or undelivered emails, account compromise, service interruption, server misconfiguration, or security breaches) arising in any way out of the use of, or inability to use, this software, even if advised of the possibility of such damages.
By installing and using WebyMail, you acknowledge that you do so at your own sole risk and that you are solely responsible for:
- Securing and maintaining your hosting environment, PHP/web server configuration, HTTPS/TLS certificates, and firewall rules.
- Regularly backing up your database,
config/config.php, andapp_secret.wmencryption key. - Verifying the suitability and security of the software for your own environment prior to production use.



