Do you talk of this http://james.apache.org/installation_instructions_2_1.html ?
Well i didn't create account and obviously i missed something

Here is the  transport  processor

     <processor name="transport">
        <mailet match="All" class="RemoteDelivery">
           <outgoing> file://var/mail/outgoing/ </outgoing>
           <delayTime>  5 minutes </delayTime>
           <delayTime> 10 minutes </delayTime>
           <delayTime> 45 minutes </delayTime>
           <delayTime>  2 hours </delayTime>
           <delayTime>  3 hours </delayTime>
           <delayTime>  6 hours </delayTime>
           <maxRetries> 25 </maxRetries>
           <deliveryThreads> 1 </deliveryThreads>
           <sendpartial>false</sendpartial>
        </mailet>
     </processor>

And it still doesn't work

Santosh a écrit :

You said you have a sendmail server running on the same system. Do you
integrate James as instructed on the website?

Santosh.

-----Original Message-----
From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 4:14 PM
To: James Users List
Subject: Re: send mail

Hi

The thing i want is to receive mail, manage them and then send a reply from the [EMAIL PROTECTED]
Here is my config.xml :

<processor name="root">
       <mailet match="[EMAIL PROTECTED]"
class="ToProcessor">
          <processor> transport </processor>
       </mailet>

       <mailet match="All"  class="MessageSave">
         <folder>/home/thibaut/tmp/unavailable</folder>
         <subject>You have been marked as UNAVAILABLE</subject>
<content>Send a message to [EMAIL PROTECTED] to reset.</content>
       </mailet>

       <mailet match="RelayLimit=30" class="Null"/>
...

But the confirmation mail from "[EMAIL PROTECTED]" doesn't arrive. I'm pretty sure the confirmation mail goes to the "transport" processor but i can't see why it doesn't send it ...
The debug info of the sun javamail package say the mail is sent.

Is that the way i shoud do that ? What is the correct way ?
Do i have to configure DNS to make it works ?

Before installing James there was sendmail configured on the server and it worked properly.

Thibaut

Thibaut a écrit :

I try to post the reply with [EMAIL PROTECTED] email. There are no

error but i don't receive anything in the [EMAIL PROTECTED] mailbox ...

Here is the config.xml file i'm trying to make working :
<processor name="root">
<mailet match="[EMAIL PROTECTED]" class="ToProcessor">
          <processor> transport </processor>
       </mailet>

       <mailet match="All"  class="MessageSave">
         <folder>/home/thibaut/tmp/unavailable</folder>
         <subject>You have been marked as UNAVAILABLE</subject>
<content>Send a message to [EMAIL PROTECTED] to reset.</content>
       </mailet>

       <mailet match="RelayLimit=30" class="Null"/>
...

Santosh a écrit :

Hi,

Please check if the following <mailet> tag that you have created has
not
been inserted at the tail of processors.

<mailet match="All"  class="MessageSave">
         <folder>/home/thibaut/tmp/unavailable</folder>
         <subject>You have been marked as UNAVAILABLE</subject>
         <content>Send a message to [EMAIL PROTECTED] to
reset.</content>
</mailet>

If so, remove it from there and insert it in the beginning. i.e. just
below the <processor name="root"> tags.

And as far as the error is concerned, the RemoteAddrNotInNetwork
seems
to be causing this problem. (Note: See the <notice>)

<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
          <processor> relay-denied </processor>
          <notice>550 - Requested action not taken: relaying
denied</notice>
</mailet>

Santosh.

-----Original Message-----
From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12,

2006 4:21 PM
To: James Users List
Subject: Re: send mail

Thank you for your answer. When i send a confirmation mail I send it to the james server ... therefore it receives it but don't relay it. (the mail goes to the <processor name="root"> process)

What do i have to do to send a mail as the sendMail linux service
does ?
Santosh a écrit :



Did you look at the JavaMail logs that get printed upon setting
session.setDebug(true)?

Santosh.

-----Original Message-----
From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 11:43 PM
To: James Users List
Subject: Re: send mail

I configured the "config.xml" like that :

   <processor name="root">
      <mailet match="All"  class="MessageSave">
        <folder>/home/thibaut/tmp/unavailable</folder>
        <subject>You have been marked as UNAVAILABLE</subject>
<content>Send a message to [EMAIL PROTECTED] to reset.</content>
      </mailet>
...
   </processor>

In "MessageSave.java" :

 public void service(Mail mail)
 {
     try {
          saveMailInDataBase(mail);
          sendConfirmationMail(mail);
...
      }
 }

In the "sendConfirmationMail(mail)" :

   Properties props = System.getProperties();
     props.put("mail.smtp.host", "localhost");
     Session session = Session.getDefaultInstance(props, null);
     MimeMessage message = new MimeMessage(session);
     message.setFrom(new InternetAddress(this.from));
     InternetAddress adresTo = new InternetAddress(to);
     message.addRecipient(Message.RecipientType.TO, adresTo);
     message.setSubject(subject);
     message.setContent(content, "text/html");
     javax.mail.Transport.send(message);


I have no problem to saveMailInDataBase but this doesn't send any mail back ...

My log :

 541 javax.mail.SendFailedException: Sending failed;
 542   nested exception is:
 543         class javax.mail.SendFailedException: Invalid
Addresses;


 544   nested exception is:
545 class javax.mail.SendFailedException: 550 - Requested action not taken: relaying denied
 546
 547         at javax.mail.Transport.send0(Transport.java:218)
 548         at javax.mail.Transport.send(Transport.java:80)





The adresses are not invalid






Norman Maurer a écrit :



Sorry but i don't understand whats your problem.. Please can you

explain


a bit more and add logs or something like that ?

bye

Am Dienstag, den 11.04.2006, 19:01 +0200 schrieb Thibaut:



hi,

I receive email on the port 25 with james. I try to send email
from
the

james server (to confirm the reception).

I do :

          Properties props = System.getProperties();
          props.put("mail.smtp.host", "localhost");
          Session session = Session.getDefaultInstance(props,
null);


          MimeMessage message = new MimeMessage(session);
          message.setFrom(new InternetAddress(this.from));
          InternetAddress adresTo = new InternetAddress(to);
          message.addRecipient(Message.RecipientType.TO,
adresTo);
          message.setSubject(subject);
          message.setContent(content, "text/html");
          javax.mail.Transport.send(message);


but this doesn't work. (no error but no mail leaves)
I read http://james.apache.org/FAQ.html#3 but i can't figure out the solution.

Can anyone help me ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to