self-hosted disposable email service (php) using catch-all and imap
Find a file
2017-03-24 21:38:28 +01:00
src :sparcles: added config delete_messages_older_than 2017-03-24 21:38:20 +01:00
.gitignore cleanup ignore list 2016-12-22 22:21:37 +01:00
composer.json move everything 2016-11-20 21:45:57 +01:00
composer.lock upgrade versions and readme 2016-09-14 20:27:18 +02:00
readme.md readme 2017-03-24 21:13:32 +01:00
screenshot.png screenshot of the new layout 2017-03-21 12:45:24 +01:00

self-hosted disposable email service

Join the chat at https://gitter.im/synox/disposable-mailbox

Goals:

  • easy to use: random or custom name, auto refresh
  • easy to host: just php5 with imap extension, catch-all mailbox
  • easy to install: copy-paste and imap config
  • minimal code base: minimal features and complexity
Screenshot

You have to know

Requirements

  • apache 2 webserver with php >=5.3.0 (let me know how it works on nginx!)
  • php imap extension
  • IMAP account and a domain with catch-all configuration. (all mails go to one mailbox).

Installation

  1. assure the imap extension is installed. The following command should not print any errors:

     <?php print imap_base64("SU1BUCBleHRlbnNpb24gc2VlbXMgdG8gYmUgaW5zdGFsbGVkLiA="); ?>
    
  2. download a release or clone this repository

  3. copy the files in the src directory to your web server (not the whole repo!).

  4. rename config.sample.php to config.php and apply the imap settings. Move config.php to a safe location outside the public_html.

  5. edit backend.php and set the new path to config.php.

  6. open it in your browser, check your php error log for messages.

Build it yourself

The src directory contains all required files. If you want to update the php dependencies, you can update them yourself. You must have composer installed.

Install php dependecies:

composer install

Credit

This could not be possible without...