{"id":321,"date":"2011-11-21T00:05:10","date_gmt":"2011-11-21T00:05:10","guid":{"rendered":"http:\/\/www.webputzer.com\/?p=321"},"modified":"2020-11-05T00:39:55","modified_gmt":"2020-11-05T00:39:55","slug":"smtp-routing-a-dynamic-ip-solution","status":"publish","type":"post","link":"http:\/\/www.webputzer.com\/?p=321","title":{"rendered":"SMTP routing &#8211; a dynamic IP solution"},"content":{"rendered":"<p><span style=\"font-size=22\":><b>SMTProutes = SMTP connectors<\/b><\/span><\/p>\n<p>In my case it would be unlikely that I&#8217;d be running Exchange, for any length of time, on a dynamic IP.  But, for testing, that&#8217;s what I&#8217;m doing at the moment (from a computer at work).  Anyway, outgoing mail had problems on a dynamic IP &#8211; just like Linux &#8211; if I didn&#8217;t route outgoing mail through Comcast&#8217;s SMTP server.  Whereas there&#8217;s no \/var\/qmail\/smtproutes file on Windows &#8211; of course &#8211; there&#8217;s an identical function.  Just open the Exchange manager and add an smtp connector &#8211; in the case of Comcast, it can be anonymous (some ISPs require authentication &#8211; Comcast does not). Actually, <b>I found a tutorial on the net where the guy was actually using Comcast and he said that you had to use your Comcast username and password<\/b>.  Well&#8230;&#8230;I didn&#8217;t (I chose the &#8220;anonymous&#8221; option) and it works perfectly. <strong> This is pretty simple to figure out&#8230;..hence, no further explantation.  <\/strong><\/p>\n<p><strong>Uhm&#8230;some IMPORTANT further explanation:<\/strong> Well&#8230;I thought it was easy to figure out and I am dead tired and will update this later.  Suffice it to say, you need to enter your ISPs smtp server IP (eg. ping smtp.comcast.net) and NOT just &#8211; for instance &#8211; &#8220;smtp.comcast.net&#8221;. <strong> Let me clarify: this is the only way it worked for me.<\/strong> I&#8217;d actually done the latter, just guessing, and later seen various how-tos on the net which <strong>confirmed this was how it should work &#8211; by that I mean, again, what I found on the net said you should use something like &#8220;smtp.comcast.net&#8221;<\/strong>. Oddly, it worked this way for about 2 days, and, then died &#8211; I&#8217;ll never know why.  <\/p>\n<p>I fooled with this for the better part of a day and then, I considered what I normally do in Linux using a dynamic IP (editing my &#8220;\/var\/qmail\/smtproutes&#8221; file with an IP number). <strong>On a complete hunch<\/strong> I tried inserting the IP number of Comcast&#8217;s smtp server in the little GUI instead of &#8220;smtp.comcast.net&#8221;.  Windows prompted me to put the number in brackets, but, it worked great!  In the course of all of this jerking around I did two other things: I added an SPF record which, based upon my limited experience, I would recommend and I edited the name of my default SMTP server. The latter was a huge pain in the ass because attempting to change the SMTP server name by following instructions I found on the net failed to work. <\/p>\n<p>Here&#8217;s what I ended up with (AND: as I&#8217;ve indicated, it appears that you should also add an SPF record with your DNS host).  I also changed the name of my SMTP virtual server &#8211; more about that tomorrow. Here&#8217;s a pic of the routing &#8211;  <a href=\"https:\/\/www.affordable-papers.net\/\">note<\/a>  the brackets:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2011\/11\/comcast.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SMTProutes = SMTP connectors In my case it would be unlikely that I&#8217;d be running Exchange, for any length of time, on a dynamic IP. But, for testing, that&#8217;s what I&#8217;m doing at the moment (from a computer at work). Anyway, outgoing mail had problems on a dynamic IP &#8211; just like Linux &#8211; if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321"}],"version-history":[{"count":0,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}