help with connecting to mac mail via raw sockets

Discussion in 'Mac Programming' started by oliverw92, Jan 26, 2009.

  1. macrumors newbie

    Joined:
    Jan 9, 2009
    #1
    Hi there,

    I have started to look into making a simple email client that might be web based, but i am not sure of that yet. i have been experimenting with some telnet sockets from terminal and some php raw sockets. however i have come across a problem when connecting to mobileme mail. i can log on successfully and enter all the data but once i have finished the data header i get this error: <-- 550 5.7.0 From address is not one of your addresses. i have no idea what it means. i tried using a packet sniffer to see what Mail sends when it sends mail and i then compared this to what my simple php script sends and i cannot see any differences. i was wondering if anyone had any insight on this matter. here are the logs from the packet sniffer and my php script


    packet sniffer on Mail:

    Code:
    220 asmtp017-bge351000 -- Server ESMTP (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug  7 2008; 32bit))
    EHLO [192.168.1.2]
    250-asmtp017-bge351000
    250-8BITMIME
    250-PIPELINING
    250-CHUNKING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-EXPN
    250-HELP
    250-XADR
    250-XSTA
    250-XCIR
    250-XGEN
    250-XLOOP B3FA32E97381AA9B8EDF29D61AC112A1
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=LOGIN
    250-NO-SOLICITING
    250 SIZE 0
    AUTH PLAIN base64ofuserandpass
    235 2.7.0 PLAIN authentication successful.
    MAIL FROM:<oliverw92@mac.com>
    250 2.5.0 Address Ok.
    RCPT TO:<oliverw92@mac.com>
    250 2.1.5 oliverw92@mac.com OK.
    DATA
    354 Enter mail, end with a single ".".
    Message-Id: <06199306-8C21-4FE6-B4A4-68F4E185F901@mac.com>
    From: Oliver Woodings <oliverw92@mac.com>
    To: Oliver Woodings <oliverw92@mac.com>
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    Content-Transfer-Encoding: 7bit
    Mime-Version: 1.0 (Apple Message framework v930.3)
    Subject: hi noob
    Date: Sun, 25 Jan 2009 22:52:49 +0000
    X-Mailer: Apple Mail (2.930.3)
    
    HAI
    .
    
    from php script:

    Code:
    <-- 220 asmtpout022.mac.com -- Server ESMTP (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug  7 2008; 32bit))
    --> EHLO [192.168.1.2]
    <-- 250-asmtpout022.mac.com
    --> AUTH PLAIN base64ofuserandpass
    <-- 250-8BITMIME
    <-- 250-PIPELINING
    <-- 250-CHUNKING
    <-- 250-DSN
    <-- 250-ENHANCEDSTATUSCODES
    <-- 250-EXPN
    <-- 250-HELP
    <-- 250-XADR
    <-- 250-XSTA
    <-- 250-XCIR
    <-- 250-XGEN
    <-- 250-XLOOP 39B5EB74C4B62EEE8D93ABA70E0A0CB7
    <-- 250-STARTTLS
    <-- 250-AUTH PLAIN LOGIN
    <-- 250-AUTH=LOGIN
    <-- 250-ETRN
    <-- 250-NO-SOLICITING
    <-- 250 SIZE 0
    <-- 235 2.7.0 PLAIN authentication successful.
    --> MAIL FROM:<oliverw92@mac.com>
    <-- 250 2.5.0 Address Ok.
    --> RCPT TO:<oliverw92@mac.com>
    <-- 250 2.1.5 oliverw92@mac.com OK.
    --> DATA
    <-- 354 Enter mail, end with a single ".".
    --> Message-Id: <06199306-8C21-4FE6-B4A4-68F4E185F901@mac.com>
    From: Oliver Woodings <oliverw92@mac.com>
    To: Oliver Woodings <oliverw92@mac.com>
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    Content-Transfer-Encoding: 7bit
    Mime-Version: 1.0 (Apple Message framework v930.3)
    Subject: hi noob
    Date: Sun, 25 Jan 2009 22:52:49 +0000
    X-Mailer: Apple Mail (2.930.3)
    
    HAI
    --> .
    <-- 550 5.7.0 From address is not one of your addresses.
     

Share This Page