PHP Classes

alias account

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  alias account  >  (Un) Subscribe thread alerts  
Subject:alias account
Summary:parsing alias emails on outgoing server
Messages:4
Author:Octavian Ionescu
Date:2011-04-04 06:53:03
Update:2011-04-05 01:19:02
 

  1. alias account   Reply   Report abuse  
Picture of Octavian Ionescu Octavian Ionescu - 2011-04-04 06:53:03
hi,

when i set up an alias email account the parser will not decode correct outgoing address

the relevant header is:

Received: from ****** (**** [192.168.99.1]) by **** (Postfix) with ESMTP id A049B197A13 for <****@yahoo.com>; Sun, 3 Apr 2011 23:59:38 +0300 (EEST)

i mean if i have an acount a@domain wich points to [email protected], when it comes to parse on outgoing server it will still see the receiver a@domain and not [email protected]

  2. Re: alias account   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-04-04 07:09:52 - In reply to message 1 from Octavian Ionescu
The MIME parser class only extracts what is in the message.

If Yahoo receives a message to one address and forwards it to another address without altering the message To: header, the class has no way of guessing it was forwarded to a different destination.

  3. Re: alias account   Reply   Report abuse  
Picture of Octavian Ionescu Octavian Ionescu - 2011-04-04 18:47:15 - In reply to message 2 from Manuel Lemos
this is not the behaviour of yahoo server this is the behaviour of MTA's.

when you set up an alias
[email protected] -> [email protected]
the MTA will forward the emails without rewriting the To header

this is how you can trace "Received" field defined in rfc822:

received = "Received" ":" ; one per relay
["from" domain] ; sending host
["by" domain] ; receiving host
["via" atom] ; physical path
*("with" atom) ; link/mail protocol
["id" msg-id] ; receiver msg id
["for" addr-spec] ; initial form

When the sending host uses a destination address specification that the receiving host reinterprets, by expansion or transformation, the receiving host may wish to record the original specification, using the "for" parameter. For example, when a copy of mail is sent to the member of a distribution list, this parameter may be used to record the original address that was used to specify the list.


  4. Re: alias account   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-04-05 01:19:02 - In reply to message 3 from Octavian Ionescu
Right, but as I said the parser extracts recipients addresses from To, Cc, headers. It does not parse Received headers.