F
F
fedorchuk2017-03-30 09:05:47
Debian
fedorchuk, 2017-03-30 09:05:47

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";

How to create a user who will receive ALL mail coming to the server? Where to set it up? Now I'm creating mailboxes right in the vesta.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-03-30
@dimonchik2013

aliases see
something like @domain.com usernameforspammaibox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question