{"id":283,"date":"2012-05-07T12:07:16","date_gmt":"2012-05-07T16:07:16","guid":{"rendered":"http:\/\/blogs.tulsalabs.com\/?p=283"},"modified":"2025-11-12T02:24:49","modified_gmt":"2025-11-12T06:24:49","slug":"enable-the-postfix-mail-transfer-agent","status":"publish","type":"post","link":"http:\/\/blogs.tulsalabs.com\/?p=283","title":{"rendered":"Enable the postfix Mail Transfer Agent"},"content":{"rendered":"<p>I want to use git&#8217;s mailing capabilities on OS X Lion to send out patches. How do I configure the MTA?<\/p>\n<p>This <a href=\"http:\/\/hints.macworld.com\/article.php?story=20031025022626398\">Enable the postfix Mail Transfer Agent<\/a> looks interesting, but old:<\/p>\n<pre>\r\n  loghyr:postfix root# head \/etc\/hostconfig \r\n  # This file is going away\r\n<\/pre>\n<p>But I think we can control all of this from the postfix(1).<\/p>\n<pre>\r\n  loghyr:postfix root# postconf -d | grep etc\r\n  alias_database = hash:\/etc\/aliases\r\n  alias_maps = hash:\/etc\/aliases\r\n  config_directory = \/etc\/postfix\r\n  sample_directory = \/etc\/postfix\r\n<\/pre>\n<p>I&#8217;m going to need a version for my home network and my vpn network:<\/p>\n<pre>\r\nloghyr:postfix root# cp main.cf home.cf\r\nloghyr:postfix root# cp main.cf work.cf\r\nloghyr:postfix root# cp main.cf default.cf\r\n<\/pre>\n<p>Edit the config files and start it:<\/p>\n<pre>\r\nloghyr:postfix root# cp work.cf main.cf\r\nloghyr:postfix root# postfix start \r\npostfix\/postfix-script: warning: group or other writable: \/Library\/Server\/Mail\/Data\/mta\r\npostfix\/postfix-script: starting the Postfix mail system\r\n<\/pre>\n<p>How do I get it to stay launched? <a href=\"http:\/\/apple.stackexchange.com\/questions\/32228\/whats-the-correctly-way-to-make-postfix-run-permanently-on-lion-not-server\">What&#8217;s the correctly way to make Postfix run permanently on Lion (not server)<\/a><\/p>\n<p>I can switch my config files as needed.<\/p>\n<p>Hmm, it works. I can&#8217;t show you, but it works.<\/p>\n<p>The main thing I changed from the article I linked in was the relayhost:<\/p>\n<pre>\r\nrelayhost = [mail.internal.excfb.com]\r\n<\/pre>\n<p>My setup assumes that I am connecting to an already working mail server in the domain. I.e., my iMac isn&#8217;t going to be receiving mail, just sending it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to use git&#8217;s mailing capabilities on OS X Lion to send out patches. How do I configure the MTA? This Enable the postfix Mail&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,16,9],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-admin","category-macs","category-systems"],"_links":{"self":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":5,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":288,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions\/288"}],"wp:attachment":[{"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blogs.tulsalabs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}