{"id":849,"date":"2012-08-02T14:08:24","date_gmt":"2012-08-02T06:08:24","guid":{"rendered":"http:\/\/rmohan.com\/?p=849"},"modified":"2012-08-02T14:08:24","modified_gmt":"2012-08-02T06:08:24","slug":"qmail-smtp-access-control-with-tcp-smtp","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=849","title":{"rendered":"Qmail SMTP Access Control with tcp.smtp"},"content":{"rendered":"<h3>Qmail SMTP Access Control with tcp.smtp<\/h3>\n<div>\n<p>Before we can start using qmail smtpd service, we need to define some access control.<\/p>\n<p>This can be done with file<\/p>\n<p>\/etc\/tcp.smtp<\/p>\n<p>To allow relaying from localhost, you have to add<\/p>\n<p>127.:allow,RELAYCLIENT=&#8221;&#8221;<\/p>\n<p>This setting wil allow Qmail SMTP server to send email from any IP starting with 127.X.X.X<\/p>\n<p>IP 127.0.0.1 is used by localhost<\/p>\n<p>If you need to allow relay from IP address 200.200.200.100 and localhost, Add following<\/p>\n<p>127.:allow,RELAYCLIENT=&#8221;&#8221;<br \/>\n203.200.10.91:allow,RELAYCLIENT=&#8221;&#8221;<\/p>\n<p>Now you need to use tcprules command to add the rule to qmail database (\/etc\/tcp.smtp.cdb).<\/p>\n<p># tcprules \/etc\/tcp.smtp.cdb \/etc\/tcp.smtp.tmp &lt; \/etc\/tcp.smtp<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Qmail SMTP Access Control with tcp.smtp <\/p>\n<p>Before we can start using qmail smtpd service, we need to define some access control.<\/p>\n<p>This can be done with file<\/p>\n<p>\/etc\/tcp.smtp<\/p>\n<p>To allow relaying from localhost, you have to add<\/p>\n<p>127.:allow,RELAYCLIENT=&#8221;&#8221;<\/p>\n<p>This setting wil allow Qmail SMTP server to send email from any IP starting with 127.X.X.X<\/p>\n<p>IP [&#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\/849"}],"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=849"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}