diff --git a/4-howto/sql.create.mail.alias.md b/4-howto/sql.create.mail.alias.md new file mode 100644 index 00000000..fece956b --- /dev/null +++ b/4-howto/sql.create.mail.alias.md @@ -0,0 +1,20 @@ +# SQL: Create an mail alias account with SQL command line + +To create an mail alias account, you can simply insert a SQL record in table +`vmail.alias`. For example: + +```mysql +sql> USE vmail; +sql> INSERT INTO alias (address, goto, domain) \ + VALUES ('original@example.com', \ + 'user1@example.com,user2@example.com,user1@test.com', \ + 'example.com'); +``` + +__NOTES__: + +* Please always use lower cases for email addresses. +* Please separated multiple destination addresses by comma. +* If destination address is a user under domain which is hosted on localhost, + it must exist. Otherwise emails sent to alias account will be bounced after + expanded to destination addresses. diff --git a/README.md b/README.md index fc810ead..7a0a419e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ * [ Pipe incoming email for certain user to external script ](src/default/4-howto/pipe.incoming.email.for.certain.user.to.external.script.md) * [ Quarantine clean mail into SQL database](src/default/4-howto/quarantining.clean.mail.md) * [ Force Dovecot to recalculate mailbox quota ](src/default/4-howto/recalculate.mailbox.quota.md) +* [ SQL: Create an mail alias account with SQL command line ](src/default/4-howto/sql.create.mail.alias.md) * [ Store SpamAssassin bayes in SQL](src/default/4-howto/store.spamassassin.bayes.in.sql.md) * [ Perform silent/unattended iRedMail installation](src/default/4-howto/unattended.iredmail.installation.md) diff --git a/create.mail.alias.md b/create.mail.alias.md deleted file mode 100644 index 965a4f8e..00000000 --- a/create.mail.alias.md +++ /dev/null @@ -1,14 +0,0 @@ - -# How to create an mail alias account with SQL command line -To create an mail alias account, you can simply insert a SQL record in table `vmail.alias`. For example: - -
-sql> USE vmail;
-sql> INSERT INTO alias (address, goto, domain) VALUES ('original@example.com', 'user1@example.com,user2@example.com,user1@test.com', 'example.com');
-
- -__NOTES__: - -* Please always use lower cases for email addresses. -* Please separated multiple destination addresses by comma. -* If destination address is a user under domain which is hosted on localhost, it must exist. Otherwise emails sent to alias account will be bounced after expanded to destination addresses. diff --git a/html/howto/sql.create.mail.alias.html b/html/howto/sql.create.mail.alias.html new file mode 100644 index 00000000..7f0ab25e --- /dev/null +++ b/html/howto/sql.create.mail.alias.html @@ -0,0 +1,26 @@ + + + + SQL: Create an mail alias account with SQL command line + + + + +

SQL: Create an mail alias account with SQL command line

+

To create an mail alias account, you can simply insert a SQL record in table +vmail.alias. For example:

+
sql> USE vmail;
+sql> INSERT INTO alias (address, goto, domain) \
+     VALUES ('original@example.com', \
+             'user1@example.com,user2@example.com,user1@test.com', \
+             'example.com');
+
+ +

NOTES:

+ \ No newline at end of file diff --git a/html/index.html b/html/index.html index a99e996c..f66e8bca 100644 --- a/html/index.html +++ b/html/index.html @@ -27,6 +27,8 @@
  • Quarantine clean mail into SQL database
  • Force Dovecot to recalculate mailbox quota
  • +
  • SQL: Create an mail alias account with SQL command line +
  • Store SpamAssassin bayes in SQL
  • Perform silent/unattended iRedMail installation