{"id":16,"date":"2004-12-14T17:21:33","date_gmt":"2004-12-14T22:21:33","guid":{"rendered":"\/?p=16"},"modified":"2004-12-14T17:21:33","modified_gmt":"2004-12-14T22:21:33","slug":"test","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2004\/12\/14\/test\/","title":{"rendered":"posting to blog via email part iii"},"content":{"rendered":"<p>Well all fine and dandy, but&#8230;  &#8230;I can&#8217;t send mail to my &quot;spare server&quot; when off campus because of the stupid firewall.  But for all practical purposes, my laptop is a &quot;spare server.&quot; It has php, it has cron, it has mail, I have root access.  So, step one, create a blog account (from the terminal)   <\/p>\n<div style=\"margin-left: 40px\">\n<pre>sudo niutil -create \/ \/users\/blogstuff   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff uid 505   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff realname &quot;Blog User&quot;   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff home &quot;\/Users\/blogstuff&quot;   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff shell &quot;\/dev\/null&quot;   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff gid 20   <\/pre>\n<pre>sudo niutil -createprop \/ \/users\/blogstuff passwd &quot;*&quot;    <\/pre>\n<pre>sudo passwd blogstuff  <\/pre>\n<\/div>\n<p>\nSet up the alias   sudo pico \/etc\/postfix\/aliases   add a line like this<\/p>\n<div style=\"margin-left: 40px\">blogstuff:&quot;|\/Users\/blogmail\/wordpress\/wp-mail.php&quot;  \n<\/div>\n<p>\nEdit \/etc\/hostconfig set    \t \t<\/p>\n<div style=\"margin-left: 40px\">MAILSERVER=-YES-   \n<\/div>\n<p>\nrestart postfix    \t<\/p>\n<pre style=\"margin-left: 40px\">sudo \/System\/Library\/StartupItems\/Postfix\/Postfix stop <\/pre>\n<pre style=\"margin-left: 40px\">sudo \/System\/Library\/StartupItems\/Postfix\/Postfix start   <\/pre>\n<p>\nEdit the wp-mail.php script   and send mail to   \tblogstuff@localhost<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well all fine and dandy, but&#8230; &#8230;I can&#8217;t send mail to my &quot;spare server&quot; when off campus because of the stupid firewall. But for all practical purposes, my laptop is a &quot;spare server.&quot; It has php, it has cron, it &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2004\/12\/14\/test\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[175,6517],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-blogs","category-projects"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}