{"id":944,"date":"2017-10-23T22:47:47","date_gmt":"2017-10-23T22:47:47","guid":{"rendered":"https:\/\/max-drake.cc\/?p=944"},"modified":"2020-07-10T21:02:47","modified_gmt":"2020-07-10T21:02:47","slug":"openmaint-email-part-3-server-sort-working","status":"publish","type":"post","link":"https:\/\/max-drake.cc\/?p=944","title":{"rendered":"OpenMAINT Email Part 3- On VPS second try"},"content":{"rendered":"<p>Following on from the localhost setup and the post at the beginning mentioning the issue of working on localhost but not on Server that tends to hint that the issue is with the windows server rather than the openMAINT email setup.<\/p>\n<p>From localhost setup I found that SSL was required. So that rather negated my loose setup in Part 1 where I did not have SSL on the emails.<\/p>\n<p>So that was possibly the reason why none of my emails got to where they were going.<\/p>\n<p>I recycled the cr8ive.org email addresses which does have SSL onto my windows VPS and was still having no success. Then I came across a comment by someone who was having issues with localhost\/VPS with some other programme and they mentioned<strong><span style=\"color: #ff0000;\"> firewalls<\/span>.<\/strong><\/p>\n<p>That would explain emails not going through. Especially as the cr8ive.org email addresses worked fine on the localhost.<\/p>\n<p>So I created some inbound and outbound rules on the VPS to allow the imap&nbsp; inbound port and the outbound ports to be open in the firewall.<\/p>\n<p>So from our setup on localhost:<img decoding=\"async\" class=\"alignnone size-full wp-image-909 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e30-1.jpg\" alt=\"\" width=\"1150\" height=\"1060\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e30-1.jpg 1150w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e30-1-300x277.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e30-1-768x708.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e30-1-1024x944.jpg 1024w\" data-sizes=\"(max-width: 1150px) 100vw, 1150px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1150px; --smush-placeholder-aspect-ratio: 1150\/1060;\" \/><\/p>\n<p>We need incoming port 993 open and outgoing port 465 open .<\/p>\n<p>So go to control panel\/ System &amp; Security\/ Windows Firewall\/ Advanced Settings<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-951 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70.jpg\" alt=\"\" width=\"1282\" height=\"960\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70.jpg 1282w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70-300x225.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70-768x575.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70-1024x767.jpg 1024w\" data-sizes=\"(max-width: 1282px) 100vw, 1282px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1282px; --smush-placeholder-aspect-ratio: 1282\/960;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-950 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e71.jpg\" alt=\"\" width=\"1285\" height=\"969\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e71.jpg 1285w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e71-300x226.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e71-768x579.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e71-1024x772.jpg 1024w\" data-sizes=\"(max-width: 1285px) 100vw, 1285px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1285px; --smush-placeholder-aspect-ratio: 1285\/969;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-949 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e72.jpg\" alt=\"\" width=\"1303\" height=\"968\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e72.jpg 1303w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e72-300x223.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e72-768x571.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e72-1024x761.jpg 1024w\" data-sizes=\"(max-width: 1303px) 100vw, 1303px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1303px; --smush-placeholder-aspect-ratio: 1303\/968;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-948 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e73.jpg\" alt=\"\" width=\"1298\" height=\"971\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e73.jpg 1298w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e73-300x224.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e73-768x575.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e73-1024x766.jpg 1024w\" data-sizes=\"(max-width: 1298px) 100vw, 1298px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1298px; --smush-placeholder-aspect-ratio: 1298\/971;\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-947 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e74.jpg\" alt=\"\" width=\"1288\" height=\"968\" data-srcset=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e74.jpg 1288w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e74-300x225.jpg 300w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e74-768x577.jpg 768w, https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e74-1024x770.jpg 1024w\" data-sizes=\"(max-width: 1288px) 100vw, 1288px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1288px; --smush-placeholder-aspect-ratio: 1288\/968;\" \/><\/p>\n<p>And you would do the same exercise for outbound port 465.<\/p>\n<p>So if you follow the setup of&nbsp; <a href=\"https:\/\/max-drake.cc\/2017\/10\/23\/openmaint-email-localhost-part-2\/\"><strong>OpenMAINT Email Part 2 -Working on Localhost<\/strong><\/a> then also allow&nbsp; for the port access through firewall for your incoming and outgoing email ports then you should have the email running on the server.<\/p>\n<p>Helpdesk page below on VPS server showing MRs that have created emails sent to guest.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-953 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/em02.gif\" alt=\"\" width=\"1915\" height=\"514\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1915px; --smush-placeholder-aspect-ratio: 1915\/514;\"><\/p>\n<p>Thunderbird email showing emails received&nbsp; by max@cr8ive.org from Helpdesk<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-952 lazyload\" data-src=\"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/em01.gif\" alt=\"\" width=\"1763\" height=\"552\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1763px; --smush-placeholder-aspect-ratio: 1763\/552;\"><\/p>\n<h3>Conclusion<\/h3>\n<p>As you can see, emails have gone through to Thunderbird from the VPS instance of openMAINT, but some haven&#8217;t. I will re-test on the demo instance running on AWS to test another VPS instance.<\/p>\n<p>I did shut tomcat down and also rebooted the VPS and 2 other emails came through, so maybe there is still a sticking point somewhere. The next morning all the other emails came through. Although there is an hour checking? process in openMAINT I can&#8217;t quite figure where the bottleneck\/delay is taking place.<\/p>\n<p>The other thing, I looked at setting up SSL for the <strong>Mail Enable<\/strong> Server, but it looks as if this is only with the pro (paid) version. So there is <a href=\"https:\/\/www.hmailserver.com\/\">hMAILServer<\/a> that is open source and seems to do SSL stuff, so I will need to uninstall Mail Enable to free up the email ports and install hMAILServer and see how that goes. Maybe another blog in that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following on from the localhost setup and the post at the beginning mentioning the issue of working on localhost but not on Server that tends to hint that the issue is with the windows server rather than the openMAINT email setup. From localhost setup I found that SSL was required. So that rather negated my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":951,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[16,112,113,142,53,54,114,141],"class_list":["post-944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openmaint-assettiger","category-openmaint-setup","tag-amfm-data-management","tag-cafm","tag-cmms","tag-email","tag-facility-management","tag-facility-operations","tag-iwms","tag-openmaint-email"],"featured_image_src":"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70.jpg","featured_image_src_square":"https:\/\/max-drake.cc\/wp-content\/uploads\/2017\/10\/e70.jpg","author_info":{"display_name":"Max Drake","author_link":"https:\/\/max-drake.cc\/?author=1"},"_links":{"self":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=944"}],"version-history":[{"count":0,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/posts\/944\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=\/wp\/v2\/media\/951"}],"wp:attachment":[{"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/max-drake.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}