Retrieving mail attributes

Hi,
I've successfully configured authentication acces with LDAP (it's the first time for me) with the code below:
          String user=request.getParameter("user");
          String pwd=request.getParameter("pwd");
          session.setAttribute("user",user);
          String[] args={"mail.xxxxxx.it","389","xxxxxx",user,pwd};
          Hashtable env = new Hashtable(11);
          System.out.println("ciao");
          env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
          env.put(Context.PROVIDER_URL, "ldap://" + args[0] + ":" + args[1]);
          env.put(Context.SECURITY_AUTHENTICATION, "simple");
          env.put(Context.SECURITY_PRINCIPAL, args[2] + "\\" + args[3]);
          env.put(Context.SECURITY_CREDENTIALS, args[4]);
LdapContext ctx = new InitialLdapContext(env, new Control[0]);
but I cannot find mail attributes (name,surname,phone,etc)
What's wrong?
Thanks in advance
Bye                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Go here:
http://java.sun.com/j2se/1.5.0/docs/api/index.html
Look up the "File" class (in the frame on the left). Look at the methods on File. One of them will be quite helpful.
I'd just hand you the answer but the use-of-documentation exercise will be quite handy. ;)

Similar Messages

  • Retrieve all attributes for a specific objectClass using ldapsearch

    Hi everybody,
    Question : is it possible to retrieve all attributes for a specific objectClass (by example person) using ldapsearch tool ?
    I tried something like that, but it doesn't work :
    ldapsearch -v -h XXX -p XXX -b "cn=schema" -s base "objectclass=person" attributetypes
    Thanks a lot,
    Franck

    Ok, Thanks for you help,
    But my question is : For a specific objectClass, by example, I would like to have all attributes for the objectClass called "inetOrgPerson"
    something like that :
    ldapsearch -D "cn=Directory Manager" -w pwd -h host ...objectClass="inetOrgPerson"
    and the response could be :
    audio || businessCategory || departmentNumber || displayName || givenName || initials || jpegPhoto || labeledUri || manager || mobile || pager || photo || preferredLanguage || mail || o || roomNumber || secretary || userPKCS12
    I dont't know how to do ????
    Thanks
    Franck

  • Retrieving mailing  lists by connecting to LDAP(windows AD)

    Hi All,
    I have crunch requirement, for retrieving mailing lists and the members in the list fromwindows ad(ldap) .The mailing group location and mailing group name are the serach parameters.
    Required help on the same.
    (a code sample is appreciated)
    Thanks in advance

    You just simply need to iterate through each of the members to retrieve their mail address.
    As the values stored in a group's member attribute are all distinguished names, it makes the task very simple as you just need to bind to them and request the value of their mail attribute.
    I also recomend that you behave like a good Active Directory citizen and use range retrieval which is described in the post "JNDI, Active Directory, Paging and Range Retrieval" available at
    http://forum.java.sun.com/thread.jspa?threadID=578347&tstart=0
    In order to achive what you want, you just need to add a few lines of code to the range retrieval example.
    Replacefor (NamingEnumeration e = attr.getAll();e.hasMore();totalResults++) {
         System.out.println("   " + totalResults + ". " + e.next());
    }withfor (NamingEnumeration e = attr.getAll();e.hasMore();totalResults++) {
         String userName = e.next().toString()
         System.out.println("   " + totalResults + ". " + userName);
         String retAtts[] = {"mail"};
         Attributes mailAtts = ctx.getAttributes(userName,retAtts);
         System.out.println("     " + mailAtts.get("mail").get());
    }Good luck.

  • How to retrieve mails from a Mail Server ? PLEASE REPLY IF YOU KNOW !

    Hello,
    I am trying to retrieve mail from a mail server using the example from JGuru. The command line is as follows:
    java GetMessageExample mail.wlfdle1.on.home.com (Mail Server Name) <username> <password>
    I should be prompted to read the messages in your INBOX. Enter YES to see the message content.
    0: [email protected] Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah
    1: [email protected] No Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah Blah
    I do not get any error or any output.
    Any Clue or any idea how I can get some result ??
    Response will be appreciated.
    Thanks.

    This is the sample program from jguru. After executing the following command (replacing the mail server, username, and password):
    java GetMessageExample POP.Server username password
    You'll be prompted to read the messages in your INBOX. Enter YES to see the message content.
    0: [email protected] Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah
    1: [email protected] No Thanks.
    Do you want to read message? [YES to read/QUIT to end]
    YES
    Blah Blah Blah Blah
    import java.io.*;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = session.getStore("pop3");
    // Connect to store
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("Inbox");
    // Open read-only
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    // Get directory
    Message message[] = folder.getMessages();
    System.out.println(folder.getMessages());
    for (int i=0, n=message.length; i<n; i++) {
    // Display from field and subject
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    System.out.println("Do you want to read message? [YES to read/QUIT to end]");
    String line = reader.readLine();
    if ("YES".equals(line)) {
    // Display message content
    System.out.println(message[i].getContent());
    } else if ("QUIT".equals(line)) {
    break;
    // Close connection
    folder.close(false);
    store.close();
    Please help me on this.
    thanks.

  • "LPX-00601: Invalid token in:" when retrieving namespaced attribute

    I'm trying to retrieve an attribute value from an XML document as follows:
    declare
       l_url varchar2(500);
       l_xml xmltype;
    begin
       l_xml := xmltype('<WMT_MS_Capabilities version="1.1.1">
                          <Capability>
                             <Layer>
                               <Layer>
                                  <Style>
                                    <Name>default</Name>
                                    <Title>default</Title>
                                    <LegendURL width="233" height="141">
                                       <Format>image/png</Format>
                                       <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
                                                       xlink:type="simple"
                                                       xlink:href="http://very_long_url"/>
                                    </LegendURL>
                                  </Style>
                              </Layer>
                              </Layer>
                              </Capability>
                          </WMT_MS_Capabilities>');
       select extractvalue(l_xml
                          ,'//WMT_MS_Capabilities/Capability/Layer/Layer/Style/LegendURL/OnlineResource@xlink:href'
                          ,'xmlns:xlink="http://www.w3.org/1999/xlink"')
         into l_url
         from dual;
         dbms_output.put_line(l_url);
    end;This code executes fine in a 9.2.0.5 database but on Oracle 10.2.0.4 I get:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '//WMT_MS_Capabilities/Capability/Layer/Layer/Style/LegendURL/OnlineResource@xlink:href'
    ORA-06512: at line 26What am I doing wrong?

    Found the bug. there is a / missing before the @ in the xpath expression. 9R2 does not seem to care about this.
    Correct path=
    '//WMT_MS_Capabilities/Capability/Layer/Layer/Style/LegendURL/OnlineResource/@xlink:href'

  • Hitting error LDAP: error code 20 - mail attribute has duplicate value.

    Hi ,
    Anyone  faced this issue before LDAP: error code 20 - mail attribute has duplicate value. We are getting this error intermittently  in oid logs and 
    and due to that  provisioning stuck . I know that the issue due to the object class mismatch in attributes. But  map profile looks fine . Anything else need to check ?
    SSO verion 10.4.1.3 and DB version 10g .
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - mail attribute has duplicate value.]; remaining name 'uid=abc,cn=users,dc=xyz ,dc=com'
            at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2972)
            at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
            at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
            at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1440)
            at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:255)
            at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:172)
            at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:161)
            at javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.java:146)
            at oracle.ldap.odip.gsi.LDAPWriter.modify(LDAPWriter.java:479)
            at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:318)
            at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:656)
            at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
            at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
    DIP_LDAPWRITER_ERROR_MODIFY
    Error in executing mapping DIP_LDAPWRITER_ERROR_MODIFY
    DIP_LDAPWRITER_ERROR_MODIFY
            at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:830)
            at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
            at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
    DIP_LDAPWRITER_ERROR_MODIFY
    Setting Change Success Count : 27682
    Setting Change Failure Count : 11004
    CDSImportProfile:Error in Mapping EngineDIP_LDAPWRITER_ERROR_MODIFY
    DIP_LDAPWRITER_ERROR_MODIFY
            at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:851)
            at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:377)
            at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:238)
    CDSImportProfile:about to Update exec status

    did you search the LDAP server to see whether the email value you try to use already exist ?  typically LDAP server do not care whether email is duplicated or not, but by default OIM server do not allow duplicated email

  • Can I use Time Machine to retrieve mail that was in Trash on my MacBook Air, after I emptied Trash?

    Can I use Time Machine to retrieve mail that was in Trash on my MacBook Air OS X Yosemite, after I Emptied that Trash?

    Interesting question. I don't think you can because Time Machine would have deleted the data in subsequent backups because it was removed from the computer. But you never know about these things until you actually try it, which I've never done. So, why don't you give it a try. Worst that can happen is it's not there and you're no worse off than now.
    If you need help with restoring mail from Time Machine: Please visit Pondini's Time Machine FAQ for help with all things Time Machine. Also open Mail and select Mail Help from Mail's help menu. Search for 'restore mail' and see if you don't find some instructions there, too.

  • Incorrect Sender value when 'mail' attribute is multivalued

    hi,
    i've just upgraded Sun messaging server 2005Q4 from IMS 5.2 and noted some behavioural difference in the reverse_url operations.
    I've noted that reverse_url operations on the 'mail' attribute for ims5.2 seems to ignore subsequent values of this attribute if it's multivalued.
    Sun Messaging 2005Q4, however, seems to have taken into account the multiple values of the 'mail' attribute.
    This is resulting the mail's "From:" field to be using the subsequent values.
    Setup
    Account: mailtes1 (with multivalued 'mail' attribute)
    mail: [email protected]
    [email protected] (Not a configured mail domain handled by Sun messaging. Used by other applications)
    mailhost: mailsit.portnet.com.sg (for Sun messaging 2005q4)
    pnsasit1app1.portnet.com (for ims52)
    test mails are sent to the same accounts.
    Results of ./imsimta test -rewrite -debug mailtes1 on Sun Messaging 2005q4 as follows:
    *** Debug output from rewriting a forward header address:
    00:07:53.03: Rewriting: Mbox = "mailtes1", host = "portnet.com.sg", domain = "$*", literal = "", tag = ""
    00:07:53.03: Rewrite: "$*", position 0, hash table -
    00:07:53.03: Found: "$E$F$U%[email protected]$V$H"
    00:07:53.03: Rewrite failed, not envelope.
    00:07:53.03: Rewrite: "$*", position 1, hash table -
    00:07:53.03: Failed.
    00:07:53.03: Rewrite: "$*", position 0, rewrite database -
    00:07:53.03: Failed
    00:07:53.03: Rewriting: Mbox = "mailtes1", host = "portnet", domain = "portnet.com.sg", literal = "", tag = ""
    00:07:53.03: Rewrite: "portnet.com.sg", position 0, hash table -
    00:07:53.03: Found: "$U%[email protected]"
    00:07:53.03: New mailbox: "mailtes1".
    00:07:53.03: New host: "portnet.com.sg".
    00:07:53.03: New route: "png1app1-mail.portnet.com.sg".
    00:07:53.03: New channel system: "png1app1-mail.portnet.com.sg".
    00:07:53.03: Looking up host "png1app1-mail.portnet.com.sg".
    00:07:53.03: - found on channel l
    00:07:53.03: Routelocal flag set; scanning for % and !
    00:07:53.03: Rewrite rules result: [email protected]
    00:07:53.03: Checking reverse URL cache for: [email protected]
    00:07:53.03: Applying reverse URL pattern ldap:///$V?mail?sub?$Q to: [email protected]
    00:07:53.05: Resulting URL: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])([email protected]))
    00:07:53.05: mmc_open_url called to open ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg)), flags = 384
    00:07:53.05: URL with quotes stripped: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:07:53.05: LDAP URL identified
    00:07:53.05: URL context #1 will be used
    00:07:53.05: Performing URL search on: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:07:53.05: mmc_read_url result: [uid=mailtes1,ou=People,ou=ZZZ,ou=Customers, l=SGSIN, o=portnet.com]
    00:07:53.05: URL resolution returned: [uid=mailtes1,ou=People,ou=ZZZ,ou=Customers, l=SGSIN, o=portnet.com]
    00:07:53.05: mmc_read_url result: [mail] [email protected]
    00:07:53.05: URL resolution returned: [mail] [email protected]
    00:07:53.05: Attribute index: 16
    00:07:53.05: LDAP URL produced address [email protected]
    00:07:53.05: mmc_read_url result: [mail] [email protected]
    00:07:53.05: URL resolution returned: [mail] [email protected]
    00:07:53.05: Attribute index: 16
    00:07:53.05: LDAP URL produced address [email protected]
    00:07:53.05: No more result to return
    *** Debug output from rewriting a forward envelope address:
    00:07:53.05: Rewriting: Mbox = "mailtes1", host = "portnet.com.sg", domain = "$*", literal = "", tag = ""
    00:07:53.05: Rewrite: "$*", position 0, hash table -
    00:07:53.05: Found: "$E$F$U%[email protected]$V$H"
    00:07:53.05: Match, pattern = "portnet.com.sg", current = "(*domaincheck*)"
    00:07:53.05: old state = not checked.
    00:07:53.05: Domain check on portnet.com.sg.
    00:07:53.05: Added domain result 1 to cache for portnet.com.sg.
    00:07:53.05: new state = succeeded.
    00:07:53.05: New mailbox: "mailtes1".
    00:07:53.05: New host: "portnet.com.sg".
    00:07:53.05: New route: "png1app1-mail.portnet.com.sg".
    00:07:53.05: New channel system: "png1app1-mail.portnet.com.sg".
    00:07:53.05: Looking up host "png1app1-mail.portnet.com.sg".
    00:07:53.05: - found on channel l
    00:07:53.05: Routelocal flag set; scanning for % and !
    forward channel = l
    channel description =
    channel user filter =
    dest channel filter =
    source channel filter =
    channel flags #0 = BIDIRECTIONAL MULTIPLE IMMNONURGENT NOSERVICEALL
    channel flags #1 = NOSMTP DEFAULT
    channel flags #2 = COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
    channel flags #3 = LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS
    channel flags #4 = EIGHTBIT NOHEADERTRIM NOHEADERREAD RULES
    channel flags #5 = SLAVE_DEBUG
    channel flags #6 = LOCALUSER REPORTNOTARY
    channel flags #7 = NOSWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
    channel flags #8 = NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
    channel flags #9 = NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALSYSTEM NOTURN
    defaulthost = portnet.com.sg portnet.com.sg
    linelength = 1023
    channel env addr type = SOURCEROUTE
    channel hdr addr type = SOURCEROUTE
    channel official host = png1app1-mail.portnet.com.sg
    channel queue 0 name = LOCAL_POOL
    channel queue 1 name = LOCAL_POOL
    channel queue 2 name = LOCAL_POOL
    channel queue 3 name = LOCAL_POOL
    channel after params =
    channel user name =
    urgentnotices = 1 2 4 7
    normalnotices = 1 2 4 7
    nonurgentnotices = 1 2 4 7
    channel rightslist ids =
    local behavior flags = %x7
    expandchannel =
    notificationchannel =
    dispositionchannel =
    saslswitchchannel =
    tlsswitchchannel =
    backward channel = l
    header To: address = [email protected]
    header From: address = [email protected]
    envelope To: address = [email protected] (route (png1app1-mail.portnet.com.sg,png1app1-mail.portnet.com.sg)) (host portnet.com.sg)
    envelope From: address = [email protected]
    name =
    mbox = mailtes1
    Results of ./imsimta test -rewrite -debug mailtes1 on ims52 as follows:
    *** Debug output from rewriting a forward header address:
    00:09:58.97: Rewriting: Mbox = "mailtes1", host = "portnet.com.sg", domain = "$*", literal = "", tag = ""
    00:09:58.97: Rewrite: "$*", position 0, hash table -
    00:09:58.97: Found: "$E$F$U%[email protected]$V$H"
    00:09:58.97: Rewrite failed, not envelope.
    00:09:58.97: Rewrite: "$*", position 1, hash table -
    00:09:58.97: Failed.
    00:09:58.97: Rewrite: "$*", position 0, rewrite database -
    00:09:58.97: Failed
    00:09:58.97: Rewriting: Mbox = "mailtes1", host = "portnet", domain = "portnet.com.sg", literal = "", tag = ""
    00:09:58.97: Rewrite: "portnet.com.sg", position 0, hash table -
    00:09:58.97: Found: "$U%[email protected]"
    00:09:58.97: New mailbox: "mailtes1".
    00:09:58.97: New host: "portnet.com.sg".
    00:09:58.97: New route: "pnsasit1app1.portnet.com".
    00:09:58.97: New channel system: "pnsasit1app1.portnet.com".
    00:09:58.97: Looking up host "pnsasit1app1.portnet.com".
    00:09:58.97: - found on channel l
    00:09:58.97: Routelocal flag set; scanning for % and !
    00:09:58.97: Rewrite rules result: [email protected]
    00:09:58.97: Checking reverse URL cache for: [email protected]
    00:09:58.97: Applying reverse URL pattern ldap:///$V?mail?sub?$Q to: [email protected]
    00:09:58.99: Resulting URL: ldap:///l%3Dsgsin%2Co%3Dportnet.com?mail?sub?(|([email protected])([email protected]))
    00:09:58.99: mmc_open_url called to open ldap:///l%3Dsgsin%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg)), flags = 256
    00:09:58.99: URL with quotes stripped: ldap:///l%3Dsgsin%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:09:58.99: LDAP URL identified
    00:09:58.99: URL context #1 will be used
    00:09:58.99: Performing URL search on: ldap:///l%3Dsgsin%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:09:58.99: mmc_read_url result: [email protected]
    00:09:58.99: URL resolution returned: [email protected]
    forward channel = l
    channel description =
    channel user filter =
    dest channel filter =
    source channel filter =
    channel flags #0 = BIDIRECTIONAL MULTIPLE IMMNONURGENT NOSERVICEALL
    channel flags #1 = NOSMTP DEFAULT
    channel flags #2 = COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
    channel flags #3 = LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS
    channel flags #4 = EIGHTBIT NOHEADERTRIM NOHEADERREAD RULES
    channel flags #5 = SLAVE_DEBUG
    channel flags #6 = LOCALUSER REPORTHEADER
    channel flags #7 = NOSWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
    channel flags #8 = NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
    channel flags #9 = NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALSYSTEM NOTURN
    defaulthost = portnet.com.sg portnet.com.sg
    linelength = 1023
    channel env addr type = SOURCEROUTE
    channel hdr addr type = SOURCEROUTE
    channel official host = pnsasit1app1.portnet.com
    channel queue 0 name = LOCAL_POOL
    channel queue 1 name = LOCAL_POOL
    channel queue 2 name = LOCAL_POOL
    channel queue 3 name = LOCAL_POOL
    channel after params =
    channel user name =
    urgentnotices = 1 2 4 7
    normalnotices = 1 2 4 7
    nonurgentnotices = 1 2 4 7
    channel rightslist ids =
    local behavior flags = %x7
    backward channel = l
    header To: address = [email protected]
    header From: address = [email protected]
    envelope To: address = [email protected] (route (pnsasit1app1.portnet.com,pnsasit1app1.portnet.com)) (host portnet.com.sg)
    envelope From: address = [email protected]
    name =
    mbox = mailtes1
    emails sent to mailtes1 using the Sun messaging 2005q4 service will be en-queued as '[email protected]' for sender but de-queued to mail store with '[email protected]' as sender.
    09-Dec-2007 21:00:47.38 tcp_intranet ims-ms E 1 [email protected] rfc822;[email protected] mailtes1@ims-ms-daemon
    09-Dec-2007 21:00:48.19 ims-ms D 1 [email protected] rfc822;[email protected] mailtes1@ims-ms-daemon
    Physical message file will show '[email protected]' as sender.
    Return-path: <[email protected]>
    Received: from portnet.com.sg (pnsgsit1app2.portnet.com [10.106.65.36])
    by mailsit.portnet.com.sg
    (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
    with ESMTP id <[email protected]> for
    [email protected]; Sun, 09 Dec 2007 21:00:47 +0800 (SGT)
    Received: from [10.106.65.101] (Forwarded-For: 10.10.140.109)
    by mailsit.portnet.com.sg (mshttpd); Sun, 09 Dec 2007 21:00:47 +0800
    Date: Sun, 09 Dec 2007 21:00:47 +0800
    From: [email protected]
    Subject: test
    To: [email protected]
    Message-id: <[email protected]>
    MIME-version: 1.0
    X-Mailer: Sun Java(tm) System Messenger Express 6.2-8.04 (built Feb 28 2007)
    Content-type: text/plain; charset=us-ascii
    Content-language: en
    Content-transfer-encoding: 7bit
    Content-disposition: inline
    X-Accept-Language: en
    Priority: normal
    Original-recipient: rfc822;[email protected]
    test
    Action tried.
    1) Re-order values of mail attribute as follows:
    mail: [email protected]
    [email protected]
    results from ./imsimta test -rewrite -debug mailtes1 on Sun messaging 2005q4:
    *** Debug output from rewriting a forward header address:
    00:21:45.57: Rewriting: Mbox = "mailtes1", host = "portnet.com.sg", domain = "$*", literal = "", tag = ""
    00:21:45.57: Rewrite: "$*", position 0, hash table -
    00:21:45.57: Found: "$A$E$F$U%[email protected]"
    00:21:45.57: Rewrite failed, not envelope.
    00:21:45.57: Rewrite: "$*", position 1, hash table -
    00:21:45.57: Failed.
    00:21:45.57: Rewrite: "$*", position 0, rewrite database -
    00:21:45.57: Failed
    00:21:45.57: Rewriting: Mbox = "mailtes1", host = "portnet", domain = "portnet.com.sg", literal = "", tag = ""
    00:21:45.57: Rewrite: "portnet.com.sg", position 0, hash table -
    00:21:45.57: Found: "$U%[email protected]"
    00:21:45.57: New mailbox: "mailtes1".
    00:21:45.57: New host: "portnet.com.sg".
    00:21:45.57: New route: "mailsit.portnet.com.sg".
    00:21:45.57: New channel system: "mailsit.portnet.com.sg".
    00:21:45.57: Looking up host "mailsit.portnet.com.sg".
    00:21:45.57: - found on channel l
    00:21:45.57: Routelocal flag set; scanning for % and !
    00:21:45.57: Rewrite rules result: [email protected]
    00:21:45.57: Checking reverse URL cache for: [email protected]
    00:21:45.57: Applying reverse URL pattern ldap:///$V?mail?sub?$Q to: [email protected]
    00:21:45.58: Resulting URL: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])([email protected]))
    00:21:45.58: mmc_open_url called to open ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg)), flags = 384
    00:21:45.58: URL with quotes stripped: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:21:45.58: LDAP URL identified
    00:21:45.58: URL context #1 will be used
    00:21:45.58: Performing URL search on: ldap:///l%3DSGSIN%2Co%3Dportnet.com?mail?sub?(|([email protected])(mailAlternateAddress=mailtes1@portnet.
    com.sg))
    00:21:45.59: mmc_read_url result: [uid=mailtes1,ou=People,ou=PSA,ou=Customers, l=SGSIN, o=portnet.com]
    00:21:45.59: URL resolution returned: [uid=mailtes1,ou=People,ou=PSA,ou=Customers, l=SGSIN, o=portnet.com]
    00:21:45.59: mmc_read_url result: [mail] [email protected]
    00:21:45.59: URL resolution returned: [mail] [email protected]
    00:21:45.59: Attribute index: 16
    00:21:45.59: LDAP URL produced address [email protected]
    00:21:45.59: mmc_read_url result: [mail] [email protected]
    00:21:45.59: URL resolution returned: [mail] [email protected]
    00:21:45.59: Attribute index: 16
    00:21:45.59: LDAP URL produced address [email protected]
    00:21:45.59: No more result to return
    *** Debug output from rewriting a forward envelope address:
    00:21:45.59: Rewriting: Mbox = "mailtes1", host = "portnet.com.sg", domain = "$*", literal = "", tag = ""
    00:21:45.59: Rewrite: "$*", position 0, hash table -
    00:21:45.59: Found: "$A$E$F$U%[email protected]"
    00:21:45.59: Match, pattern = "portnet.com.sg", current = "(*domaincheck*)"
    00:21:45.59: old state = not checked.
    00:21:45.59: Domain check on portnet.com.sg.
    00:21:45.59: Added domain result 1 to cache for portnet.com.sg.
    00:21:45.59: new state = succeeded.
    00:21:45.59: New mailbox: "mailtes1".
    00:21:45.59: New host: "portnet.com.sg".
    00:21:45.59: New route: "mailsit.portnet.com.sg".
    00:21:45.59: New channel system: "mailsit.portnet.com.sg".
    00:21:45.59: Looking up host "mailsit.portnet.com.sg".
    00:21:45.59: - found on channel l
    00:21:45.59: Routelocal flag set; scanning for % and !
    forward channel = l
    channel description =
    channel user filter =
    dest channel filter =
    source channel filter =
    channel flags #0 = BIDIRECTIONAL MULTIPLE IMMNONURGENT NOSERVICEALL
    channel flags #1 = NOSMTP DEFAULT
    channel flags #2 = COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
    channel flags #3 = LOGGING NOGREY NORESTRICTED RETAINSECURITYMULTIPARTS
    channel flags #4 = EIGHTBIT NOHEADERTRIM NOHEADERREAD RULES
    channel flags #5 = MASTER_DEBUG SLAVE_DEBUG
    channel flags #6 = LOCALUSER REPORTNOTARY
    channel flags #7 = NOSWITCHCHANNEL NOREMOTEHOST DATEFOUR DAYOFWEEK
    channel flags #8 = NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
    channel flags #9 = NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALSYSTEM NOTURN
    defaulthost = portnet.com.sg portnet.com.sg
    linelength = 1023
    channel env addr type = SOURCEROUTE
    channel hdr addr type = SOURCEROUTE
    channel official host = mailsit.portnet.com.sg
    channel queue 0 name = LOCAL_POOL
    channel queue 1 name = LOCAL_POOL
    channel queue 2 name = LOCAL_POOL
    channel queue 3 name = LOCAL_POOL
    channel after params =
    channel user name =
    urgentnotices = 1 2 4 7
    normalnotices = 1 2 4 7
    nonurgentnotices = 1 2 4 7
    channel rightslist ids =
    local behavior flags = %x7
    expandchannel =
    notificationchannel =
    dispositionchannel =
    saslswitchchannel =
    tlsswitchchannel =
    backward channel = l
    header To: address = [email protected]
    header From: address = [email protected]
    envelope To: address = [email protected] (route (mailsit.portnet.com.sg,mailsit.portnet.com.sg)) (host portnet.com.sg)
    envelope From: address = [email protected]
    name =
    mbox = mailtes1
    emails sent to mailtes1 using the Sun messaging 2005q4 service will be en-queued as '[email protected]' for sender and de-queued to mail store with '[email protected]' as sender.
    10-Dec-2007 00:20:00.88 tcp_intranet ims-ms E 1 [email protected] rfc822;[email protected] mailtes1@ims-ms-daemon
    10-Dec-2007 00:20:01.63 ims-ms D 1 [email protected] rfc822;[email protected] mailtes1@ims-ms-daemon
    Physical message file will show '[email protected]' as sender.
    But this time the recipient is '[email protected]'
    Return-path: <[email protected]>
    Received: from portnet.com.sg (pnsgsit1app2.portnet.com [10.106.65.36])
    by mailsit.portnet.com.sg
    (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
    with ESMTP id <[email protected]> for
    [email protected]; Mon, 10 Dec 2007 00:20:00 +0800 (SGT)
    Received: from [10.106.65.101] (Forwarded-For: 10.10.140.109)
    by mailsit.portnet.com.sg (mshttpd); Mon, 10 Dec 2007 00:20:00 +0800
    Date: Mon, 10 Dec 2007 00:20:00 +0800
    From: [email protected]
    Subject: test mail from ims62
    To: [email protected]
    Message-id: <[email protected]>
    MIME-version: 1.0
    X-Mailer: Sun Java(tm) System Messenger Express 6.2-8.04 (built Feb 28 2007)
    Content-type: text/plain; charset=us-ascii
    Content-language: en
    Content-transfer-encoding: 7bit
    Content-disposition: inline
    X-Accept-Language: en
    Priority: normal
    Original-recipient: rfc822;[email protected]
    test
    Questions:
    1) How do i retain the functionality of using 1st value of the mail attribute as the address to be used?
    I need the address reversing to retain '@portnet.com.sg' value.
    2) I've not encountered the same problem when using ims52.
    Is there a functional diffences here?

    Hi Shane,
    Thank you for the reply.
    We tried adding a mailequivalentaddress attribute, eg [email protected] but the From field still have the value from the mail attribute, eg [email protected]. Do we still need to configure anything to make this to work?
    Besides we tried another option by doing the following:
    a. Changing the following lines in options.dat file:
    REVERSE_URL=ldap:///$V?mail?sub?$Q
    to
    REVERSE_URL=ldap:///$V$N?sub?$R
    b. We ensure that '@portnet.com.sg' is the 1st value
    c. adding a 'noreverse' keyword for the 'ims-ms' channel
    And it works without the need for the mailequivalentaddress, is this a proper implementation?
    any implications with putting 'noreverse' for ims-ms channel?
    We're now considering changing of primary address attribute used.
    Need your advise on the following:
    1) Please advise how go about configuring another attribute to store the primary address.
    2) Can we use mailAlternateAddress as the new primary address attribute?
    If a totally new attribute is needed, please advise on the requirements for the creation of this attribute to be usable by Sun Messaging 2005Q4.
    This change was mentioned in the administration guide.
    Chapter 9 The Direct LDAP Algorithm and Implementation
    Seeding the Reversal Cache
    Next the primary address and any aliases attached to the user entry are considered. This information is used to seed the address reversal cache. It plays no part in the current address translation process. First, the primary address, personal name, recipient limit, recipient cutoff, and source block limit attributes are considered. The primary address is normally stored in the �mail� attribute; another attribute can be specified by setting the LDAP_PRIMARY_ADDRESS MTA option appropriately. (The primary address reverses to itself, of course.) There is no default attribute for any of the other attributes. If you want to use them, you must specify them with the LDAP_PERSONAL_NAME, (see Vacation Autoreply Attributes) LDAP_RECIPIENTLIMIT, LDAP_RECIPIENTCUTOFF, (see Limiting Message Recipients) and LDAP_SOURCEBLOCKLIMIT (see Specifying Absolute Message Size Limits) MTA options. The corresponding domain-level recipient limit, recipient cutoff, and source block limit attributes are also considered at this point. User-level settings completely override any domain-level setting.
    Next, any secondary addresses are considered and a cache entry is made for each one. There are two sorts of secondary addresses: Those that undergo address reversal and those that do not. Both must be considered in order to properly seed the address reversal cache because of the need to check for message capture requests in all cases.
    Secondary addresses that undergo reversal are normally stored in the mailAlternateAddress attribute. Another attribute can be specified by setting the LDAP_ALIAS_ADDRESSES MTA option. Secondary addresses that do not undergo reversal are normally stored in the mailEquivalentAddress attribute. Another attribute can be specified with the LDAP_EQUIVALENCE_ADDRESSES MTA option.
    Edited by: sheeyong on Dec 10, 2007 5:25 AM

  • POP email account spins forever, never retrieves mail - how to cure?

    I've made no changes to my OS Lion mail settings, but suddenly (yesterday) my main POP account just spins forever and never retrieves mail nor gives an error.  Also now sometimes I have to force quit the client because mail never completely quits the normal way.  I've installed all the OS updates, and my iphone and ipad can retrieve the mail from that account with the same settings just fine.
    Help?

    This has just started for me in exactly the same way after I updated my wifes comp to 10.7.5. The iphones and ipads all send and retrieve mail with the same settings with no problems at all.
    Did you finally solve this problem?

  • Populate TargetAddress from Mail attribute

    Hi,
    I have a management agent pulling AD information from a domain without Exchange, and I want to populate Target Address using the Mail attribute by putting SMTP:[email protected] infront of it.
    I've found this article, but having not done any dev work before I'm a bit lost.
    https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.metadirectoryservices.imasynchronization.mapattributesforimport(v=vs.100).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2
    Something like cd.user:("SMTP:"mail)->mv.person:targetAddress
    Can anyone point me the in right direction to write a custom expression to do this?
    Thanks,
    James

    Hello,
    ok thought you use portal as you ask for a "custom expression".
    So so generating the MA rules extension project and create the advanced flow in mA see the following links:
    http://www.wapshere.com/missmiis/advanced-attribute-flow-rules
    https://technet.microsoft.com/en-us/library/cc720667%28v=ws.10%29.aspx
    The flowrulename you set in the MA on the advanced attribute flow will be used in the code to point to the correct code part, I like to use friendly names here like: export_targetAddress.
    you code in the MapAttributesForExport Method goes like this then:
    Case "export_targetAddress"
    If mventry("mail").IsPresent Then
    csentry("targetAddress").Value = "SMTP:" & mventry("mail").Value
    Else
    csentry("targetAddress").Delete()
    End If
    Regards
    Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • Can autoreply use Mail attribute for From header in autoreply?

    Hi:
    We've recently moved from 5.x to 6.2, and users are complaining that autoreply/vacation messages are coming with the user's mailEquivalentAddress in the From: header rather than the email address that is in the Mail attribute. In our case, Mail is set to [email protected]
    Here's our version info:
    jeffw@ash:/ims/log# imsimta version
    Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
    libimta.so 6.2-3.04 (built 01:43:03, Jul 15 2005)
    SunOS ash.usg.tufts.edu 5.9 Generic_118558-08 sun4u sparc SUNW,Netra-T12

    Well, "noreverse" will prevent "from" address from being rewritten.
    However, from your description of the problem, it's likely to have no effect at all.
    A normal rewrite is when a "mailAlternateAddress" gets rewritten. You said you use "mailEquivalentAddress". That should never be rewritten. If you're indeed using "mailAlternateAddress", then it might work. Try it.... If you're really using, "mailEquivalentAddress", then Sanjay is barking up the wrong tree......

  • Mail hanging and seldom retrieving mail, Mail hanging and seldom retrieving mail

    When I have Mail running (5.1) all that happens is the circular progress thingy is trying to retrieve Mail constantly when I opened up the the Inbox triangle it is the iCloud mail sync progress circle thats because Mail is set to sync. Is that OK and good for the system or is it best to be switched off?

    When I have Mail running (5.1) all that happens is the circular progress thingy is trying to retrieve Mail constantly when I opened up the the Inbox triangle it is the iCloud mail sync progress circle thats because Mail is set to sync. Is that OK and good for the system or is it best to be switched off?

  • Dear Fellows. Is there a problem with iPhones mail in general retrieved mail ?

    Is there a problem with iPhones mail in general retrieved mail ?

    My error message reads....  "Cannot get mail"...the mail server imap.gmail.com<http://imap.gmail.com> is not responding"
    John J. Divers https://discussions.apple.com/Roof Logo Small
    Chief Operating Officer and
    Chief Financial Officer
    ******<x-apple-msg-load://8778A9C9-0671-419A-B2DB-CD4A3315BA86/*****>
        https://discussions.apple.com/CDT Logo for Email Signature <http://www.cdt.biz/>
    tel:  212-271-5084<tel:212-271-5084>
    fax: 212-271-5079<tel:212-271-5079>
    *****<x-apple-data-detectors://1/2>
    New York, NY 10018-7702<x-apple-data-detectors://1/2>
    <Personal Information Edited By Host>

  • How can I 'reactivate' my 'Get Mail" button so I can retrieve mail manually. I does come in at various intervals. I  have a Mac OSX 10.5.8

    how can I 'reactivate' my 'Get Mail" button so I can retrieve mail manually. The emails do come in at various intervals. I  have a Mac OSX 10.5.8/\. The small envelope 'button does change colour when I click it, but I don't get that whirling gear.

    Thank you for the reply. At your suggestion, I did try 'get new mail' under Mailboxes, but still nothing, no whirling gear. As I wrote earlier, emails do come in at various intervals, but just not when I click the envelope icon.

  • Not retrieving mail

    Hello,
    I was wondering if anyone knows why my iPhone is not retrieving email today. It has never had an issue before, but today it is not retrieving mail. It also would not get into the App Store yesterday. I have heard that there has been speed issues lately, but....
    David

    Nevermind I deleted some messages and it works all of the sudden.

Maybe you are looking for