{"id":833,"date":"2013-04-16T11:03:13","date_gmt":"2013-04-16T10:03:13","guid":{"rendered":"http:\/\/cyber-cottage.co.uk\/en\/?p=833"},"modified":"2013-04-16T11:03:13","modified_gmt":"2013-04-16T10:03:13","slug":"flushing-your-sendmail-queue","status":"publish","type":"post","link":"https:\/\/www.cyber-cottage.co.uk\/?p=833","title":{"rendered":"Flushing your sendmail queue."},"content":{"rendered":"<p>Whenever sendmail has to deliver mails to other hosts which cannot be reached at that time, the messages are kept in the queue and are marked as \u201cDeferred: Connection timed out\u201d. Although the other hosts could be reached again and you want to tell sendmail to flush the mail queue, the command<\/p>\n<p><tt>sendmail -q -v<\/tt><\/p>\n<p>does not really try to reconnect to these hosts and still assumes that the connection timed out. The reason is that the hoststatus is cached, per default for a period of 30 minutes. Using<\/p>\n<p><tt>sendmail -OTimeout.hoststatus=0m -q -v<\/tt><\/p>\n<p>you can re-run the mail queue and force sendmail to reconnect to the hosts. You may want to define an alias for that, say, \u2018sendmail-flush-timeouts\u2019.<\/p>\n<p>You can set further options in\u00a0<tt>\/etc\/sendmail.cf<\/tt>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever sendmail has to deliver mails to other hosts which cannot be reached at that time, the messages are kept in the queue and are marked as \u201cDeferred: Connection timed out\u201d. Although the other hosts could be reached again and you want to tell sendmail to flush the mail queue, the command sendmail -q -v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":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}},"categories":[11,7],"tags":[23,35,51,73,100],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-knowledge","category-technical","tag-asterisk","tag-elastix","tag-linux","tag-support","tag-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5daZy-dr","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=833"}],"version-history":[{"count":0,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}