{"id":4316,"date":"2022-06-28T10:53:19","date_gmt":"2022-06-28T09:53:19","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4316"},"modified":"2022-08-05T11:41:38","modified_gmt":"2022-08-05T10:41:38","slug":"sendmail","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/servers-hosting\/ubuntu\/php-ubuntu\/sendmail","title":{"rendered":"sendmail"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">sendmail issues<\/h4>\n\n\n\n<p><em>Out of the box sendmail is a very simple MTA and significantly out of date.<br>People often suggest using Exim instead, as it&#8217;s much simpler to configure and you can use smart hosts for relaying mail.<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Is sendmail installed?<\/h4>\n\n\n\n<p>Can you change directory to this?:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/sendmail<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Installing sendmail<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install sendmail<\/code><\/pre>\n\n\n\n<p>Run Sendmail&#8217;s config and answer &#8216;Y&#8217; to everything:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sendmailconfig<\/code><\/pre>\n\n\n\n<p>Restart Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service apache2 restart<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configuring PHP to use sendmail<\/h4>\n\n\n\n<p>Open php.ini to editing<\/p>\n\n\n\n<p>Ensure these lines are set:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&#91;mail function]\n; For Win32 only.\n; http:\/\/php.net\/smtp\nSMTP = localhost\n; http:\/\/php.net\/smtp-port\nsmtp_port = 25\n\n\n\n; For Unix only.  You may supply arguments as well (default: \"sendmail -t -i\").\n; http:\/\/php.net\/sendmail-path\nsendmail_path = \/usr\/bin\/sendmail -t -i\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sendmail issues Out of the box sendmail is a very simple MTA and significantly out of date.People often suggest using Exim instead, as it&#8217;s much simpler to configure and you can use smart hosts for relaying mail. Is sendmail installed? Can you change directory to this?: Installing sendmail Run Sendmail&#8217;s config and answer &#8216;Y&#8217; to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344],"tags":[],"class_list":["post-4316","post","type-post","status-publish","format-standard","hentry","category-php-ubuntu"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4316"}],"version-history":[{"count":4,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4316\/revisions"}],"predecessor-version":[{"id":4376,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4316\/revisions\/4376"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}