Re: Spoofing "TO" Address in email

From: Moe Trin (ibuprofin_at_painkiller.example.tld)
Date: 11/21/05


Date: Mon, 21 Nov 2005 13:46:58 -0600

In the Usenet newsgroup alt.computer.security, in article
<d1agf.2796$xD5.1454574@twister.southeast.rr.com>, Phil Nospam wrote:

>As a test, I sent myself an email without addressing the TO field at all,
>and placing my email address in the BCC field (using Outlook Express 6).
>I received it with the TO field blank, and when I examine the header I do
>see the email address it was addressed to in the BCC field (it doesn't
>say it was the BCC field, but I know it was because I sent it).

Your concept is correct, but spammers and bulk mailers do not use user
level tools like Outlook Express.

>Doesn't the recipient's email address have to be in the header SOMEWHERE
>in order for the recipient to actually receive it?

No. ALL mail delivery is based on the 'Envelope Recipient' and that
value may not show up in any header.

>Here's a copy of part of the header that shows how I can tell I'm
>receiving an email as a BCC recipient if sent from Road Runner email
>address or Netscape email address:

Now, send a mail to TWO (or more) people at once at the same address
(meaning 'userA@rr.com' and 'userB@rr.com', and then notice the difference
in the headers. NEITHER NAME WILL APPEAR, but the crap will be delivered
just the same.

>The end of that "Received: from" statement says that the email is "for
>aBCCrecipient@sc.rr.com". I replaced the real email address with
>"aBCCrecipient", but you see my point. The spam email I receive doesn't
>have anything like that in it. So how does it know it's for me and end up
>in my Inbox?

Because it is being delivered to more than one person at rr.com, the
header does not show the individual addressees. In the conversation
between the sending mail server (ms-mta-02-eri0 in the case you show)
and receiving mail server (ms-mss-05.southeast.rr.com in the case you
show), the "MAIL FROM" term gets into the 'Return-path:' header (but
that name is under control of the sender, and can be faked), and the
"RCPT TO:" which is what actually controls delivery only gets passed
to the mail you see if there is only ONE instance and in that case
alone is it put in the "Received: header.

>Here's the same part of the header from the spam email I received that
>was addressed TO somebody else:

That's no help - you need to look at more than that one line. In this
case, it was actually sent to two OR MORE people at rr.com. See
http://www.stopspam.org/email/headers.html for more details.

>See... there's nothing there to show who it is going to.

Yup - the ENVELOPE gets thrown away on the receiving mail server, and
all you see is the contents. Sorry, but that's the way email works.

>Or maybe it's there and encrypted in the next to the last line where it
>says 0IPY007F0IWCXZ@ms-mss-05.southeast.rr.com?

No, that is the "serial number" of the message transaction on that specific
mail server.

See RFC0821, 0822, 2821, and 2822, which can be found on the web.

        Old guy



Relevant Pages

  • Re: 2 mail servers, 1 domain
    ... You would do this by assigning each mail server at each ... envelope addreses and header addresses. ... actually used by sendmail for delivery. ... delivery of the message to the correct host. ...
    (comp.mail.sendmail)
  • Re: Message rule for Spam
    ... How would I form message rule for the rfc822 to rule out advertisements from ... That line is added by your mail server to show the intended delivery ... RFC 822 refers to the older Internet standard for ... MS Outlook Express can't filter on most header lines. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: why the date changes on 4 emails?
    ... Did you originally import those 4 messages from another mail client? ... Each mail server that a message passes through adds its own ... This is the "Date:" line in the message header. ... Now I discover that 4 emails in the SENT 2004 folder in the XYZ 2004 ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Setup problem with SenderID and OWA
    ... >mail with OWA. ... of the Exchange server, not the IP address of the machine running the ... >Sample SMTP Header from Exchange server.... ... surely isn't the one inserted by the receiving server. ...
    (microsoft.public.exchange.admin)
  • Re: Bcc
    ... your "newsletters" and it is inserting the Bcc header. ... The mail server cannot do anything about a client program ... The list of recipients specified by ...
    (microsoft.public.outlook.general)