I am on OSX 10.8 i have installed the binary version and run the run.sh the
server is running without problem.
I have created created this domain mydomain.tld
and this user [email protected] with password lalala
i have these problem
-> when i run this command:
./james-cli.sh -h 127.0.0.1 -p 9999 listdomains on the apache server i
have this:
INFO 14:26:12,318 | james.domainlist | Local host is: 10.0.0.11
ERROR 14:26:12,318 | james.domainlist | Cannot get IP address(es) for
mydomain.tld
how i can fix the ip address?
And when i am trying to send the e-mail with this function:
public boolean sendEmail(String from, String to, String subject, String
themessage){
boolean send=false;
themessage="<html><head/><body>"+themessage+"</body></html>";
final String username = "[email protected]";
final String password = "lalala";
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
//props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "127.0.0.01");
props.put("mail.smtp.port", "25");
Session session = Session.getInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
try {
Message message = new MimeMessage(session);
message.setHeader("Content-Type", "text/plain;
charset=UTF-8");
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to));
try{
message.setSubject(MimeUtility.encodeText(subject, "utf-8",
"B"));
}catch (Exception e){
System.out.println("Error was caught:
"+e.getLocalizedMessage());
}
message.setContent(themessage,
"text/html;charset=UTF-8");
Transport.send(message);
send=true;
System.out.println("Done");
} catch (MessagingException e) {
System.out.println("Error was caught:
"+e.getLocalizedMessage());
throw new RuntimeException(e);
}
return send;
}
i have this output:
INFO 14:28:59,565 | james.smtpserver | Id='2118470647' User='' Connection
established from 127.0.0.1
INFO 14:28:59,676 | james.smtpserver | Id='2118470647' User=''
Successfully spooled mail
Mail1377602939671-a326ac1e-8e95-48d0-b3d7-3a989eeecef5 from
[email protected] on localhost/127.0.0.1 for [my e-mail]
INFO 14:28:59,718 | james.smtpserver | Id='2118470647' User='' Connection
closed for 127.0.0.1
INFO 14:29:14,783 | james.dnsservice | Couldn't resolve MX records for
domain hotmail.com.
INFO 14:29:14,784 | james.mailetcontext | Temporary problem looking up
mail server for host: hotmail.com
INFO 14:29:14,785 | james.mailetcontext | Temporary exception delivering
mail
(Mail1377602939671-a326ac1e-8e95-48d0-b3d7-3a989eeecef5-to-hotmail.com:
INFO 14:29:14,785 | james.mailetcontext | Storing message
Mail1377602939671-a326ac1e-8e95-48d0-b3d7-3a989eeecef5-to-hotmail.com into
outgoing after 0 retries
Can you please help me? I have spend hours and i can not find solution
Thank you very much