2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2015-01-12 08:00:24 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Per-domain or per-user transport (relay)< / title >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2015-01-12 08:00:24 -06:00
< / head >
< body >
< div id = "navigation" >
2016-04-19 12:48:51 -05:00
< 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 >
2016-02-29 02:15:19 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "per-domain-or-per-user-transport-relay" > Per-domain or per-user transport (relay)< / h1 >
2016-02-29 06:43:32 -06:00
< div class = "toc" >
< ul >
< li > < a href = "#per-domain-or-per-user-transport-relay" > Per-domain or per-user transport (relay)< / a > < ul >
< li > < a href = "#manage-relay-manually" > Manage relay manually< / a > < / li >
< li > < a href = "#manage-relay-with-iredadmin-pro" > Manage relay with iRedAdmin-Pro< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< p > Transport mentioned in this tutorial is used to deliver received email to
local mailbox.< / p >
< h2 id = "manage-relay-manually" > Manage relay manually< / h2 >
2015-01-12 08:00:24 -06:00
< p > With OpenLDAP backend, per-domain transport is set in domain account with
attribute < code > mtaTransport< / code > , per-user transport is set in user account with
the same attribute. For example:< / p >
< pre > < code > mtaTransport: dovecot
< / code > < / pre >
< p > With SQL backends, per-domain transport is set in SQL table < code > vmail.domain< / code > ,
column < code > transport< / code > . For example:< / p >
< pre > < code > sql> USE vmail;
-- Check current transport settings
sql> SELECT domain,transport from domain LIMIT 10;
-- Update transport setting for domain 'my_domain.com'
sql> UPDATE domain SET transport='[new_transport_here]' WHERE domain='my_domain.com';
< / code > < / pre >
< p > Per-user transport is set in table < code > vmail.mailbox< / code > , column < code > transport< / code > .< / p >
< p > Per-user transport has higher priority. If no per-user transport is set
for your mail user, per-domain transport will be used.< / p >
2016-02-29 06:43:32 -06:00
< h2 id = "manage-relay-with-iredadmin-pro" > Manage relay with iRedAdmin-Pro< / h2 >
< p > With iRedAdmin-Pro, you can easily manage per-domain or per-user transport in
account profile page. Screenshots attached.< / p >
2015-01-12 08:00:24 -06:00
< ul >
< li > Per-domain transport/relay:< / li >
< / ul >
< p > < img alt = "" src = "../images/iredadmin/domain_profile_relay.png" / > < / p >
< ul >
< li > Per-user transport/relay:< / li >
< / ul >
2016-05-19 06:51:20 -05:00
< p > < img alt = "" src = "../images/iredadmin/user_profile_relay.png" / > < / p > < 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" >
2015-02-05 07:02:53 -06:00
(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');
2015-01-12 08:00:24 -06:00
< / script >
< / body > < / html >