eMail Forwarding for iredMail: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To forward email from one mailbox to another.<br><br> 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 crea..."
 
No edit summary
 
Line 24: Line 24:
                         1);
                         1);
</pre>
</pre>
Information : describe forwardings;
<pre>
+---------------+---------------------+------+-----+---------+----------------+
| 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      |                |
+---------------+---------------------+------+-----+---------+----------------+
</pre>


[[Category : iRedMail]]
[[Category : iRedMail]]

Latest revision as of 10:44, 9 May 2020

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       |                |
+---------------+---------------------+------+-----+---------+----------------+