james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Charles <e...@apache.org>
Subject Re: bounce mail messages
Date Mon, 07 Jan 2013 07:19:49 GMT
Hi,

If you are receiving the bounce and the original message, the issue 
should be more on the way you configured the processors in 
mailetcontainer.conf.

Probably the LocalDelivery is before your CustomMailMailet.

Can you paste here your mailetcontainer.conf?

Thx, Eric

On 06/01/2013 13:10, Rajender Vallapureddy wrote:
> Hi Eric,
>
> I have no problem in receiving the bounce and I won't be need the
> original message in it.
>
> The problem is the original mail is getting to the recipient and the
> bounce mail is being sent to the sender.
>
> Here is my scenario:
>
> When I am sending a self mail, I am receiving the bounce mail as well
> as the original mail both of them being delivered when it should have
> been only the bounce mail that I should be receiving.
>
> Following is my skeleton code of my mailet.
>
> public class CustomMailMailet extends AbstractNotify {
>          @Override
>          public void service(Mail mail) throws MessagingException {
>
>             if(condition fails) {
>                super.service(mail);
>             }
>         }
> }
>
> Following is the my configuration in the mailetcontainer.conf
>
>          <mailet match="com.webmail.matcher.CustomMailMatcher"
> class="com.webmail.mailet.CustomMailMailet">
>            <attachError>true</attachError>
>            <message>mail from non webmail client denied</message>
>            <prefix>bounce</prefix>
>            <attachment>none</attachment>
>            <passThrough>true</passThrough>
>            <debug>true</debug>
>          </mailet>
>
> Appreciate your help on it.
>
> Thank you,
> Regards,
> Rajender
>
>
> On Sat, Jan 5, 2013 at 11:38 PM, Eric Charles <eric@apache.org> wrote:
>> AbstractRedirect
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>

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


Mime
View raw message