Update: en_US/howto/sql.create.catch-all.md.
This commit is contained in:
parent
d74171c294
commit
0044c8e554
|
@ -0,0 +1,28 @@
|
|||
# SQL: Add per-domain catch-all account
|
||||
|
||||
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
|
||||
$ mysql -u root -p
|
||||
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)
|
||||
|
||||
## See also
|
||||
|
||||
* [Add per-domain catch-all account for OpenLDAP backends](./ldap.add.catch-all.html)
|
|
@ -1,5 +1,10 @@
|
|||
# SQL: Add per-domain catch-all account
|
||||
|
||||
!!! note
|
||||
|
||||
* This document is applicable to iRedMail-0.9.7 and later releases.
|
||||
* Here's [doc for iRedMail-0.9.6 and earlier releases](./sql.create.catch-all-20170701.html).
|
||||
|
||||
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.
|
||||
|
@ -10,8 +15,8 @@ existing domain `domain.com` in SQL table `vmail.alias` like below:
|
|||
```sql
|
||||
$ mysql -u root -p
|
||||
sql> USE vmail;
|
||||
sql> INSERT INTO alias (address, goto, domain)
|
||||
VALUES ('domain.com', 'dest@example.com', 'domain.com');
|
||||
sql> INSERT INTO forwardings (address, forwarding, domain, dest_domain)
|
||||
VALUES ('domain.com', 'dest@example.com', 'domain.com', 'example.com');
|
||||
```
|
||||
|
||||
This sql command creates catch-all address for domain `domain.com`, all mails
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<li><a href="restrict.mail.user.to.login.from.specified.ip.or.networks.html">Restrict mail user to login from specified IP addresses or networks</a></li>
|
||||
<li><a href="send.out.email.from.specified.ip.addresses.html">Send out email from specified IP address</a></li>
|
||||
<li><a href="sign.disclaimer.html">Sign disclaimer on outgoing mails</a></li>
|
||||
<li><a href="sql.create.catch-all.20170701.html">SQL: Add per-domain catch-all account</a></li>
|
||||
<li><a href="sql.create.catch-all.html">SQL: Add per-domain catch-all account</a></li>
|
||||
<li><a href="sql.create.mail.alias.html">SQL: Add a mail alias account</a></li>
|
||||
<li><a href="sql.create.mail.user.html">SQL: Create new mail user</a></li>
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>SQL: Add per-domain catch-all account</title>
|
||||
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="navigation">
|
||||
<a href="/index.html" target="_blank">
|
||||
<img alt="iRedMail web site"
|
||||
src="./images/logo-iredmail.png"
|
||||
style="vertical-align: middle; height: 30px;"
|
||||
/>
|
||||
<span>iRedMail</span>
|
||||
</a>
|
||||
// <a href="./index.html">Document Index</a></div><h1 id="sql-add-per-domain-catch-all-account">SQL: Add per-domain catch-all account</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">$ mysql -u root -p
|
||||
sql> USE vmail;
|
||||
sql> 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>
|
||||
<h2 id="see-also">See also</h2>
|
||||
<ul>
|
||||
<li><a href="./ldap.add.catch-all.html">Add per-domain catch-all account for OpenLDAP backends</a></li>
|
||||
</ul><div class="footer">
|
||||
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-3293801-21', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
</body></html>
|
|
@ -16,6 +16,13 @@
|
|||
<span>iRedMail</span>
|
||||
</a>
|
||||
// <a href="./index.html">Document Index</a></div><h1 id="sql-add-per-domain-catch-all-account">SQL: Add per-domain catch-all account</h1>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<ul>
|
||||
<li>This document is applicable to iRedMail-0.9.7 and later releases.</li>
|
||||
<li>Here's <a href="./sql.create.catch-all-20170701.html">doc for iRedMail-0.9.6 and earlier releases</a>.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<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>
|
||||
|
@ -23,8 +30,8 @@ need a domain catch-all account.</p>
|
|||
existing domain <code>domain.com</code> in SQL table <code>vmail.alias</code> like below:</p>
|
||||
<pre><code class="sql">$ mysql -u root -p
|
||||
sql> USE vmail;
|
||||
sql> INSERT INTO alias (address, goto, domain)
|
||||
VALUES ('domain.com', 'dest@example.com', 'domain.com');
|
||||
sql> INSERT INTO forwardings (address, forwarding, domain, dest_domain)
|
||||
VALUES ('domain.com', 'dest@example.com', 'domain.com', 'example.com');
|
||||
</code></pre>
|
||||
|
||||
<p>This sql command creates catch-all address for domain <code>domain.com</code>, all mails
|
||||
|
|
Loading…
Reference in New Issue