2017-07-06 12:16:46 -05:00
<!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 >
2019-07-13 06:21:55 -05:00
2017-07-06 12:16:46 -05:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2017-07-06 12:16:46 -05:00
< 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 >
2018-07-04 03:57:29 -05:00
< div class = "admonition warning" >
< p class = "admonition-title" > Warning< / p >
2017-07-08 22:25:23 -05:00
< ul >
< li > This document is applicable to iRedMail-0.9.6 and earlier releases.< / li >
< li > Here's < a href = "./sql.create.catch-all.html" > doc for iRedMail-0.9.7 and later releases< / a > .< / li >
< / ul >
< / div >
2017-07-06 12:16:46 -05:00
< 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 >
2017-10-28 00:38:13 -05:00
< p > < img alt = "" src = "./images/iredadmin/domain_profile_catchall.png" / > < / p >
2017-07-06 12:16:46 -05:00
< 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" >
2019-09-06 00:54:43 -05:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > 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://github.com/iredmail/docs/archive/master.zip" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2017-07-06 12:16:46 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2017-07-06 12:16:46 -05:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2017-07-06 12:16:46 -05:00
< / script >
< / body > < / html >