|
@@ -38,3 +38,10 @@ INSERT INTO {{ mail_mysql_database }}.`virtual_domains` (`id`, `name`)
|
38
|
38
|
INSERT INTO {{ mail_mysql_database }}.`virtual_users` (`domain_id`, `password` , `email`)
|
39
|
39
|
VALUES ('{{ virtual_user.domain_pk_id }}', '{{ virtual_user.password_hash }}', '{{ virtual_user.address }}');
|
40
|
40
|
{% endfor %}
|
|
41
|
+
|
|
42
|
+{% if mail_virtual_aliases is defined %}
|
|
43
|
+{% for virtual_alias in mail_virtual_aliases %}
|
|
44
|
+INSERT INTO {{ mail_mysql_database }}.`virtual_aliases` (`domain_id`, `source`, `destination`)
|
|
45
|
+ VALUES ('{{ virtual_alias.domain_pk_id }}', '{{ virtual_alias.source }}', '{{virtual_alias.destination }}');
|
|
46
|
+{% endfor %}
|
|
47
|
+{% endif %}
|