Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Lately I've been playing around with telnet and found it quite interesting. Most interestingly, Facebook also uses SMTP. The IP is 66.220.155.11.

Some things about it are strange.

  1. It doesn't take the HELO command.
  2. You can only set the MAIL FROM: to a mail totally unlinked from Facebook.
  3. It does take the DATA command, but I don't get which should be the headers.

In the end, even without the headers, the message is rejected. Any ideas on how to complete the relay?

share|improve this question
up vote 9 down vote accepted

Any business that wants to accept incoming email over the internet will need an SMTP server, so that facebook has one isn't unexpected. It is an incoming server, so won't accept facebook source addresses.

It appears to be fairly standard, and wants standard headers:

# telnet 66.220.155.11 25
Trying 66.220.155.11...
Connected to 66.220.155.11.
Escape character is '^]'.
220 smtpin.mx.facebook.com ESMTP
EHLO domain.com
250-smtpin.mx.facebook.com says EHLO to xx.xx.xx.xx:57628
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING
MAIL FROM: paul@domain.com
RCPT TO: user@facebook.com
250 MAIL FROM accepted
250 RCPT TO accepted
DATA
354 continue.  finished with "\r\n.\r\n"
Message-ID: <499D11DC.1000706@airbred.com>
Date: Thu, 16 Jan 2013 19:01:32 +1100
From: Paul <paul@domain.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-AU; rv:1.8.1.19) Gecko/20090122 Lightning/0.9 Thunderbird/2.0.0.19 
MIME-Version: 1.0
To: Paul <user@facebook.com>
Subject: Subject Line

Hello

.
250 OK A8/71-30754-8D667F05

This email came through to my facebook account without issue. Note that everyone on facebook has a facebook.com email address, and SMTP is how email is delivered on the internet, so the requirements for incoming mail on the facebook SMTP servers is much the same as any other - if they weren't, it wouldn't work.

share|improve this answer
    
How do I get around port 25? I don't receive my messages, since I need to use a proxy. Is that it? – OscarFR Jan 17 '13 at 3:51
1  
@OscarFR SMTP servers listen on port 25, so if you can't get a connection out on this port, you won't be able to telnet directly. – Paul Jan 17 '13 at 5:53

You must log in to answer this question.

protected by Community Nov 21 '15 at 1:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .