Working with JAMES 1.21, I tried to do as suggested by Serge and then Danny
with the RemoteDelivery Mailet.. There are three attemps shown below. The
first is trying to (as per what I could get from the Mailet API JavaDocs)
send the mail through the error processor. The second was just trying to
send the mail through any processor. The third is just a hard-coded
postmaster address. I got the same infinite loop exceptions shown after
with either case. I guess I am missing something on how to either have this
error mail go to postmaster or send it through to another processor. Any
insight is much appreciated. Also, I do not know what the reference to the
processor <ghost> is; I do have a mailet called GhostDelivery and a matcher
caller RecipientIsGhost though.
------------------------------------------------------------
try {
//getMailetContext().bounce(mail, reason);
Vector recips = new Vector();
recips.addElement(getMailetContext().getPostmaster().toString());
getMailetContext().sendMail(getMailetContext().getPostmaster(),(Collection)r
ecips,mail.getMessage(),"error");
} catch (MessagingException me) {
------------------------------------------------------------
try {
//getMailetContext().bounce(mail, reason);
Vector recips = new Vector();
recips.addElement(getMailetContext().getPostmaster().toString());
getMailetContext().sendMail(getMailetContext().getPostmaster(),(Collection)r
ecips,mail.getMessage());
} catch (MessagingException me) {
------------------------------------------------------------
try {
//getMailetContext().bounce(mail, reason);
Vector recips = new Vector();
recips.addElement("postmaster@localhost");
getMailetContext().sendMail(getMailetContext().getPostmaster(),(Collection)r
ecips,mail.getMessage());
} catch (MessagingException me) {
------------------------------------------------------------
...
Exception in processor <error>
java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.Vector.toArray(Unknown Source)
at
org.apache.james.transport.LinearProcessor.verifyMailAddresses(LinearProcess
or.java:195)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:125)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
166)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
Exception in processor <ghost>
org.apache.mailet.MailetException: Unable to find processor ghost
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
163)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
Exception in processor <error>
java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.Vector.toArray(Unknown Source)
at
org.apache.james.transport.LinearProcessor.verifyMailAddresses(LinearProcess
or.java:195)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:125)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
166)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
Exception in processor <ghost>
org.apache.mailet.MailetException: Unable to find processor ghost
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
163)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
Exception in processor <error>
...
------------------------------------------------------------
Thank you for any help,
Jason
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>