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 Brian Goodrich <br...@personallc.com> on 2005/08/15 18:26:48 UTC

Multi-recipient Bounce

I'm looking for a solution to the problem of sending a multiple  
recipient message to users while some of those users have full  
mailboxes and need a bounced message instead of receiving.   Yet the  
other users still need to receive the same message.

I've written a custom matcher to look for full mailboxes in my email  
system.   It implements the Bounce mailet with the following settings:

<mailet match="QuotaMatcher" class="Bounce">
              <sender>postmaster</sender>
              <attachError>false</attachError>
              <message>This is a Bounced message</message>
              <prefix>This message was returned from ldscenter.com  
because the recipients mailbox did not have sufficient space to  
receive it.</prefix>
              <inline>body</inline>
              <attachment>message</attachment>
              <passThrough>true</passThrough>
              <fakeDomainCheck>true</fakeDomainCheck>
              <debug>true</debug>
</mailet>

And it sends the Bounces just fine, but then still passes the mail  
object with the bounced recipients still in it to my receiver  
mailet.  I'm looking for a way to either remove the "bounced"  
recipients from the mail object that is passed to my reciever mailet  
(I tried to do this in the matcher "Quota Matcher", but the mail  
object does not seem to be persistent throughout the execution of the  
spool) or to create a reference list of non-receiving users that my  
custom receiving mailet can read.

The only solution I can see is for my matcher "Quota Matcher" to  
write out to a file the names of non-receiving users, but I REALLY  
don't want to do that.  I'm looking for other solutions

Thank you,
Brian Goodrich

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


Re: Multi-Domain Bounce (NOT Multi-recipient Bounce)

Posted by Stefano Bagnara <ap...@bago.org>.
> Thanx Stefano for clarification.
>  
> just a thought, wat do the RFC's say abt such behaviour ?

Your intended behaviour is not specified by the RFC.

RFC just states that "postmaster" is a special recipient in smtp and does
not even need to have a domain.

Stefano


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


Re: Multi-Domain Bounce (NOT Multi-recipient Bounce)

Posted by Lahu <la...@yahoo.com>.
Thanx Stefano for clarification.
 
just a thought, wat do the RFC's say abt such behaviour ?

Stefano Bagnara <ap...@bago.org> wrote:
> Any thoughts on this folks ?

IMHO this is not currently possible.
You could add your own "bounceProcessor" with a customized DNSBounce mailet
and your own mailets to do that based on the address to be notified.

Stefano

> ====================================
> 
> 
> Lahu wrote :
> 
> Hi all,
> 
> we host five domains at our shop and use James as SmartHost.. 
> now, if i send out mails from blabla@domain1.com and the mail 
> gets bounced (bounced as in, if its rejected in the SMTP 
> handshake by the remote server and James gets to process the 
> bounce notification)... i receive the NDR via the 
> postmaster@domain1.com .. this is fine and expected behaviour..
> 
> but if i send out mails from blabla@domain2.com or 
> blabla@domain3.com or blabla@domain5.com ; i get the NDR via 
> the same postmaster@domain1.com instead of receiving via 
> postmaster@domain2 ,
> postmaster@domain3 or postmaster@domain5 , despite all the 
> postmaster aliases defined in the postmaster block (config 
> XML) .. is it because the
> postmaster@domain1 is defined at the top in the posmaster 
> block in config ?
> 
> this i dont want to happen... since users from domain1 and 
> domain2 are completely oblivious to each other.. how do i get 
> to have James process NDR's with appropriate domain names ?


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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Multi-Domain Bounce (NOT Multi-recipient Bounce)

Posted by Stefano Bagnara <ap...@bago.org>.
> Any thoughts on this folks ?

IMHO this is not currently possible.
You could add your own "bounceProcessor" with a customized DNSBounce mailet
and your own mailets to do that based on the address to be notified.

Stefano

> ====================================
> 
> 
> Lahu wrote :
>  
> Hi all,
> 
> we host five domains at our shop and use James as SmartHost.. 
> now, if i send out mails from blabla@domain1.com and the mail 
> gets bounced (bounced as in, if its rejected in the SMTP 
> handshake by the remote server and James gets to process the 
> bounce notification)... i receive the NDR via the 
> postmaster@domain1.com .. this is fine and expected behaviour..
> 
> but if i send out mails from blabla@domain2.com or 
> blabla@domain3.com or blabla@domain5.com ; i get the NDR via 
> the same postmaster@domain1.com instead of receiving via 
> postmaster@domain2 ,
> postmaster@domain3 or postmaster@domain5 , despite all the 
> postmaster aliases defined in the postmaster block (config 
> XML) .. is it because the
> postmaster@domain1 is defined at the top in the posmaster 
> block in config ?
> 
> this i dont want to happen... since users from domain1 and 
> domain2 are completely oblivious to each other.. how do i get 
> to have James process NDR's with appropriate domain names ?


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


Re: Multi-Domain Bounce (NOT Multi-recipient Bounce)

Posted by Lahu <la...@yahoo.com>.
Any thoughts on this folks ?

====================================


Lahu wrote :
 
Hi all,

we host five domains at our shop and use James as SmartHost.. now, if i 
send out mails from blabla@domain1.com and the mail gets bounced 
(bounced as in, if its rejected in the SMTP handshake by the remote server 
and James gets to process the bounce notification)... i receive the NDR 
via the postmaster@domain1.com .. this is fine and expected behaviour..

but if i send out mails from blabla@domain2.com or blabla@domain3.com 
or blabla@domain5.com ; i get the NDR via the same 
postmaster@domain1.com instead of receiving via postmaster@domain2 , 
postmaster@domain3 or postmaster@domain5 , despite all the postmaster 
aliases defined in the postmaster block (config XML) .. is it because the 
postmaster@domain1 is defined at the top in the posmaster block in 
config ?

this i dont want to happen... since users from domain1 and domain2 are 
completely oblivious to each other.. how do i get to have James process 
NDR's with appropriate domain names ?

thanx .. 

lahu

P.S I m using James 2.2 with file repository on win2003 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Multi-Domain Bounce (NOT Multi-recipient Bounce)

Posted by Lahu <la...@yahoo.com>.
sorry for inappropriately subjected previous mail 
====================================
Lahu wrote :
 
Hi all,

we host five domains at our shop and use James as SmartHost.. now, if i send out mails from blabla@domain1.com and the mail gets bounced (bounced as in, if its rejected in the SMTP handshake by the remote server and James gets to process the bounce notification)... i receive the NDR via the postmaster@domain1.com .. this is fine and expected behaviour..

but if i send out mails from blabla@domain2.com or blabla@domain3.com or blabla@domain5.com ; i get the NDR via the same postmaster@domain1.com instead of receiving via postmaster@domain2 , postmaster@domain3 or postmaster@domain5 , despite all the postmaster aliases defined in the postmaster block (config XML) .. is it because the postmaster@domain1 is defined at the top in the posmaster block in config ?

this i dont want to happen... since users from domain1 and domain2 are completely oblivious to each other.. how do i get to have James process NDR's with appropriate domain names ?

thanx .. 

lahu

P.S I m using James 2.2 with file repository on win2003 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Multi-recipient Bounce

Posted by Lahu <la...@yahoo.com>.
Hi all,

we host five domains at our shop and use James as SmartHost.. now, if i send out mails from blabla@domain1.com and the mail gets bounced (bounced as in, if its rejected in the SMTP handshake by the remote server and James gets to process the bounce notification)... i receive the NDR via the postmaster@domain1.com .. this is fine and expected behaviour..

but if i send out mails from blabla@domain2.com or blabla@domain3.com or blabla@domain5.com ; i get the NDR via the same postmaster@domain1.com instead of receiving via postmaster@domain2 , postmaster@domain3 or postmaster@domain5 , despite all the postmaster aliases defined in the postmaster block (config XML) .. is it because the postmaster@domain1 is defined at the top in the posmaster block in config ?

this i dont want to happen... since users from domain1 and domain2 are completely oblivious to each other.. how do i get to have James process NDR's with appropriate domain names ?

thanx .. 

lahu

P.S I m using James 2.2 with file repository on win2003 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com