<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[#SpeakForMe - Medium]]></title>
        <description><![CDATA[Behind the scenes from the #SpeakForMe campaign - Medium]]></description>
        <link>https://medium.com/speakforme?source=rss----525539c383e8---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>#SpeakForMe - Medium</title>
            <link>https://medium.com/speakforme?source=rss----525539c383e8---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:43:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/speakforme" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Verifying email addresses by the hundreds]]></title>
            <link>https://medium.com/speakforme/verifying-email-addresses-by-the-hundreds-5bcdf9acea6d?source=rss----525539c383e8---4</link>
            <guid isPermaLink="false">https://medium.com/p/5bcdf9acea6d</guid>
            <category><![CDATA[speakforme]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[aadhaar]]></category>
            <dc:creator><![CDATA[Kiran Jonnalagadda]]></dc:creator>
            <pubDate>Sat, 16 Dec 2017 15:49:58 GMT</pubDate>
            <atom:updated>2017-12-16T18:36:32.478Z</atom:updated>
            <content:encoded><![CDATA[<h4>A little technical hack that saved hours of effort</h4><p>In 2015 with the #SaveTheInternet campaign, we offered a “Mail Your MP” tool that made it easy to identify your Member of Parliament and send them an email. We had two problems building that tool:</p><ol><li>Contact information for MPs was not easy to find.</li><li>Found contact information was often outdated.</li></ol><p>The second in particular was something we couldn’t solve <em>before</em> launching the campaign. We could only amend our data when participants reported that their MP’s email address bounced. To handle this loop, we had a submission form and volunteers to process it.</p><p>The problem, in a nutshell, is that there is only one way to find out if an email address is working: you have to send it an email.</p><ol><li>If it bounces, you know for sure that it is not working. This is a technical factor.</li><li>If it does not bounce, it could still be an abandoned mailbox. The recipient may not be reading email delivered there. This is a human factor. A full mailbox will start bouncing, making it identifiable as a technical factor.</li></ol><p>This time with #SpeakForMe, we wanted to do something better. Could we at least automate the technical factor? Since 2015 I’ve had occasions to think about how the Simple Mail Transport Protocol (SMTP) underlying the worldwide email network works. <a href="https://github.com/hasgeek/lastuser/issues/178">Obsolete email addresses are a security risk</a> in a project I manage at my day job.</p><h4>Technical background on SMTP</h4><p>SMTP is an ancient protocol, predating even the web and its HTTP protocol. SMTP was written for an era when everyone on the Internet was assumed to be a good person. When a sender’s email server delivers email to a recipient’s email server, the conversation looks like this (using Gmail; bold lines are from the sender, and yes, this happens in plain text):</p><pre>$ <strong>telnet gmail-smtp-in.l.google.com 25</strong><br>Trying 173.194.66.26...<br>Connected to gmail-smtp-in.l.google.com.<br>Escape character is &#39;^]&#39;.<br>————————————————————————————————————————————————————————————————————220 mx.google.com ESMTP r27si8425622qtj.52 - gsmtp<br><strong>EHLO demo.speakforme.in</strong><br>250-mx.google.com at your service, [xxx.xxx.xxx.xxx]<br>250-SIZE 157286400<br>250-8BITMIME<br>250-STARTTLS<br>250-ENHANCEDSTATUSCODES<br>250-PIPELINING<br>250-CHUNKING<br>250 SMTPUTF8<br><strong>MAIL FROM:&lt;info@speakforme.in&gt;</strong><br>250 2.1.0 OK r27si8425622qtj.52 - gsmtp<br><strong>RCPT TO:&lt;jackerhack@gmail.com&gt;</strong><br>250 2.1.5 OK r27si8425622qtj.52 - gsmtp<br><strong>DATA</strong><br>354  Go ahead r27si8425622qtj.52 - gsmtp<br><strong>From: SpeakForMe &lt;info@speakforme.in&gt;<br>To: Kiran Jonnalagadda &lt;jackerhack@gmail.com&gt;<br>Date: Sat, 16 Dec 2017 10:41:00 +0530<br>Subject: Test email</strong></pre><pre><strong>This is a test email to demonstrate how SMTP works.</strong></pre><pre><strong>.<br></strong>421-4.7.0 [35.153.240.239      15] Our system has detected that this message is<br>421-4.7.0 suspicious due to the very low reputation of the sending IP address.<br>421-4.7.0 To protect our users from spam, mail sent from your IP address has<br>421-4.7.0 been temporarily rate limited. Please visit<br>421 4.7.0  https://support.google.com/mail/answer/188131 for more information. r27si8425622qtj.52 - gsmtp<br>Connection closed by foreign host.</pre><p>Things of note here:</p><ol><li>The modern protocol is Extended SMTP (ESMTP), which is backward compatible. SMTP conversations began with a HELO, while ESMTP uses EHLO. SMTP had three digit status codes (220, 250, 354 and 421 above) while ESMTP provides a longer code with additional detail (2.1.0, 2.1.5 and 4.7.0 here) that the sender can read to understand how to respond.</li><li>2xx status codes imply everything is okay. 4xx codes imply temporary failures such as a full mailbox. In SMTP parlance, this is called a “soft fail” or a “soft bounce”. 5xx codes imply permanent failures, like an unknown mailbox. This is a “hard fail” or a “hard bounce”.</li><li>There was no authentication of the sender. I opened a connection from my computer and claimed to be sending from info@speakforme.in. No login and password required. This is a legacy from the early internet, when goodwill was assumed, and is why spam is such a huge problem in email.</li><li>The From and To addresses appear twice, first as part of the SMTP conversation, second in theDATA section. The first part is called the “envelope header” and the second is the “email header”. What you see in your email client is only the second. BCC is when you put a recipient in the envelope but skip them in the email header.</li><li>Gmail refused to accept this email with SMTP code 421, ESMTP 4.7.0. <a href="https://support.google.com/a/answer/3726730?hl=en">From their documentation</a>, this means: “Our system has detected an unusual rate of unsolicited mail originating from your IP address. To protect our users from spam, mail sent from your IP address has been temporarily blocked.”</li></ol><p>Summary: in SMTP, the sender is not required to authenticate themselves, but the recipient will make a guess about whether it wants to accept email from you. This is similar to how credit cards work: anyone who has your card details can take your money, and the only way a bank can tell the difference between a legitimate transaction and fraud is by making an <em>informed guess</em>.</p><h4>Verifying email addresses</h4><p>How does this detail help with verifying an email address? Notice these two lines from the exchange:</p><pre><strong>RCPT TO:&lt;jackerhack@gmail.com&gt;</strong><br>250 2.1.5 OK r27si8425622qtj.52 - gsmtp</pre><p>We supplied an email address, and Gmail accepted it. What if we give it an obviously incorrect address?</p><pre><strong>RCPT TO:&lt;example@gmail.com&gt;</strong><br>550-5.1.1 The email account that you tried to reach does not exist. Please try<br>550-5.1.1 double-checking the recipient&#39;s email address for typos or<br>550-5.1.1 unnecessary spaces. Learn more at<br>550 5.1.1  <a href="https://support.google.com/mail/?p=NoSuchUser">https://support.google.com/mail/?p=NoSuchUser</a> q2si2682540qki.196 - gsmtp</pre><p>Now we’re on to something. Gmail is telling us whether the email address exists <em>before</em> it makes that guess on whether it wants to receive an email from us. We could drop the connection right there, armed with this confirmation, <em>without sending the email. </em>If a mailbox is full, Gmail tells you that too:</p><pre>552-5.2.2 The email account that you tried to reach is over quota. Please direct<br>552-5.2.2 the recipient to<br>552 5.2.2  <a href="https://support.google.com/mail/?p=OverQuotaPerm">https://support.google.com/mail/?p=OverQuotaPerm</a> q2si2682540qki.196 - gsmtp</pre><p>Other email providers like Microsoft Outlook do a background check when you name the recipient, refusing to answer if they don’t like you. Even others do it before accepting the connection at all. We found that if we did the asking from a server that the recipient server had no reason to distrust, we got reasonably reliable answers.</p><p>For those familiar with SMTP, note “reasonably”. SMTP has complex rules, so an acceptance or rejection is probabilistic rather than deterministic. But good enough for our purposes, as we had only a few hundred and could cross-check by hand.</p><p>Armed with this lucky insight, <a href="https://github.com/jace/mxsniff">I wrote a tool last week to automate the verification</a>. (It’s an added “probe” feature on the mxsniff tool I wrote for something related, so the version you need is on GitHub and not yet on PyPI.)</p><p>Using mxsniff has saved us literally hours of effort correcting our data. It’s one of many such technical innovations that helped us launch a nationwide campaign in less than a week since conceiving it.</p><p>mxsniff is open source, so anyone can use it. Even UIDAI could use it to clean Aadhaar’s database of the many invalid email addresses it will have collected over the years.</p><p>As an open source project, it is also open to contributions from others. The probe feature, for instance, is the product of an evening’s efforts, and is inefficient when checking multiple addresses at the same domain since it makes a new connection for each, instead of reusing the connection. <em>Anybody</em> with sufficient technical competence can make this improvement and receive the benefit for themselves, and share it with others too.</p><p>We wish UIDAI had such an open culture of engagement, instead of forcing us to petition our MPs to intervene on our behalf.</p><p>Parliament offers MPs mailboxes with only 50 MB of storage, and many MPs don’t bother to maintain them, causing them to fill up and bounce. When mxsniff identified these, we went looking for other email addresses from the MPs’ public pages. This led to one memorable incident with an MP irritated at receiving email on her working email address.</p><h3>#SpeakForMe on Twitter</h3><p>An MP&#39;s office called us to request sending their email to an address that is known to be bouncing. We&#39;ve declined. MPs are answerable to their constituents. #SpeakForMe</p><h3>#SpeakForMe on Twitter</h3><p>While we cannot know if your email to an MP bounced, our volunteers do our own independent tests. We&#39;ll accept an email change if we can confirm it&#39;s working. About 20 MPs have no known working email addresses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bcdf9acea6d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/speakforme/verifying-email-addresses-by-the-hundreds-5bcdf9acea6d">Verifying email addresses by the hundreds</a> was originally published in <a href="https://medium.com/speakforme">#SpeakForMe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Tech Tidbits] Jekyll + Vue, and working around the ‘delimiters’ problem]]></title>
            <link>https://medium.com/speakforme/tech-tidbits-jekyll-vue-and-working-around-the-delimiters-problem-93e69814ec47?source=rss----525539c383e8---4</link>
            <guid isPermaLink="false">https://medium.com/p/93e69814ec47</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[jekyll]]></category>
            <category><![CDATA[speakforme]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[aadhaar]]></category>
            <dc:creator><![CDATA[Arnav Gupta]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 19:08:31 GMT</pubDate>
            <atom:updated>2018-06-19T23:46:46.905Z</atom:updated>
            <content:encoded><![CDATA[<p>At <a href="https://speakforme.in">https://speakforme.in</a> (Source:<a href="https://github.com/speakforme/frontend"> https://github.com/speakforme/frontend</a> ) we use an approach that is probably not very common — we generate a static site using Jekyll. And that Jekyll site fires up a Vue.JS app when loaded in a browser.</p><p>Ideally, if you are going down such a path, you should probably use nuxt.js and generate a static site with a very Vue-ey codebase. (In case you don’t know, nuxt is a server-side-rendering and/or static-site-generating framework built on top of Vuejs.)</p><p><strong>BUT, </strong>we had 2 days to build #SpeakForMe and <a href="https://medium.com/u/1a0ce6c7aff0">Abhay Rana (Nemo)</a> and yours truly <a href="https://medium.com/u/d2d266a9e701">(Arnav Gupta</a>) were working well past midnight, against the clock, with not a very synchronized communication channel on Slack. So it started off as Jekyll site, like most quickly-launched websites are (because Github supports hosting Jekyll sites out of the box).</p><p>A few hours down the line, we figured, jQuery -ing our way into multiple email templates, and i18n-ed UI and i18n-ed email drafts would turn this codebase into a huge mess, so Nemo decided to dump the jQuery code and use Vuejs.</p><p>Problem was he was using Vuejs for the first time, and I do have some Vue experience, but haven’t generated static sites with it. Although the learning curve is not too steep, learning nuxt.js was lower on the priority tree than actually getting the campaign up and running. So we kept Jekyll in place to generate the basic page skeletons, and <strong><em>more importantly </em></strong>parsing the various data sources (some yml, some csv, some json). Jekyll is very good at parsing data sources and injecting then into HTML files.</p><p>I think that was a much longer introduction than I ever intended to write, but coming down to the problem, Jekyll uses Liquid syntax, which means data goes into templates somewhat like this</p><pre>&lt;html&gt;<br>Some static data<br>This is some dynamic person&#39;s name: {{ persion. name}}, loaded from maybe a json.<br>His age is {{ person.age }}<br>&lt;/html&gt;</pre><p>Now that is very similar to the Handelbar-y templates that Vuejs uses.</p><p>So the problem was, when we write Vue templates into our HTML file, they get parsed by Jekyll while generating the static site.</p><p>In comes the solution, that the Vuejs team had been so thoughtful to keep a provision for, the delimiters key in a Vue component.</p><p>Usually you declare a Vue component somewhat like this —</p><pre>Vue.extend({<br>    data: {<br>        a: 10,<br>        b: &#39;wow&#39;<br>    },<br>    methods: {<br>        doSometing: function () {<br>            console.log(&quot;OMG!!&quot;)<br>        }<br>    },<br>    template: &quot;&lt;div&gt; What are you doing on {{day}} ? &lt;/div&gt;&quot;<br>})</pre><p>If you want to use some other form of delimiters, you can use this instead —</p><pre>Vue.extend({<br>    delimiters: [&quot;((&quot;, &quot;))&quot;],<br>    data: {<br>        a: 10,<br>        b: &#39;wow&#39;<br>    },<br>    methods: {<br>        doSometing: function () {<br>            console.log(&quot;OMG!!&quot;)<br>        }<br>    },<br>    template: &quot;&lt;div&gt; What are you doing on ((day)) ? &lt;/div&gt;&quot;<br>})</pre><p>So delimiters is an array of 2 items, first and second describing the opening and closing delimiters of template data hooks.</p><p>Hope this helps.</p><p>P.S. If you’re reading this, you are a technology person. And if you’re a technology person, I am sure, if you read up on the internet from unbiases and non-partisan sources, you’ll realise Aadhaar has serious technical flaws and cannot be forced upon us until they are fixed. If you are convinced, then please go to <a href="https://speakforme.in">https://speakforme.in</a> and sent a petition to your MP to speak for you in the Parliament and make the Govt answer to us about Aadhar. Also send petitions to your Bank and Mobile operator asking them to stop harassing you to link Aadhaar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93e69814ec47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/speakforme/tech-tidbits-jekyll-vue-and-working-around-the-delimiters-problem-93e69814ec47">[Tech Tidbits] Jekyll + Vue, and working around the ‘delimiters’ problem</a> was originally published in <a href="https://medium.com/speakforme">#SpeakForMe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>