Answer the question
In order to leave comments, you need to log in
How to create a user who will receive ALL mail coming to the server?
Good afternoon,
I want to make mail for spam, like "Temporary mailboxes"
Found two "simple" solutions:
https://github.com/synox/disposable-mailbox
www.chokleong.com/2015/06/10/hosting-your- own-disp...
In each of them, you need to enter in the configs a user who collects all mail:
<?php
# set the new path of config.php (must be in a safe location outside the `public_html`)
require_once '../../config.php';
# load php dependencies:
require_once './backend-libs/autoload.php';
$mailbox = new PhpImap\Mailbox($config['imap']['url'],
$config['imap']['username'],
$config['imap']['password']);
// Change IMAP settings (check SSL flags on http://php.net/manual/en/function.imap-open.php)
$config['imap']['url'] = '{example.com/imap/ssl}INBOX';
$config['imap']['username'] = "test";
$config['imap']['password'] = "test";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question