{"id":14571,"date":"2014-11-18T13:39:23","date_gmt":"2014-11-18T19:39:23","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=14571"},"modified":"2014-11-18T13:39:23","modified_gmt":"2014-11-18T19:39:23","slug":"sendmail-problems","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=14571","title":{"rendered":"Sendmail Problems"},"content":{"rendered":"<blockquote><p>You can use the <strong>mailq<\/strong> command <strong>sendmail -bp<\/strong> command to display a summary of the mail messages queued for future delivery. Type the following command:<br \/>\n<code># mailq<\/code><\/p><\/blockquote>\n<p>via <a href=\"http:\/\/www.cyberciti.biz\/faq\/linux-unix-bsd-clear-sendmail-queue\/\">Sendmail: Clear \/ Delete \/ Flush Mail Queue<\/a>.<\/p>\n<p>A service in a local server started to send email through my main server back to the originating server causing many errors in \/var\/log\/maillog of my main server.\u00a0 Each attempt added a message to its message queue that was blocked due to a problem with sendmail on the originating server.\u00a0 The email being sent was sent automatically by a VOIP service I was testing on that originating server (not good).<\/p>\n<blockquote><p>You can cd to \/var\/spool\/mqueue and delete all files if you want to get rid of all messages in the queue:<br \/>\n<code># cd \/var\/spool\/mqueue\/<br \/>\n# ls<br \/>\n# rm *<\/code><\/p><\/blockquote>\n<p>The above sequence cleared the queue so sendmail stopped trying to send those messages to a broken server at the destination.<\/p>\n<h2>Sendmail Problem on Originating Server<\/h2>\n<p>Sendmail wouldn&#8217;t start.\u00a0 OS Fedora 19 so it&#8217;s running that new systemd for service startup.\u00a0\u00a0 Here are pertinent error messages in\u00a0 \/var\/log\/messages:<\/p>\n<pre>Nov 17 21:23:39 ana systemd[1]: Starting Sendmail Mail Transport Agent...\r\nNov 17 21:23:39 ana sendmail[1555]: -bd is not supported by sSMTP\r\nNov 17 21:23:39 ana systemd[1]: PID file \/run\/sendmail.pid not readable (yet?) after start.\r\nNov 17 21:23:39 ana systemd[1]: Failed to start Sendmail Mail Transport Agent.\r\nNov 17 21:23:39 ana systemd[1]: Dependency failed for Sendmail Mail Transport Client.\r\nNov 17 21:23:39 ana systemd[1]: Unit sendmail.service entered failed state.\r\n<\/pre>\n<p>I did a lot of googling to find someone in a similar situation to no avail.\u00a0 I then looked into sSMTP and why that was being called\u00a0 instead of good old sendmail.\u00a0 After<\/p>\n<pre>#yum erase sSMTP<\/pre>\n<p>thus purging that service entirely from the system,\u00a0 sendmail starts in this Fedora 19 VM and works (knock on wood).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use the mailq command sendmail -bp command to display a summary of the mail messages queued for future delivery. Type the following command: # mailq via Sendmail: Clear \/ Delete \/ Flush Mail Queue. A service in a &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=14571\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[721,72,1240,1324],"class_list":["post-14571","post","type-post","status-publish","format-standard","hentry","category-problems","tag-linux-admin","tag-problem-solved","tag-sendmail","tag-systemd"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/14571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14571"}],"version-history":[{"count":2,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/14571\/revisions"}],"predecessor-version":[{"id":14573,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/14571\/revisions\/14573"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14571"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}