Package org.jSyncManager.SJS.Adapters.SMTPServer.Config

Examples of org.jSyncManager.SJS.Adapters.SMTPServer.Config.Domain


         //Try and get the user from the local configuration: Make them otherwise
         User user = config.getUsers().get(address[0]);
     if(user==null){
        user = new User(address[0], null);
     }
     Domain dom = config.getDomains().get(address[1]);
     // may not be a local domain, create one if remote
     if(dom == null) {
       dom = new Domain(address[1]);
     }
     currentMsg.addTo(new Address(user,dom));
      }
      return response;
   }   // end processRcpt()
View Full Code Here


    // TO-DO: break into user/domain
       String[] address = from.split("@");

       // User in from might not exist on this system, so pass null for the
       // path string in the User object
       this.from = new Address(new User(address[0],null), new Domain(address[1]));
  }    // end setFrom
View Full Code Here

   * @param currentMsg the message to be stores
   * @param recipient the address of the recipient
   */
  public void store(Message currentMsg, Address recipient) {
    // Get the serverIP of the recipient
    Domain domain = recipient.getDomain();
    String serverIP = DNSUtil.MXLookup(domain.getDomain());
   
    // Check that the serverIP is not null
    if (serverIP == null){
      // If it is, log the error
      logManager.writeExceptionEntry("Error: cannot find MX entry for " + domain.toString());
    }
    // Otherwise, Determine if the serverIP is a preexisting key
    // If it is, store the message there
    else if (table.containsKey(serverIP)){
      RemoteServerMessage RSM = (RemoteServerMessage) table.get(serverIP)// Get the list of messages
View Full Code Here

     Address from;
     Pattern pattern = Pattern.compile(fromExp);
     Matcher matcher = pattern.matcher(msg[0]);
    
     // User path for a from will be null (i.e. we don't know if that user has a mbox on our server)
     from = new Address(new User(matcher.group(1),null), new Domain(matcher.group(2)));
    
     // Get To address
     // Should be the 3rd line in the message data
     List<Address> recipients = new ArrayList<Address>();
     pattern = Pattern.compile(toExp);
View Full Code Here

      if (parts.length != 2) {
         return;
      }
      user = new User(parts[0], null);
      domain = new Domain(parts[1]);
   }   // end Address()
View Full Code Here

TOP

Related Classes of org.jSyncManager.SJS.Adapters.SMTPServer.Config.Domain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.