<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FrankDzedzy.com &#187; Email</title>
	<atom:link href="http://frankdzedzy.com/category/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankdzedzy.com</link>
	<description>A blog about IT</description>
	<lastBuildDate>Thu, 05 Mar 2009 13:12:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sharpmail Anonymous Email service</title>
		<link>http://frankdzedzy.com/2006/07/12/sharpmail-anonymous-email-service/</link>
		<comments>http://frankdzedzy.com/2006/07/12/sharpmail-anonymous-email-service/#comments</comments>
		<pubDate>Wed, 12 Jul 2006 20:20:12 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://frankdzedzy.com/2006/07/12/sharpmail-anonymous-email-service/</guid>
		<description><![CDATA[I recently came across SharpMail, a UK based company that offers a fake email service similar to the service I host here.  They offer a lot of cool features like reply back, file attachments, SMS for text messages (doesn&#8217;t work in US), rich text messages, and premade prank emails.  However they have several [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across <a href="http://www.sharpmail.co.uk">SharpMail</a>, a UK based company that offers a fake email service similar to the <a href="http://www.frankdzedzy.com/email/sendMail.html">service I host here</a>.  They offer a lot of cool features like reply back, file attachments, SMS for text messages (doesn&#8217;t work in US), rich text messages, and premade prank emails.  However they have several features that I don&#8217;t like and that make my service better.  First you have to register an account with them to do anything.  Second they put a very noticeable link in the email.  So the recipient knows very quickly that the email is fake.  They also have a huge x-header that alerts to the fact that it is a prank.  For $35 a year, you can remove these.  So if you want to send a more truely anonymous (and free) email try out <a href="http://www.frankdzedzy.com/email/sendMail.html">this</a>.  It is my goal to add a few more features to the script, like an optional reply feature, and maybe a new form with a rich text editor.  I am also working on a C# program that will do the same stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://frankdzedzy.com/2006/07/12/sharpmail-anonymous-email-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Sender Policy Framework to stop email spoofing</title>
		<link>http://frankdzedzy.com/2006/02/15/using-sender-policy-framework-to-stop-email-spoofing/</link>
		<comments>http://frankdzedzy.com/2006/02/15/using-sender-policy-framework-to-stop-email-spoofing/#comments</comments>
		<pubDate>Wed, 15 Feb 2006 19:43:03 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://frankdzedzy.com/2006/02/15/using-sender-policy-framework-to-stop-email-spoofing/</guid>
		<description><![CDATA[Some time ago I wrote an article explaining how email spoofing worked.  See here.  I concluded that there was no good way to prevent your email address from being spoofed.  Several people commented on that article and told me to look into Sender Policy Framework (SPF).  I have done some research [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I wrote an article explaining how email spoofing worked.  See <a href="http://frankdzedzy.com/2005/12/13/email-address-spoofing/">here.</a>  I concluded that there was no good way to prevent your email address from being spoofed.  Several people commented on that article and told me to look into Sender Policy Framework (SPF).  I have done some research on SPF, and decided to write an article describing how to use SPF and some of the related issues.</p>
<p>Sender Policy Framework is a concept that validates that the IP address that an email is coming from is permitted to send mail for the domain found in the Return-Path.  The concept was first introduced in 2003.  It is not yet an RFC, but the IETF has accepted it as an experimental protocol.  Microsoft is also involved in developing this concept, and they are calling it SenderID.</p>
<p>The concept of SPF is very simple.  It is nothing more than a DNS entry that specifies which IP addresses are allowed to send mail from a domain.  <span id="more-21"></span>When an SMTP server receives an email, it checks for an SPF record in the DNS and checks the Originating IP address in the email against the approved IP addresses in the SPF entry.</p>
<p><strong>How it Works</strong></p>
<p>An SPF entry is recorded in DNS using a txt record.  A basic SPF record would look like this:</p>
<p>&#8220;v=spf1 a mx ptr ~all&#8221;</p>
<p>The v=spf1 signifies the version of SPF to use.  The â€˜aâ€™ represents the â€˜aâ€™ record in DNS for this domain.  Similarly the â€˜mxâ€™ signifies the â€˜mxâ€™ record in DNS.  â€˜ptrâ€™ lets any host whose IP has a reverse DNS record that ends in the domain to send mail.  â€˜-allâ€™ tells a query to fail the message if it does not match any of the previous qualifications.</p>
<p>There are seven mechanisms that can be used to define where mail is coming from:<br />
A -> the A record corresponding to the domain<br />
MX -> the MX record<br />
IP4 -> used to specifiy an ip address ie: ip4:192.168.0.1, or a range can be entered using cidr notation ip4:192.168.0.0/24<br />
IP6 -> same as IP4, only with IPv6 addresses<br />
PTR -> any sender whose IP reverse resolves to this domain<br />
EXISTS -> if the domain name resolves.  This one is not used, because it will pass any domain that exists.<br />
INCLUDE -> This will check the SPF policy of a specified domain.  For Example:  â€˜include:google.comâ€™ will check the SPF policy of google.com</p>
<p>One of four qualifiers can be placed in front of any of these mechanisms.<br />
+  returns a PASS result.  This does not need to be specified.  â€˜+aâ€™ is the same as â€˜aâ€™<br />
?  returns a NEUTRAL result.  This is viewed as a NONE or no policy result.<br />
~  returns SOFTFAIL  This is for debugging.  It passes the message, but still returns a fail result.<br />
-   returns FAIL.  Tells the client to discard the message as illegitimate. </p>
<p>A â€˜:â€™ can be placed after a mechanism to specify a different record.  For example:  â€˜a:google.comâ€™ would pass the â€˜aâ€™ record of google.com as permitted to send mail.</p>
<p><strong>How to use SPF to protect your domain</strong><br />
To protect your domain from spoofing simply create the necessary SPF record in your DNS zone file.  You can write out the txt record your self, or you can use the wizard at http://www.openspf.org/wizard.html?mydomain=&#038;x=28&#038;y=9 or http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ both will create the same record, and explain what each part is that you put in.  Then, copy the resulting text and add it to the DNS, or have your DNS provider add it, if you donâ€™t manage your own DNS.<br />
<strong><br />
Using SPF to block spam</strong><br />
You can also implement SPF on your mail server to block spam emails, and phishing attacks.  All email servers made in the past year probably support SPF since it is gaining in popularity.  Microsoft added SPF support to Exchange with Service Pack 2.  And there are plugins that can be downloaded for Sendmail and Postfix.  Make sure your mail server software is up to date, and check your documentation to find the correct setting.  If you do not manage your own email server, there are some mail clients that will do SPF checking.  Mozilla Thunderbird has a plugin http://taubz.for.net/code/spf/ that will check the SPF for an email and let you know the results.  Also, gmail (which I use for email) checks SPF and will put the message in the spam folder.  </p>
<p><strong>Problems with SPF</strong><br />
While SPF is a good system for stopping spoofed emails, it is far from perfect.  In fact there are several major problems with it.<br />
1.  Lack of support â€“ This is probably the biggest problem as not a lot of domains are using SPF.  It is rapidly gaining support, and many of the large domains have started using it.  Aol, Google, and Microsoft are just a few of the big names who have implemented SPF.<br />
2.  SPF only checks the HELO and Return-Path email address.  It does not check the From: field in the data portion of an email.  So you could still get an email and it would appear to be spoofed, depending on how your mail client handles the From: field.<br />
3.  SPF breaks email forwarding.  When an email is forwarded from one domain to another.  If a mail transfer agent in another domain simply forwards the message, an SPF query will cause the message to fail, since the MTA is in a different domain than what is shown in the Return-Path.  This could cause some annoying problems with users who have aliases that forward mail from one domain to another.  This problem can be solved if the MTA uses remailing instead of the traditional forwarding.  A new technology called Sender Rewriting Scheme will change the email address, but still allow the user to reply correctly.  From the little I have read about it, it seams that SRS only obfuscates basic information, and it looks like it could be easily fooled by spoofing the SRS changed email.<br />
4.  One obvious problem is that SPF will not work if the Return-Path: <>  (Null return-path).  Since there is nothing to look up, how can it work?  The email server could just require all mail to have a valid return-path, but that could still be a problem.<br />
5.   SPF will lock in users to there ISPs.  It will force someone to use the ISPs mail servers to send out email with their email address.  The user cannot send out email with that address from there own system.<br />
6.  Since AOL is a big supporter of SPF, they will cause problems for everybody.  I have seen so many problems with sending mail to AOL users, because of their tight SMTP restrictions.  Once they start to enforce SPF, it will block a ton of legitimate emails.<br />
7.  In my opinion one of the biggest problems with SPF is that it uses DNS.  DNS was not designed to be a security system, but instead it provides information on a domain.  SPF uses the txt record, which was designed to provide free flowing text about a domain, not semantically correct entries.  Spammers could easily create a disposable domain with the correct SPF information.  There will also be problems with DNS changes, since it takes some time for changes to propagate and with the use of DNS caching, mail servers could block legitimate mail for days when an SPF record gets changed.<br />
For more information on the problems with SPF see <a href="http://homepages.tesco.net./~J.deBoynePollard/FGA/smtp-spf-is-harmful.html">here</a></p>
<p><strong>Conclusions</strong><br />
I am not a big supporter of SPF.  It seems like it is a good idea, but I feel that it has not been thoroughly thought out.  There are too many problems that it creates that break the original intent of the SMTP protocol.  In my opinion, I feel that SPF will ultimately block more legitimate email than forged email.  It seems to me that there should be a better way to create this system, without causing all of these problems.  But I do feel that this system will gain in popularity and use.  With AOL getting very involved, mail administrator will be forced implement SPF in order to be able to deliver mail to AOL.  I like how GMail currently implements SPF, by sending the mail to my spam folder, instead of just rejecting it completely.  But eventually, the will start blocking failed messages, to cut down on overhead.</p>
<p><strong>More informarion on SPF</strong><br />
<a href="http://www.openspf.org">OpenSPF.org</a><br />
<a href="http://en.wikipedia.org/wiki/Sender_Policy_Framework">Wikipedia entry</a><br />
<a href="http://www.msexchange.org/tutorials/Sender-Policy-Framework.html">More info</a></p>
]]></content:encoded>
			<wfw:commentRss>http://frankdzedzy.com/2006/02/15/using-sender-policy-framework-to-stop-email-spoofing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Email Address Spoofing</title>
		<link>http://frankdzedzy.com/2005/12/13/email-address-spoofing/</link>
		<comments>http://frankdzedzy.com/2005/12/13/email-address-spoofing/#comments</comments>
		<pubDate>Wed, 14 Dec 2005 00:48:36 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://frankdzedzy.com/?p=15</guid>
		<description><![CDATA[Part of my job at work is to monitor our email system.  I receive all emails sent to postmaster and webmaster through our system.  In the past few weeks, I have received dozens of undeliverable emails returned from other domains to these addresses.  Most of these have dozens of email addresses listed [...]]]></description>
			<content:encoded><![CDATA[<p>Part of my job at work is to monitor our email system.  I receive all emails sent to postmaster and webmaster through our system.  In the past few weeks, I have received dozens of undeliverable emails returned from other domains to these addresses.  Most of these have dozens of email addresses listed that were undeliverable.  Some are email rejected for viruses or suspected spam.  Since our email system delivers thousands of emails to our clients daily, I was concerned that we were  configured as an open-relay and would be blacklisted.  After verifying that our server was not configured as an open relay I looked through the email logs looking for the undeliverable emails.  I was unable to find the spam email anywhere in our logs, so I came to the conclusion that someone was spoofing our email addresses to send spam.  Digging further in our email logs, I found other undeliverable emails sent to nonexistent email addresses.  So I realized that they were spoofing other email addresses then just the postmaster.  Some of the addresses were random strings of letters, but most looked like fake usernames.  Because of this, I have done quite a bit of research on email and email address spoofing, and I thought that I would write up some of what I have learned.  I have also provided a <a href="/email/sendMail.html" target="_blank">script</a> that will allow you to send spoofed emails to your friends.<br />
<span id="more-15"></span></p>
<p>Spoofed email is email that appears to come from one source, when it actually does not.  Because of the simplicity of Simple Mail Transfer Protocol (SMTP), email spoofing is extremely easy to do.</p>
<p>Some background on SMTP.  SMTP is one of the earliest email protocols developed.  It was written by Jonathan Postel in 1982 and is officially documented in <a href="http://www.faqs.org/rfcs/rfc821.html">RFC 821</a>.  SMTP was designed to be reliable and easily usable.  It has been the standard for transferring email for the last 23 years.  Virtually every mail server in existence uses SMTP.  However, its ease of use has allowed spammers and phishers to abuse the email system.</p>
<p>The first step in transferring an email through SMTP is to establish a connection.  SMTP uses TCP port 25 for this.  The client host then sends the HELO or EHLO command to the server.  Some servers require that a domain be specified along with the HELO.  But this can be spoofed, for example HELO xyz.com is usually valid.  Most servers only check the IP address.  Next the client sends the MAIL FROM: command.  The email address entered here can be anything.  Most servers do not check to see if it is valid.  Some servers even accept a blank address.  SMTP really has no way of even checking that the email address is valid since it is not from their system anyway.  The domain on the address does not have to be the domain specified earlier in the HELO.  The next command is the RCPT TO: command.  An open relay will allow any email address to be entered here, but a properly configured server will only accept an email address with the same domain as the mail server.  The next command is the DATA command.  This notifies the SMTP server that everything else that follows is part of the message.  This can be simply the message, but it also includes all the client header information.  This is the information that is interpreted by the email client.  It includes date, to, from, cc, subject, and more depending on the email client.  The simplest way to enter header information is to enter the field, ie Subject: this is the subject.  You can also enter to and from information here.  This is how email can show up as being sent from Joe Schmoe instead of joeschmoe@email.com.  This is a very nice feature of email clients, but it also makes email spoofing very easy.</p>
<p>This all sounds really confusing, so to understand this better, you can use telnet to communicate with an SMTP server.  Here is an example of a spoofed email being sent to frankdzedzy@frankdzedzy.com.</p>
<p>C:\>telnet mail.frankdzedzy.com 25<br />
220 ss71.shared.server-system.net ESMTP Sendmail 8.12.11/8.12.11; Fri, 9 Dec 2005 10:17:19 -0800<br />
helo xyz.com<br />
250 ss71.shared.server-system.net Hello [12.178.219.195], pleased to meet you<br />
mail from: joeschmoe@emailserver.com<br />
250 2.1.0 joeschmoe@emailserver.com&#8230; Sender ok<br />
rcpt to: frankdzedzy@frankdzedzy.com<br />
250 2.1.5 frankdzedzy@frankdzedzy.com&#8230; Recipient ok<br />
data<br />
354 Enter mail, end with &#8220;.&#8221; on a line by itself<br />
subject: this is a spoofed email<br />
you have just been spoofed<br />
.<br />
250 2.0.0 jB9IHJIY001987 Message accepted for delivery<br />
quit<br />
221 2.0.0 ss71.shared.server-system.net closing connection</p>
<p>When I open up the email, it shows it as being from joeschmoe@emailserver.com.  If I donâ€™t know who this is I could open up the source.  This is what the source looks like:</p>
<p>Return-Path: &lt;joeschmoe@emailserver.com&gt;<br />
Received: from ss71.shared.server-system.net (root@localhost)<br />
	by frankdzedzy.com (8.12.11/8.12.11) with ESMTP id jB9IJ4Sd002707<br />
	for &lt;frankdzedzy@frankdzedzy.com&gt; Fri, 9 Dec 2005 10:19:04 -0800<br />
X-ClientAddr: 12.178.219.195<br />
Received: from xyz.com ([12.178.219.195])<br />
	by ss71.shared.server-system.net (8.12.11/8.12.11) with SMTP id jB9IHJIY001987<br />
	for frankdzedzy@frankdzedzy.com; Fri, 9 Dec 2005 10:18:30 -0800<br />
Date: Fri, 9 Dec 2005 10:17:19 -0800<br />
From: joeschmoe@emailserver.com<br />
Message-Id: &lt;200512091818.jB9IHJIY001987@ss71.shared.server-system.net><br />
subject: this is a spoofed email</p>
<p>you have just been spoofed</p>
<p>I use the <a href="http://www.roundcube.net">RoundCube webmail client</a>, which is a very nice looking and simple email client.  Other email systems and clients will probably add a lot of other stuff to the header, but this here is nice and simple.  As you can see, the only item that can really identify who I actually am is the IP address.  Everything else is either related to my email server, or is fake information.  Obviously, this is a great way to pull pranks on your friends.  I have done it on a couple of occasions at college, with great results.  However, you can use spoofing to pretend to be someone you are not.  This is a form of social engineering known as <a href="http://en.wikipedia.org/wiki/Phishing">phishing</a>.  This is fast becoming a major problem, as phishers send spoofed emails that are carefully constructed to look like a reputable organization.  They then direct you to a website, which collects information from people who canâ€™t tell they are being misled.  Spammers also use spoofing to disguise their real identity and to help get the email past spam filters.</p>
<p>After looking through the headers of the emails, I was sent back, I was able to tell that most of them were just generic spam emails.  The subjects had product names, celebrity names, and phrases like â€œYour Passwordâ€ in them.  Also a lot of them had viruses in them.  I was able to find the originating IP addresses in the headers I got back too.  (Probably 80% of the undeliverable email did not send back any of the original header information, which was really irritating.)  Out of all the emails, I have received, I have found about 14 different IP addresses.  Most were only used once, but some have been used dozens of times.  All are IP addresses that are part of various home broadband ISPs, around the US.  I have not been able to ping any of the addresses successfully.  This makes me wonder if the spammer is spoofing IP addresses.  A better explanation for this would be that he is sending his emails through these unsecured home PCs.  They may be part of some small zombie network.  I received dozens of undeliverable emails sent to me over the last weekend, but very few the last few days.  So either he is no longer using our emails, or he is sending emails to valid addresses.</p>
<p>So what can you do if somebody is spoofing your email address?  Well, nothing at all.  Since they are able to enter all the fake information into the email there is no way you can stop them.  If you have a similar situation with your email server that I described here, I would recommend making sure your server is not an open relay.  Because of the many open relay databases out there, there are few open relay servers in the United States.  If your server is relaying mail, it wonâ€™t be long before you start getting blocked from sending mail, by other email servers.  I would also recommend keeping a close eye on your logs, to make sure that the emails really arenâ€™t coming from your server.  This would be happening if one of your users was sending out spam, or if you had a worm sending out emails.  If so, you would notice the local IP address in the log information, and could easily find the culprit.</p>
<p>Now hereâ€™s how you spoof your email address, if you only want to prank your friends.  The easiest way is to change your display name and return address in your email client.  I mostly use Outlook (because we use Exchange), <a href="http://www.mozilla.com">Thunderbird</a>, or Gmail, but you can do similar things in other email clients.  I have been unable to do it very well with Outlook.  It does work well in Thunderbird though.  Go to your accounts settings, and change the display name and email address to whatever you want them to be.  Most clients have a separate place to enter your logon information, and donâ€™t use the email address for this.  Just remember that whatever email address you set here, will be the address any reply is sent to.  After you have sent the message, the only way to identify you is the IP address in the header.  Depending on the client, this can be tricky to find.</p>
<p>
You can also use <a href="/email/sendMail.html" target="_blank">this form here to send a basic email with a spoofed address</a>.  It will send a simple email that can disguise your name and email address.  The script does place a link in the source header to this webpage.  This is only visible if the victim looks at the header though.  Script downloaded from <a href="http://www.digi-dl.com">www.digi-dl.com</a>.</p>
<p>I have provided this information to educate on the SMTP protocol and methods used by spammers and phishers.  It is not intended to be used for the purpose of phishing.  Email spoofing is not considered illegal by the FBI, because no hacking is involved.  However, most spamming and phishing is illegal.  I would recommend only using email spoofing techniques for pranks, and even then remember to use your discretion.</p>
]]></content:encoded>
			<wfw:commentRss>http://frankdzedzy.com/2005/12/13/email-address-spoofing/feed/</wfw:commentRss>
		<slash:comments>72</slash:comments>
		</item>
	</channel>
</rss>
