You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "Sharma, Ashutosh" <As...@gs.com> on 2006/12/14 18:34:30 UTC

How to work with email bounces?

I need to deal with soft and hard bounces. Any links or ideas to
implement it? any sample code?

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: How to work with email bounces?

Posted by Norman <nm...@spam-box.de>.
I think for that you need to hack RemoteDelivery. See the failMessage()
method in RemoteDelivery

bye
Norman

Sharma, Ashutosh schrieb:
> Hi Tom,
> Thanks for the response.
> I m just some terminology which is different from yours.
> So my requirement is:
> Find out the email delivery failure-becoz of any reasons like:
> User doesn't exist
> Mailbox is full....
> Etc...
>
> My config file contains this portion from james-config.xml also:
> 	  <!-- Attempt remote delivery using the specified repository
> for the spool, -->
>          <!-- using delay time to retry delivery and the maximum number
> of retries -->
>          <mailet match="All" class="RemoteDelivery">
>             <outgoing> file://var/mail/outgoing/ </outgoing>
>             <!-- alternative database repository example below -->
>             <!-- outgoing> db://maildb/spool/outgoing </outgoing-->
>
>             <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 -->
>             <!-- 5 day retry period, with 4 attempts in the first
>                  hour, two more within the first 6 hours, and then
>                  every 6 hours for the rest of the period. -->
>             <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>
>
> I want to make all the messages which returns to us/not delivered so
> that we can take necessary actions. Read receipts  in not allowed. How
> to do it in Apache James?
>
>
> -----Original Message-----
> From: Tom Brown [mailto:tombrown52@gmail.com]
> Sent: Thursday, December 14, 2006 2:37 PM
> To: James Users List
> Subject: Re: How to work with email bounces?
>
> Hi,
>
> By hard-fail and soft-fail do you mean the difference between a
> permanent failure (such as user does not exist) and temporary failure
> (mailbox is full). These types of failures are different from bounces.
> The difference is whether or not the mail server accepts
> responsibility for delivering the message.
>
> A bounce is when the mail server says "I said I would deliver the
> message, but for some reason cannot deliver it", whereas a the
> permanent and temporary failures are when the mail server says "I know
> I cannot deliver this message accept this message because...".
>
> When you say "I need to deal with...", in what respect? Are you trying
> to send the appropriate bounces, or are you trying to detect when you
> receive them so you can flag a message as unsent?
>
> Tom
>
> On 12/14/06, Sharma, Ashutosh <As...@gs.com> wrote:
>   
>> Sorry for confusing you.
>> Soft bounces is soft errors like user mailbox is full
>> hard bounces is hard errors like user mailbox doesnot exist.
>>
>> -----Original Message-----
>> From: Norman [mailto:nm@spam-box.de]
>> Sent: Thursday, December 14, 2006 12:48 PM
>> To: James Users List
>> Subject: Re: How to work with email bounces?
>>
>> Hi,
>>
>> what you mean with soft and hardbounces ? Permerror and Temporaryerror
>>     
> ?
>   
>> bye
>> Norman
>>
>> Sharma, Ashutosh schrieb:
>>     
>>> I need to deal with soft and hard bounces. Any links or ideas to
>>> implement it? any sample code?
>>>
>>>
>>>       
> ---------------------------------------------------------------------
>   
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: How to work with email bounces?

Posted by "Sharma, Ashutosh" <As...@gs.com>.
Hi Tom,
Thanks for the response.
I m just some terminology which is different from yours.
So my requirement is:
Find out the email delivery failure-becoz of any reasons like:
User doesn't exist
Mailbox is full....
Etc...

My config file contains this portion from james-config.xml also:
	  <!-- Attempt remote delivery using the specified repository
for the spool, -->
         <!-- using delay time to retry delivery and the maximum number
of retries -->
         <mailet match="All" class="RemoteDelivery">
            <outgoing> file://var/mail/outgoing/ </outgoing>
            <!-- alternative database repository example below -->
            <!-- outgoing> db://maildb/spool/outgoing </outgoing-->

            <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 -->
            <!-- 5 day retry period, with 4 attempts in the first
                 hour, two more within the first 6 hours, and then
                 every 6 hours for the rest of the period. -->
            <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>
 
I want to make all the messages which returns to us/not delivered so
that we can take necessary actions. Read receipts  in not allowed. How
to do it in Apache James?


-----Original Message-----
From: Tom Brown [mailto:tombrown52@gmail.com] 
Sent: Thursday, December 14, 2006 2:37 PM
To: James Users List
Subject: Re: How to work with email bounces?

Hi,

By hard-fail and soft-fail do you mean the difference between a
permanent failure (such as user does not exist) and temporary failure
(mailbox is full). These types of failures are different from bounces.
The difference is whether or not the mail server accepts
responsibility for delivering the message.

A bounce is when the mail server says "I said I would deliver the
message, but for some reason cannot deliver it", whereas a the
permanent and temporary failures are when the mail server says "I know
I cannot deliver this message accept this message because...".

When you say "I need to deal with...", in what respect? Are you trying
to send the appropriate bounces, or are you trying to detect when you
receive them so you can flag a message as unsent?

Tom

On 12/14/06, Sharma, Ashutosh <As...@gs.com> wrote:
> Sorry for confusing you.
> Soft bounces is soft errors like user mailbox is full
> hard bounces is hard errors like user mailbox doesnot exist.
>
> -----Original Message-----
> From: Norman [mailto:nm@spam-box.de]
> Sent: Thursday, December 14, 2006 12:48 PM
> To: James Users List
> Subject: Re: How to work with email bounces?
>
> Hi,
>
> what you mean with soft and hardbounces ? Permerror and Temporaryerror
?
>
> bye
> Norman
>
> Sharma, Ashutosh schrieb:
> > I need to deal with soft and hard bounces. Any links or ideas to
> > implement it? any sample code?
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: How to work with email bounces?

Posted by Tom Brown <to...@gmail.com>.
Hi,

By hard-fail and soft-fail do you mean the difference between a
permanent failure (such as user does not exist) and temporary failure
(mailbox is full). These types of failures are different from bounces.
The difference is whether or not the mail server accepts
responsibility for delivering the message.

A bounce is when the mail server says "I said I would deliver the
message, but for some reason cannot deliver it", whereas a the
permanent and temporary failures are when the mail server says "I know
I cannot deliver this message accept this message because...".

When you say "I need to deal with...", in what respect? Are you trying
to send the appropriate bounces, or are you trying to detect when you
receive them so you can flag a message as unsent?

Tom

On 12/14/06, Sharma, Ashutosh <As...@gs.com> wrote:
> Sorry for confusing you.
> Soft bounces is soft errors like user mailbox is full
> hard bounces is hard errors like user mailbox doesnot exist.
>
> -----Original Message-----
> From: Norman [mailto:nm@spam-box.de]
> Sent: Thursday, December 14, 2006 12:48 PM
> To: James Users List
> Subject: Re: How to work with email bounces?
>
> Hi,
>
> what you mean with soft and hardbounces ? Permerror and Temporaryerror ?
>
> bye
> Norman
>
> Sharma, Ashutosh schrieb:
> > I need to deal with soft and hard bounces. Any links or ideas to
> > implement it? any sample code?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: How to work with email bounces?

Posted by "Sharma, Ashutosh" <As...@gs.com>.
Sorry for confusing you.
Soft bounces is soft errors like user mailbox is full
hard bounces is hard errors like user mailbox doesnot exist. 

-----Original Message-----
From: Norman [mailto:nm@spam-box.de] 
Sent: Thursday, December 14, 2006 12:48 PM
To: James Users List
Subject: Re: How to work with email bounces?

Hi,

what you mean with soft and hardbounces ? Permerror and Temporaryerror ?

bye
Norman

Sharma, Ashutosh schrieb:
> I need to deal with soft and hard bounces. Any links or ideas to
> implement it? any sample code?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: How to work with email bounces?

Posted by Norman <nm...@spam-box.de>.
Hi,

what you mean with soft and hardbounces ? Permerror and Temporaryerror ?

bye
Norman

Sharma, Ashutosh schrieb:
> I need to deal with soft and hard bounces. Any links or ideas to
> implement it? any sample code?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org