{"id":22,"date":"2008-03-25T18:50:15","date_gmt":"2008-03-25T11:50:15","guid":{"rendered":"http:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/25\/using-smtp_generic_maps-to-rewrite-domainaddress-for-outgoing-mails-in-postfixzimbra\/"},"modified":"2008-04-21T10:47:20","modified_gmt":"2008-04-21T03:47:20","slug":"using-smtp_generic_maps-to-rewrite-domainaddress-for-outgoing-mails-in-postfixzimbra","status":"publish","type":"post","link":"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/using-smtp_generic_maps-to-rewrite-domainaddress-for-outgoing-mails-in-postfixzimbra\/","title":{"rendered":"Using smtp_generic_maps to rewrite domain\/address for outgoing mails in Postfix\/Zimbra"},"content":{"rendered":"<p>Greetings to everyone.<\/p>\n<p>Sometimes, you think it&#8217;s so easy to use generic table in <a href=\"http:\/\/www.postfix.org\/\">Postfix<\/a> like this <a href=\"http:\/\/www.postfix.org\/generic.5.html\">http:\/\/www.postfix.org\/generic.5.html<\/a> to rewrite mail address\/domain for outgoing mails.<\/p>\n<p>It must be really easy, of course, with only <a href=\"http:\/\/www.postfix.org\/\">Postfix<\/a>. However, if you do that with the <a href=\"http:\/\/www.postfix.org\/\">Postfix<\/a> running inside a <a href=\"http:\/\/www.zimbra.com\/\">Zimbra<\/a> server, you should do more work if you would not like to get undeliverable reports when sending\/receiving mails from\/to mapped email addresses. This is so simple but it waste me hours to find out. Hope this will help to save your time.<\/p>\n<p>All you need to do is add &#8220;smtp_generic_maps=&#8221; to the amavis service options in master.cf:<\/p>\n<p><code>smtp-amavis unix -      -       n       -       10  smtp<br \/>\n-o smtp_data_done_timeout=1200<br \/>\n-o smtp_send_xforward_command=yes<br \/>\n-o disable_dns_lookups=yes<br \/>\n-o max_use=20<br \/>\n-o smtp_generic_maps=<br \/>\n<\/code><br \/>\nThis stops the outgoing generic map from being applied when the mail gets reinjected into <a href=\"http:\/\/www.postfix.org\/\">Postfix<\/a>. Thats&#8217; all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Greetings to everyone. Sometimes, you think it&#8217;s so easy to use generic table in Postfix like this http:\/\/www.postfix.org\/generic.5.html to rewrite mail address\/domain for outgoing mails. It must be really easy, of course, with only Postfix. However, if you do that with the Postfix running inside a Zimbra server, you should do more work if you<a class=\"more-link\" href=\"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/03\/using-smtp_generic_maps-to-rewrite-domainaddress-for-outgoing-mails-in-postfixzimbra\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Using smtp_generic_maps to rewrite domain\/address for outgoing mails in Postfix\/Zimbra&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-tips","category-zimbra","entry"],"_links":{"self":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}