[{"data":1,"prerenderedAt":868},["ShallowReactive",2],{"article-20140324-php-sendmail-wrapper":3},{"article":4,"surround":857},{"id":5,"title":6,"authorKey":7,"body":8,"codeLinks":826,"createdAt":828,"description":829,"excerpt":830,"extension":842,"image":843,"meta":844,"navigation":548,"path":845,"published":846,"readingTime":545,"revisedAt":847,"seo":848,"stem":849,"tags":850,"__hash__":856},"articles\u002Farticles\u002F20140324-php-sendmail-wrapper.md","Sendmail-Wrapper for PHP","philip",{"type":9,"value":10,"toc":819},"minimark",[11,29,32,47,52,102,106,132,136,170,174,182,185,227,230,285,292,313,320,328,331,357,360,387,390,499,503,509,709,719,767,773,791,794,800,806,815],[12,13,14,15,22,23,28],"p",{},"Years ago I wrote about the ",[16,17,21],"a",{"href":18,"rel":19},"https:\u002F\u002Fold.iezzi.ch\u002Fextensive-sendmail-wrapper-with-sender-throttling\u002F",[20],"nofollow","extensive sendmail wrapper with sender throttling",", a pretty simple Perl script. It reliably provided throttling of the  email volume per day by the sender’s original UID (user id). It also  logged the pathes of scripts that sent emails directly via sendmail  (e.g. via ",[16,24,27],{"href":25,"rel":26},"https:\u002F\u002Fwww.php.net\u002Fmanual\u002Fen\u002Ffunction.mail.php",[20],"PHP’s mail() function","). The main flaw in the original sendmail wrapper was security, though. As in Linux, every executable script must be readable by the user that  calls it, the throttle table in MySQL was basically open and every  customer could manipulate it. Every customer could raise his own  throttling limit and circumvent it.",[12,30,31],{},"Today, I’m publishing my new sendmail-wrapper that is going to fix  all the flaws of the previous version and add some nice extras.\nThe new sendmail-wrapper is written entirely in PHP and does not require any external libraries. It is a complete rewrite and has pretty much  nothing in common with the old Perl version.",[33,34,35],"ul",{},[36,37,38,46],"li",{},[39,40,41],"strong",{},[16,42,45],{"href":43,"rel":44},"https:\u002F\u002Fgithub.com\u002Fonlime\u002Fsendmail-wrapper",[20],"onlime\u002Fsendmail-wrapper"," (Github)",[48,49,51],"h2",{"id":50},"features","Features",[33,53,54,60,67,70,75,78,84,90,93,96],{},[36,55,56,57],{},"Lets you ",[39,58,59],{},"monitor any mail traffic from PHP scripts",[36,61,62,63,66],{},"Allows ",[39,64,65],{},"throttling (limiting) emails"," sent by PHP’s mail() function",[36,68,69],{},"Throttle by sent email and\u002For recipient count per day",[36,71,72],{},[39,73,74],{},"Logs both to syslog and database with message metadata",[36,76,77],{},"Logs common mail headers like From, To, Cc, Bcc, Subject",[36,79,80,83],{},[39,81,82],{},"Fixes Return-Path header on the fly"," for users who did not correctly set it",[36,85,86,89],{},[39,87,88],{},"Highly secured setup",", customers cannot access the logging\u002Fthrottling database",[36,91,92],{},"Standalone PHP application without any external library dependencies",[36,94,95],{},"Built for shared webhosting environment where PHP runs as cgi\u002FFastCGI\u002FsuPHP",[36,97,98,101],{},[39,99,100],{},"No cronjobs required",", sendmail-wrapper will reset counters automatically every day",[48,103,105],{"id":104},"the-idea-behind-this-secure-setup","The idea behind this secure setup",[12,107,108,109,113,114,117,118,121,122,124,125,127,128,131],{},"Logging is done only via syslog, no customer can read or modify  syslog entries. The sendmail-wrapper is split into two components: ",[110,111,112],"code",{},"sendmail-wrapper.php"," and ",[110,115,116],{},"sendmail-throttle.php",". The wrapper component will only do some syslogging and analyze some headers. It will also fix the ",[110,119,120],{},"Return-Path"," header if applicable as most customers forget to correctly set it in PHP. ",[110,123,112],{}," is readable and executable by every customer. This is a strong  requirement as our customers all run their script under their own UID,  PHP runs as cgi\u002FFastCGI\u002FsuPHP. The throttle component is where it gets  more interesting. The ",[110,126,116],{}," script can only be executed by user sendmailwrapper which is an equally unprivileged  system user like every other customer user. The throttling script will  NOT be world readable and it will read it’s configuration from an extra  file ",[110,129,130],{},"config.private.ini"," which contains the database password. The correct permissions are set by our installation script.",[48,133,135],{"id":134},"return-path-fixing","Return-Path fixing",[12,137,138,139,141,142,146,147,150,151,154,155,158,159,162,163,165,166,169],{},"Most customers just forget to set a ",[110,140,120],{}," when they use PHP’s built-in ",[16,143,145],{"href":25,"rel":144},[20],"mail() function",". Even if they try to set it in the ",[110,148,149],{},"$additional_headers"," variable, it will not get correctly set on most systems. The only way ist to set it via the ",[110,152,153],{},"$additional_parameters"," variable, using the ",[110,156,157],{},"-f"," or ",[110,160,161],{},"-r"," switches. 99% of our customers simply can’t manage this, seriously!\nThis sendmail-wrapper is extracting the email address from the ",[110,164,120],{}," header, and if it doesn’t exist, it will just take the sender’s address (from the ",[110,167,168],{},"From"," header) as return-path. This is actually one of the most important  features of my sendmail-wrapper, even if it might get overlooked and  you’re installing the wrapper because of it’s logging and throttling  capabilities.",[48,171,173],{"id":172},"installation","Installation",[12,175,176,177,181],{},"(for detailed instructions, please consult the ",[16,178,180],{"href":43,"rel":179},[20],"README on Github",")",[12,183,184],{},"Clone repository from GitHub:",[186,187,192],"pre",{"className":188,"code":189,"language":190,"meta":191,"style":191},"language-bash shiki shiki-themes github-light-default github-light-default github-dark-default","$ cd \u002Fopt\u002F\n$ git clone https:\u002F\u002Fgithub.com\u002Fonlime\u002Fsendmail-wrapper.git sendmail-wrapper\n","bash","",[110,193,194,210],{"__ignoreMap":191},[195,196,199,203,207],"span",{"class":197,"line":198},"line",1,[195,200,202],{"class":201},"sQJ0q","$",[195,204,206],{"class":205},"s-BGO"," cd",[195,208,209],{"class":205}," \u002Fopt\u002F\n",[195,211,213,215,218,221,224],{"class":197,"line":212},2,[195,214,202],{"class":201},[195,216,217],{"class":205}," git",[195,219,220],{"class":205}," clone",[195,222,223],{"class":205}," https:\u002F\u002Fgithub.com\u002Fonlime\u002Fsendmail-wrapper.git",[195,225,226],{"class":205}," sendmail-wrapper\n",[12,228,229],{},"Set up system user for sendmail-wrapper:",[186,231,233],{"className":188,"code":232,"language":190,"meta":191,"style":191},"$ adduser --system --home \u002Fno\u002Fhome --no-create-home --uid 6000 --group --disabled-password --disabled-login sendmailwrapper\n$ adduser sendmailwrapper customers\n",[110,234,235,273],{"__ignoreMap":191},[195,236,237,239,242,246,249,252,255,258,261,264,267,270],{"class":197,"line":198},[195,238,202],{"class":201},[195,240,241],{"class":205}," adduser",[195,243,245],{"class":244},"sDkKp"," --system",[195,247,248],{"class":244}," --home",[195,250,251],{"class":205}," \u002Fno\u002Fhome",[195,253,254],{"class":244}," --no-create-home",[195,256,257],{"class":244}," --uid",[195,259,260],{"class":244}," 6000",[195,262,263],{"class":244}," --group",[195,265,266],{"class":244}," --disabled-password",[195,268,269],{"class":244}," --disabled-login",[195,271,272],{"class":205}," sendmailwrapper\n",[195,274,275,277,279,282],{"class":197,"line":212},[195,276,202],{"class":201},[195,278,241],{"class":205},[195,280,281],{"class":205}," sendmailwrapper",[195,283,284],{"class":205}," customers\n",[12,286,287,288,291],{},"The installer script ",[110,289,290],{},"install.sh"," will correctly set up permissions and symlink the wrapper scripts:",[186,293,295],{"className":188,"code":294,"language":190,"meta":191,"style":191},"$ cd \u002Fopt\u002Fsendmail-wrapper\u002F\n$ .\u002Finstall.sh\n",[110,296,297,306],{"__ignoreMap":191},[195,298,299,301,303],{"class":197,"line":198},[195,300,202],{"class":201},[195,302,206],{"class":205},[195,304,305],{"class":205}," \u002Fopt\u002Fsendmail-wrapper\u002F\n",[195,307,308,310],{"class":197,"line":212},[195,309,202],{"class":201},[195,311,312],{"class":205}," .\u002Finstall.sh\n",[12,314,315,316,319],{},"Add the following lines to your ",[110,317,318],{},"\u002Fetc\u002Fsudoers",":",[186,321,326],{"className":322,"code":324,"filename":318,"language":325,"meta":191},[323],"language-text","www-data        ALL = (sendmailwrapper) NOPASSWD:\u002Fusr\u002Fsbin\u002Fsendmail-throttle [0-9]*\n%customers      ALL = (sendmailwrapper) NOPASSWD:\u002Fusr\u002Fsbin\u002Fsendmail-throttle [0-9]*\n","text",[110,327,324],{"__ignoreMap":191},[12,329,330],{},"Add\u002Fmodify the following in your php.ini:",[186,332,337],{"className":333,"code":334,"filename":335,"language":336,"meta":191,"style":191},"language-ini shiki shiki-themes github-light-default github-light-default github-dark-default","sendmail_path = \u002Fusr\u002Fsbin\u002Fsendmail-wrapper\nauto_prepend_file = \u002Fvar\u002Fwww\u002Fshared\u002Fprepend.php\n","php.ini","ini",[110,338,339,349],{"__ignoreMap":191},[195,340,341,345],{"class":197,"line":198},[195,342,344],{"class":343},"s5nWI","sendmail_path",[195,346,348],{"class":347},"s_bOF"," = \u002Fusr\u002Fsbin\u002Fsendmail-wrapper\n",[195,350,351,354],{"class":197,"line":212},[195,352,353],{"class":343},"auto_prepend_file",[195,355,356],{"class":347}," = \u002Fvar\u002Fwww\u002Fshared\u002Fprepend.php\n",[12,358,359],{},"Import the sendmailwrapper database schema:",[186,361,363],{"className":188,"code":362,"language":190,"meta":191,"style":191},"$ mysql -u root -p \u003C schema\u002Fschema.mysql.sql\n",[110,364,365],{"__ignoreMap":191},[195,366,367,369,372,375,378,381,384],{"class":197,"line":198},[195,368,202],{"class":201},[195,370,371],{"class":205}," mysql",[195,373,374],{"class":244}," -u",[195,376,377],{"class":205}," root",[195,379,380],{"class":244}," -p",[195,382,383],{"class":343}," \u003C",[195,385,386],{"class":205}," schema\u002Fschema.mysql.sql\n",[12,388,389],{},"Create a MySQL user with the following permissions:",[186,391,395],{"className":392,"code":393,"language":394,"meta":191,"style":191},"language-sql shiki shiki-themes github-light-default github-light-default github-dark-default","GRANT USAGE ON *.* TO sendmailwrapper@'localhost' IDENTIFIED BY '********';\nGRANT SELECT, INSERT, UPDATE ON sendmailwrapper.throttle TO sendmailwrapper@'localhost';\nGRANT INSERT ON sendmailwrapper.messages TO sendmailwrapper@'localhost';\n","sql",[110,396,397,438,474],{"__ignoreMap":191},[195,398,399,402,405,408,411,414,417,420,423,426,429,432,435],{"class":197,"line":198},[195,400,401],{"class":343},"GRANT",[195,403,404],{"class":347}," USAGE ",[195,406,407],{"class":343},"ON",[195,409,410],{"class":343}," *",[195,412,413],{"class":347},".",[195,415,416],{"class":343},"*",[195,418,419],{"class":343}," TO",[195,421,422],{"class":347}," sendmailwrapper@",[195,424,425],{"class":205},"'localhost'",[195,427,428],{"class":347}," IDENTIFIED ",[195,430,431],{"class":343},"BY",[195,433,434],{"class":205}," '********'",[195,436,437],{"class":347},";\n",[195,439,440,442,445,448,451,453,456,459,461,463,466,468,470,472],{"class":197,"line":212},[195,441,401],{"class":343},[195,443,444],{"class":343}," SELECT",[195,446,447],{"class":347},", ",[195,449,450],{"class":343},"INSERT",[195,452,447],{"class":347},[195,454,455],{"class":343},"UPDATE",[195,457,458],{"class":343}," ON",[195,460,281],{"class":244},[195,462,413],{"class":347},[195,464,465],{"class":244},"throttle",[195,467,419],{"class":343},[195,469,422],{"class":347},[195,471,425],{"class":205},[195,473,437],{"class":347},[195,475,477,479,482,484,486,488,491,493,495,497],{"class":197,"line":476},3,[195,478,401],{"class":343},[195,480,481],{"class":343}," INSERT",[195,483,458],{"class":343},[195,485,281],{"class":244},[195,487,413],{"class":347},[195,489,490],{"class":244},"messages",[195,492,419],{"class":343},[195,494,422],{"class":347},[195,496,425],{"class":205},[195,498,437],{"class":347},[48,500,502],{"id":501},"configuration","Configuration",[12,504,505,506,319],{},"Default configuration can be found in ",[110,507,508],{},"config.ini",[186,510,512],{"className":333,"code":511,"filename":508,"language":336,"meta":191,"style":191},"[global]\ndefaultTZ = Europe\u002FZurich\nadminTo = hostmaster@example.com\nadminFrom = hostmaster@example.com\n\n[wrapper]\nsendmailCmd = \"\u002Fusr\u002Fsbin\u002Fsendmail -t -i\"\nthrottleCmd =\"sudo -u sendmailwrapper \u002Fusr\u002Fsbin\u002Fsendmail-throttle\"\nthrottleOn = true\ndefaultHost = \"example.com\"\nsyslogPrefix = sendmail-wrapper-php\nxHeaderPrefix = \"X-Example-\"\n\n[throttle]\ncountMax = 1000\nrcptMax = 1000\nsyslogPrefix = sendmail-throttle-php\nadminSubject = \"Sendmail limit exceeded\"\n\n[db]\ndsn = \"mysql:host=localhost;dbname=sendmailwrapper\"\nuser = sendmailwrapper\npass = \"xxxxxxxxxxxxxxxxxxxxx\"\n",[110,513,514,519,527,535,543,550,556,568,580,589,600,609,620,625,631,640,648,656,667,672,678,689,698],{"__ignoreMap":191},[195,515,516],{"class":197,"line":198},[195,517,518],{"class":201},"[global]\n",[195,520,521,524],{"class":197,"line":212},[195,522,523],{"class":343},"defaultTZ",[195,525,526],{"class":347}," = Europe\u002FZurich\n",[195,528,529,532],{"class":197,"line":476},[195,530,531],{"class":343},"adminTo",[195,533,534],{"class":347}," = hostmaster@example.com\n",[195,536,538,541],{"class":197,"line":537},4,[195,539,540],{"class":343},"adminFrom",[195,542,534],{"class":347},[195,544,546],{"class":197,"line":545},5,[195,547,549],{"emptyLinePlaceholder":548},true,"\n",[195,551,553],{"class":197,"line":552},6,[195,554,555],{"class":201},"[wrapper]\n",[195,557,559,562,565],{"class":197,"line":558},7,[195,560,561],{"class":343},"sendmailCmd",[195,563,564],{"class":347}," = ",[195,566,567],{"class":205},"\"\u002Fusr\u002Fsbin\u002Fsendmail -t -i\"\n",[195,569,571,574,577],{"class":197,"line":570},8,[195,572,573],{"class":343},"throttleCmd",[195,575,576],{"class":347}," =",[195,578,579],{"class":205},"\"sudo -u sendmailwrapper \u002Fusr\u002Fsbin\u002Fsendmail-throttle\"\n",[195,581,583,586],{"class":197,"line":582},9,[195,584,585],{"class":343},"throttleOn",[195,587,588],{"class":347}," = true\n",[195,590,592,595,597],{"class":197,"line":591},10,[195,593,594],{"class":343},"defaultHost",[195,596,564],{"class":347},[195,598,599],{"class":205},"\"example.com\"\n",[195,601,603,606],{"class":197,"line":602},11,[195,604,605],{"class":343},"syslogPrefix",[195,607,608],{"class":347}," = sendmail-wrapper-php\n",[195,610,612,615,617],{"class":197,"line":611},12,[195,613,614],{"class":343},"xHeaderPrefix",[195,616,564],{"class":347},[195,618,619],{"class":205},"\"X-Example-\"\n",[195,621,623],{"class":197,"line":622},13,[195,624,549],{"emptyLinePlaceholder":548},[195,626,628],{"class":197,"line":627},14,[195,629,630],{"class":201},"[throttle]\n",[195,632,634,637],{"class":197,"line":633},15,[195,635,636],{"class":343},"countMax",[195,638,639],{"class":347}," = 1000\n",[195,641,643,646],{"class":197,"line":642},16,[195,644,645],{"class":343},"rcptMax",[195,647,639],{"class":347},[195,649,651,653],{"class":197,"line":650},17,[195,652,605],{"class":343},[195,654,655],{"class":347}," = sendmail-throttle-php\n",[195,657,659,662,664],{"class":197,"line":658},18,[195,660,661],{"class":343},"adminSubject",[195,663,564],{"class":347},[195,665,666],{"class":205},"\"Sendmail limit exceeded\"\n",[195,668,670],{"class":197,"line":669},19,[195,671,549],{"emptyLinePlaceholder":548},[195,673,675],{"class":197,"line":674},20,[195,676,677],{"class":201},"[db]\n",[195,679,681,684,686],{"class":197,"line":680},21,[195,682,683],{"class":343},"dsn",[195,685,564],{"class":347},[195,687,688],{"class":205},"\"mysql:host=localhost;dbname=sendmailwrapper\"\n",[195,690,692,695],{"class":197,"line":691},22,[195,693,694],{"class":343},"user",[195,696,697],{"class":347}," = sendmailwrapper\n",[195,699,701,704,706],{"class":197,"line":700},23,[195,702,703],{"class":343},"pass",[195,705,564],{"class":347},[195,707,708],{"class":205},"\"xxxxxxxxxxxxxxxxxxxxx\"\n",[12,710,711,714,715,718],{},[39,712,713],{},"You should not change any of the above values."," Create your own ",[110,716,717],{},"config.local.ini"," instead to overwrite some values, e.g.:",[186,720,722],{"className":333,"code":721,"filename":717,"language":336,"meta":191,"style":191},"[global]\nadminTo = hostmaster@mydomain.com\nadminFrom = hostmaster@mydomain.com\n\n[wrapper]\ndefaultHost = \"mydomain.com\"\nxHeaderPrefix = \"X-MyCompany-\"\n",[110,723,724,728,735,741,745,749,758],{"__ignoreMap":191},[195,725,726],{"class":197,"line":198},[195,727,518],{"class":201},[195,729,730,732],{"class":197,"line":212},[195,731,531],{"class":343},[195,733,734],{"class":347}," = hostmaster@mydomain.com\n",[195,736,737,739],{"class":197,"line":476},[195,738,540],{"class":343},[195,740,734],{"class":347},[195,742,743],{"class":197,"line":537},[195,744,549],{"emptyLinePlaceholder":548},[195,746,747],{"class":197,"line":545},[195,748,555],{"class":201},[195,750,751,753,755],{"class":197,"line":552},[195,752,594],{"class":343},[195,754,564],{"class":347},[195,756,757],{"class":205},"\"mydomain.com\"\n",[195,759,760,762,764],{"class":197,"line":558},[195,761,614],{"class":343},[195,763,564],{"class":347},[195,765,766],{"class":205},"\"X-MyCompany-\"\n",[12,768,769,770,772],{},"Never put your database password in any of the above configuration files. Use another configuration file called ",[110,771,130],{}," instead, e.g.:",[186,774,776],{"className":333,"code":775,"filename":130,"language":336,"meta":191,"style":191},"[db]\npass = \"mySuper-SecurePassword\u002F826.4287+foo\"\n",[110,777,778,782],{"__ignoreMap":191},[195,779,780],{"class":197,"line":198},[195,781,677],{"class":201},[195,783,784,786,788],{"class":197,"line":212},[195,785,703],{"class":343},[195,787,564],{"class":347},[195,789,790],{"class":205},"\"mySuper-SecurePassword\u002F826.4287+foo\"\n",[12,792,793],{},"Sample syslog output:",[186,795,798],{"className":796,"code":797,"language":325},[323],"Mar 24 11:50:21 web1 php: sendmail-throttle-php: user=web4111 (4111:4111), rcpts=1, status=0, command=\u002Fusr\u002Fsbin\u002Fsendmail-throttle 1, count_max=1000, count_cur=3, count_tot=9, rcpt_max=1000, rcpt_cur=3, rcpt_tot=9\nMar 24 11:50:21 web1 php: sendmail-wrapper-php: uid=web4111#012, msgid=20140324115021.7xp40a@example.com, from=foo@example.com, to=\"bar@example.com\", cc=\"\", bcc=\"\", subject=\"Just testing\", site=www.example.com, client=8.8.1.1, script=\u002Fvar\u002Fwww\u002Fexample\u002Fpublic_html\u002Fwww\u002Findex.php, throttleStatus=0\n",[110,799,797],{"__ignoreMap":191},[12,801,802,803,319],{},"MySQL database ",[110,804,805],{},"sendmailwrapper",[12,807,808,809,811,812,814],{},"You may access both MySQL tables directly: ",[110,810,465],{}," to tweak each system user’s limits (they will be persistent! Only counters are gettingn reset every day), ",[110,813,490],{}," for detailed message header reviewing or for statistical purposes.",[816,817,818],"style",{},"html pre.shiki code .sQJ0q, html code.shiki .sQJ0q{--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657}html pre.shiki code .s-BGO, html code.shiki .s-BGO{--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sDkKp, html code.shiki .sDkKp{--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF}html pre.shiki code .s5nWI, html code.shiki .s5nWI{--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72}html pre.shiki code .s_bOF, html code.shiki .s_bOF{--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3}",{"title":191,"searchDepth":212,"depth":476,"links":820},[821,822,823,824,825],{"id":50,"depth":212,"text":51},{"id":104,"depth":212,"text":105},{"id":134,"depth":212,"text":135},{"id":172,"depth":212,"text":173},{"id":501,"depth":212,"text":502},[827],{"link":43,"desc":45},"2014-03-24","A powerful sendmail wrapper to log and throttle emails sent by PHP.",{"type":9,"value":831},[832,840],[12,833,14,834,22,837,28],{},[16,835,21],{"href":18,"rel":836},[20],[16,838,27],{"href":25,"rel":839},[20],[12,841,31],{},"md","\u002Fimages\u002Fcovers\u002Fsendmail-wrapper.png",{},"\u002Farticles\u002F20140324-php-sendmail-wrapper",false,null,{"title":6,"description":829},"articles\u002F20140324-php-sendmail-wrapper",[851,852,853,854,855],"sysadmin","linux","php","email","security","t21mTMhdl_lXfvyITmfcuS5rjm9AX8QC2zoBEa96T-E",[858,863],{"title":859,"path":860,"stem":861,"createdAt":862,"children":-1},"Webapp-Scanner","\u002Farticles\u002F20140323-webapp-scanner","articles\u002F20140323-webapp-scanner","2014-03-23",{"title":864,"path":865,"stem":866,"createdAt":867,"children":-1},"Setting up PHP & MySQL on OS X Yosemite","\u002Farticles\u002F20141020-osx-yosemite-php-mysql","articles\u002F20141020-osx-yosemite-php-mysql","2014-10-20",1794961391554]