Review: sql.create.mail.alias.md.

This commit is contained in:
Zhang Huangbin 2014-09-20 21:50:47 +08:00
parent 8761d3ab94
commit 0d11c814d6
5 changed files with 49 additions and 14 deletions

View File

@ -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.

View File

@ -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)

View File

@ -1,14 +0,0 @@
<http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/SQL/Create.Mail.Alias>
# 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:
<pre>
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');
</pre>
__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.

View File

@ -0,0 +1,26 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> SQL: Create an mail alias account with SQL command line </title>
<link href="../css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<h1 id="sql-create-an-mail-alias-account-with-sql-command-line">SQL: Create an mail alias account with SQL command line</h1>
<p>To create an mail alias account, you can simply insert a SQL record in table
<code>vmail.alias</code>. For example:</p>
<pre><code class="mysql">sql&gt; USE vmail;
sql&gt; INSERT INTO alias (address, goto, domain) \
VALUES ('original@example.com', \
'user1@example.com,user2@example.com,user1@test.com', \
'example.com');
</code></pre>
<p><strong>NOTES</strong>:</p>
<ul>
<li>Please always use lower cases for email addresses.</li>
<li>Please separated multiple destination addresses by comma.</li>
<li>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.</li>
</ul></body></html>

View File

@ -27,6 +27,8 @@
<li><a href="howto/quarantining.clean.mail.html"> Quarantine clean mail into SQL database</a></li>
<li><a href="howto/recalculate.mailbox.quota.html"> Force Dovecot to recalculate mailbox quota
</a></li>
<li><a href="howto/sql.create.mail.alias.html"> SQL: Create an mail alias account with SQL command line
</a></li>
<li><a href="howto/store.spamassassin.bayes.in.sql.html"> Store SpamAssassin bayes in SQL</a></li>
<li><a href="howto/unattended.iredmail.installation.html"> Perform silent/unattended iRedMail installation</a></li>
</ul>