eMail Forwarding for iredMail

From KlavoWiki
Jump to navigationJump to search

To forward email from one mailbox to another.

If you just want an email alias and don't require to send from this address you don't need to create a mailbox just create the forwarder.


The below will forward all email for reports@klaverstyn.com to admin@testforme.com

mysql vmail
INSERT INTO forwardings (address,
                         forwarding,
                         domain,
                         dest_domain,
                         is_forwarding,
                         active)
                 VALUES ('reports@klaverstyn.com',
                         'admin@testforme.com',
                         'klaverstyn.com',
                         'testforme.com',
                         1,
                         1);


Information : describe forwardings;

+---------------+---------------------+------+-----+---------+----------------+
| Field         | Type                | Null | Key | Default | Extra          |
+---------------+---------------------+------+-----+---------+----------------+
| id            | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| address       | varchar(255)        | NO   | MUL |         |                |
| forwarding    | varchar(255)        | NO   |     |         |                |
| domain        | varchar(255)        | NO   | MUL |         |                |
| dest_domain   | varchar(255)        | NO   | MUL |         |                |
| is_maillist   | tinyint(1)          | NO   | MUL | 0       |                |
| is_list       | tinyint(1)          | NO   | MUL | 0       |                |
| is_forwarding | tinyint(1)          | NO   |     | 0       |                |
| is_alias      | tinyint(1)          | NO   | MUL | 0       |                |
| active        | tinyint(1)          | NO   |     | 1       |                |
+---------------+---------------------+------+-----+---------+----------------+