New: html/sql.create.domain.catchall.account.html.

This commit is contained in:
Zhang Huangbin 2014-11-04 17:48:55 +08:00
parent a7dd5005a3
commit 39e1275f6f
4 changed files with 68 additions and 0 deletions

View File

@ -28,6 +28,7 @@ We're migrating [old wiki documents](http://www.iredmail.org/wiki) to Markdown f
* [Monitor incoming and outgoing mails with BCC](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/monitor.incoming.and.outgoing.mails.with.bcc.md)
* [Pipe incoming email for certain user to external script ](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/pipe.incoming.email.for.certain.user.to.external.script.md)
* [Force Dovecot to recalculate mailbox quota](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/recalculate.mailbox.quota.md)
* [SQL: Create domain catch-all account for SQL backend](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.domain.catchall.account.md)
* [SQL: Create an mail alias account with SQL command line](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/sql.create.mail.alias.md)
* [Store SpamAssassin bayes in SQL](https://bitbucket.org/zhb/docs.iredmail.org/src/default/howto/store.spamassassin.bayes.in.sql.md)

View File

@ -0,0 +1,24 @@
# SQL: Create domain catch-all account for SQL backend
With default setting, iRedMail will reject emails sent to non-existing mail
accounts under hosted mail domains. If you want to accept these emails, you
need a domain catch-all account.
With MySQL/MariaDB or PostgreSQL backend, you can add catch-all account for
existing domain `domain.com` in SQL table `vmail.alias` like below:
```sql
sql> USE vmail;
sql> INSERT INTO alias (address, goto, domain)
VALUES ('domain.com', 'dest@example.com', 'domain.com');
```
This sql command creates catch-all address for domain `domain.com`, all mails
sent to non-existing accounts under `domain.com` will be delivered to
`dest@example.com`.
__NOTE__: With iRedAdmin-Pro, you can manage catch-all account in domain
profile directly. Screenshot attached.
![](../images/iredadmin/domain_profile_catchall.png)

View File

@ -43,6 +43,7 @@
<li><a href="monitor.incoming.and.outgoing.mails.with.bcc.html">Monitor incoming and outgoing mails with BCC</a></li>
<li><a href="pipe.incoming.email.for.certain.user.to.external.script.html">Pipe incoming email for certain user to external script </a></li>
<li><a href="recalculate.mailbox.quota.html">Force Dovecot to recalculate mailbox quota</a></li>
<li><a href="sql.create.domain.catchall.account.html">SQL: Create domain catch-all account for SQL backend</a></li>
<li><a href="sql.create.mail.alias.html">SQL: Create an mail alias account with SQL command line</a></li>
<li><a href="store.spamassassin.bayes.in.sql.html">Store SpamAssassin bayes in SQL</a></li>
</ul>

View File

@ -0,0 +1,42 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SQL: Create domain catch-all account for SQL backend</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="sql-create-domain-catch-all-account-for-sql-backend">SQL: Create domain catch-all account for SQL backend</h1>
<p>With default setting, iRedMail will reject emails sent to non-existing mail
accounts under hosted mail domains. If you want to accept these emails, you
need a domain catch-all account.</p>
<p>With MySQL/MariaDB or PostgreSQL backend, you can add catch-all account for
existing domain <code>domain.com</code> in SQL table <code>vmail.alias</code> like below:</p>
<pre><code class="sql">sql&gt; USE vmail;
sql&gt; INSERT INTO alias (address, goto, domain)
VALUES ('domain.com', 'dest@example.com', 'domain.com');
</code></pre>
<p>This sql command creates catch-all address for domain <code>domain.com</code>, all mails
sent to non-existing accounts under <code>domain.com</code> will be delivered to
<code>dest@example.com</code>.</p>
<p><strong>NOTE</strong>: With iRedAdmin-Pro, you can manage catch-all account in domain
profile directly. Screenshot attached.</p>
<p><img alt="" src="../images/iredadmin/domain_profile_catchall.png" /></p><br /><p style="text-align: center;">If you found something wrong
in this document, please do
<a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p><p style="text-align: center; color: grey;">This tutorial is published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license.<!-- Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3293801-14");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body></html>