{"id":3576,"date":"2014-09-21T23:47:40","date_gmt":"2014-09-21T15:47:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=3576"},"modified":"2014-09-21T23:47:40","modified_gmt":"2014-09-21T15:47:40","slug":"qmail-relay-mails-to-gmail","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3576","title":{"rendered":"Qmail \u2013 Relay Mails to Gmail"},"content":{"rendered":"<p>Earlier we have covered postfix- relay mails to gmail<\/p>\n<p>This tip is for the qmail server using Jms patch.<\/p>\n<p>Many of us prefer Qmail instead of Postfix, especially when it come to use as mail server, for the one who wish to relay mails postfix is easy to install.<\/p>\n<p>Make sure you have created cert while installing Qmail.<br \/>\ne.g.<\/p>\n<p>cd \/usr\/src\/qmail\/qmail-1.03<br \/>\n.\/config-fast tech.linuxreaders.com<br \/>\nmake cert<br \/>\nchown -R vpopmail:qmail \/var\/qmail\/control\/clientcert.pem \/var\/qmail\/control\/servercert.pem<br \/>\nCreate new smtp service. I created qmail-smtpd1 which listens on port 26<\/p>\n<p>\/service\/qmail-smtpd1\/run<br \/>\n#!\/bin\/sh<br \/>\nexec tcpserver -v 127.0.0.1 26 openssl s_client -quiet -connect smtp.gmail.com:25 2&gt;&amp;1<br \/>\nAadd entry in smtproutes<\/p>\n<p>cat \/var\/qmail\/control\/smtproutes<br \/>\n#following is to relay all mails through gmail<br \/>\n:smtp.gmail.com linuxreaders@gmail.com my_passwd<br \/>\n#OR<br \/>\n#following is to relay only technoreaders.com through gmail.<br \/>\ntechnoreaders.com:smtp.gmail.com linuxreaders@gmail.com my_passwd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier we have covered postfix- relay mails to gmail<\/p>\n<p>This tip is for the qmail server using Jms patch.<\/p>\n<p>Many of us prefer Qmail instead of Postfix, especially when it come to use as mail server, for the one who wish to relay mails postfix is easy to install.<\/p>\n<p>Make sure you have created cert [&#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\/3576"}],"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=3576"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3576\/revisions"}],"predecessor-version":[{"id":3577,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3576\/revisions\/3577"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}