Thanks a lot! This is the explanation i wanted exactly.Thanks for your help.

Lakshmi Narayanan
On 1/24/07, Stefano Bagnara <[EMAIL PROTECTED]> wrote:

If you're using James 2.3.0 open config.xml

You will find the following configuration snippet:

  <!-- Is the recipient is for a local account, deliver it locally -->
  <mailet match="RecipientIsLocal" class="LocalDelivery"/>

  <!-- If the host is handled by this server and it did not get -->
  <!-- locally delivered, this is an invalid recipient -->
  <mailet match="HostIsLocal" class="ToProcessor">
     <processor> local-address-error </processor>
     <notice>550 - Requested action not taken: no such user here</notice>
  </mailet>

As you can see if the RecipientIsLocal it is delivered using
LocalDelivery, otherwise if the HostIsLocal (but the recipient does not
exists, otherwise it would have stopped before) it send it to the
local-address-error processor.

Then you go to the processor local-address-error:

<processor name="local-address-error">

There you decide using mailets what to do with mail destinated to
unknown users.

  <mailet match="All" class="ToRepository">
     <repositoryPath> file://var/mail/myuser/</repositoryPath>
     <!-- An alternative database repository example follows. -->
     <!--
     <repositoryPath> db://maildb/inbox/myuser </repositoryPath>
     -->
  </mailet>

There are many other ways to do the same, but I think this is the easiest.

Stefano

Lakshmi Narayanan wrote:
> Hi all,
> Im relatively a newbie to JAMES and found it fascinating.Im doing a
project
> based on Email management.In the project i want to forward all the mails
> which are sent to invalid user ids(bounced mails) to be forwarded to a
> mailbox.Can it be done with Mialet.If so,how?Please help.
>
> Lakshmi Narayanan.B
>



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


Reply via email to