{"id":238,"date":"2013-06-17T15:32:25","date_gmt":"2013-06-17T19:32:25","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=238"},"modified":"2013-06-17T15:32:25","modified_gmt":"2013-06-17T19:32:25","slug":"change-the-envelope-from-header-for-apache-php","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2013\/06\/17\/change-the-envelope-from-header-for-apache-php\/","title":{"rendered":"Change the Envelope From Header for apache, php"},"content":{"rendered":"<p>On an Ubuntu installation, the php sendmail function will send out email as the apache user www-data@servername.domain. This can make the email flag as spam on some mail servers. To get around this edit your php.ini and restart apache.<\/p>\n<p>Edit the php.ini<\/p>\n<pre>\r\nsudo vi \/etc\/php5\/apache2\/php.ini\r\n<\/pre>\n<p>Edit the following string:<\/p>\n<pre>\r\nsendmail_path = '\/usr\/sbin\/sendmail -t -i -fno-reply@yourdomain.com -Fno-reply'\r\n<\/pre>\n<p>Now restart apache:<\/p>\n<pre>\r\nsudo service apache2 restart\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On an Ubuntu installation, the php sendmail function will send out email as the apache user www-data@servername.domain. This can make the email flag as spam on some mail servers. To get around this edit your php.ini and restart apache. Edit the php.ini sudo vi \/etc\/php5\/apache2\/php.ini Edit the following string: sendmail_path = &#8216;\/usr\/sbin\/sendmail -t -i -fno-reply@yourdomain.com [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[16,104,60],"tags":[27,105,135],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-linux","category-php","category-ubuntu-linux","tag-apache2-2","tag-php-2","tag-spam"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-3Q","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":1,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}