{"id":891,"date":"2012-08-02T15:25:15","date_gmt":"2012-08-02T07:25:15","guid":{"rendered":"http:\/\/rmohan.com\/?p=891"},"modified":"2012-08-02T15:25:31","modified_gmt":"2012-08-02T07:25:31","slug":"qmail-multiple-domains-support","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=891","title":{"rendered":"qmail multiple domains support"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Some time ago I wrote an article about <a href=\"http:\/\/misha.beshkin.lv\/qmail-sorry_i_wasnt_able_to_establish_an_smtp_connection\/\">qmail e-mail accounts setting<\/a>.<br \/>\nSince that time I needed to specify multiple domains with same e-mail names, like:<br \/>\n&#8211; info@examle.com to deliver mails to info_example user<br \/>\n&#8211; info@example1.com to deliver mails to info_example1 user<br \/>\n&#8211; test@example.com to deliver mails to test_example user<\/p>\n<p><a href=\"http:\/\/www.linuxjournal.com\/article\/2313?page=0,1\">This article<\/a> describes how to set up such environment greatly.<\/p>\n<p>Here is short explanation how to do it.<br \/>\nAdd following lines to \/var\/qmail\/control\/virtualdomains<\/p>\n<div id=\"highlighter_806238\">\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>1<\/code><\/td>\n<td><code>examle.com:<\/code><code>alias<\/code><code>-example<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>2<\/code><\/td>\n<td><code>examle1.com:<\/code><code>alias<\/code><code>-example1<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>Add the following files to \/var\/qmail\/alias\/<br \/>\n.qmail-example-info with entry line info_example<br \/>\n.qmail-example1-info with entry line info_example1<br \/>\n.qmail-example-test with entry line test_example<\/p>\n<p>restart qmail and it should work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n<p>Some time ago I wrote an article about qmail e-mail accounts setting. Since that time I needed to specify multiple domains with same e-mail names, like: &#8211; info@examle.com to deliver mails to info_example user &#8211; info@example1.com to deliver mails to info_example1 user &#8211; test@example.com to deliver mails to test_example user<\/p>\n<p>This article describes how [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/891"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=891"}],"version-history":[{"count":3,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}