Temporary Failure bounce message to sender
Hello All, Wonder if it is possible for James to send temporary failure messages to the sender.. if James is going to retry delivery of an email. ie - something like this: Warning: could not send message for past 4 hours Deferred: Connection timed out with server.domain.com. Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old Or do i have something configured wrong and it should already be doing this? I see the block in my config.xml that specifies the retry attempts based RFC 2821. Currently users are only receiving the bounce after the very last retry attempt.. which is 5 days from when they sent the email. Thanks for any assistance. -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-264-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Temporary Failure Notices
Morning all, Is their a way to make james send a notice to the sending party if their email was not delivered due to a temporary failure? Right now.. the user does not get a bounce back until 5 days later.. In other email servers i have worked with.. i would receive a message like: Unable to send your email for last 4 hours.. but will keep trying for 5 days type error message. I have users complaining.. since they do not know a message was not delivered until 5 days later... (unless it was a permanent failure of course) Maybe i have something configured wrong? Any assistance would be greatly appreciated. Using James2.2.0 on Sun Solaris 8 for SPARC. With JVM 1.4.2_09 Thanks in advance. TGIF!!! Cj -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-264-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: big attachments crash james...
In the phoenix.sh start script.. try setting some JVM memory parameters. like so: JVM_OPTS=-server -Xms128m -Xmx256m -Djava.ext.dirs=$PHOENIX_HOME/lib This will depend of course on your server configuration and how much RAM you may have.. but this helped me with the exact same problem you are experiencing. Cj Andrew Munn wrote: If I send an email with a large attachment (25 megs will do it) james will not send it and will not send any more emails until I go in and manually delete that message from the outgoing directory. If I restart james and quickly send an email before james attempts to send that 25 meg outgoing message the new email will go out but once james attempts that 25 meg email it stops sending again. Thanks, Andrew W:\james-2.2.0\apps\james\logsmore mailet-2005-03-10-07-30.log 10/03/05 07:30:23 INFO James.Mailet: RemoteDelivery: maxRetries is larger than total number of attempts specified. Increasing last delayTime with 19 attempts 10/03/05 07:30:23 INFO James.Mailet: RemoteDelivery: Delay of 2160 msecs is now attempted: 20 times 10/03/05 07:30:25 INFO James.Mailet: RemoteDelivery: Attempting delivery of Mail1110395510039-599-to-xmedia.net to host ref.xmedia.net. at 66.39.132.2 to addre sses [EMAIL PROTECTED] 10/03/05 07:32:46 INFO James.Mailet: ToRepository: Storing mail Mail1110461564975-0 in file://var/mail/all_mail_archive/ 10/03/05 07:32:51 INFO James.Mailet: RemoteDelivery: Exception delivering message (Mail1110395510039-599-to-xmedia.net) - 552 Error: message too large 10/03/05 07:32:51 INFO James.Mailet: RemoteDelivery: Permanent exception delivering mail (Mail1110395510039-599-to-xmedia.net: javax.mail.MessagingException: 5 52 Error: message too large at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1020) at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:942) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:391) at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.jav a:448) at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:91 2) at java.lang.Thread.run(Unknown Source) 10/03/05 07:32:51 INFO James.Mailet: RemoteDelivery: Sending failure message Mail1110395510039-599-to-xmedia.net 10/03/05 07:32:53 INFO James.Mailet: RemoteDelivery: Exception caught in RemoteDelivery.run() java.lang.OutOfMemoryError: Java heap space 10/03/05 07:32:53 INFO James.Mailet: RemoteDelivery: Attempting delivery of Mail1110461564975-0-to-xmedia.net to host ref.xmedia.net. at 66.39.132.2 to address es [EMAIL PROTECTED] 10/03/05 07:32:53 INFO James.Mailet: RemoteDelivery: Mail (Mail1110461564975-0-to-xmedia.net) sent successfully to ref.xmedia.net. at 66.39.132.2 10/03/05 07:32:53 INFO James.Mailet: RemoteDelivery: Attempting delivery of Mail1110395510039-599-to-xmedia.net to host ref.xmedia.net. at 66.39.132.2 to addre sses [EMAIL PROTECTED] W:\james-2.2.0\apps\james\logsdir Volume in drive W has no label. Volume Serial Number is 6098-ABBF -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copy account
Thank you very much Isaac. I will give this a try in the next day or so. Appreciate the code. Cj Intelekia wrote: Hi Corey, Try compiling this: package com.intelekia.mailets; import java.util.Collection; import java.util.HashSet; import javax.mail.MessagingException; import org.apache.james.core.MailImpl; import org.apache.james.services.MailServer; import org.apache.mailet.GenericMailet; import org.apache.mailet.Mail; import org.apache.mailet.MailAddress; public class CopyMessage extends GenericMailet { Collection recipients = new HashSet(1); String processor = null; MailServer server = null; boolean canServe = false; private static long count; public void init() throws MessagingException { try { recipients.add(new MailAddress(getInitParameter(recipient))); processor = getInitParameter(processor); server = (MailServer) this.getMailetContext(); if (processor != null server != null) { canServe = true; } } catch (Exception e) { e.printStackTrace(); } } public void service(Mail mail) throws MessagingException { if (canServe) { MailImpl mailImpl = (MailImpl) mail; MailImpl copyMail = (MailImpl) mailImpl.duplicate(getId()); copyMail.setRecipients(recipients); copyMail.setState(processor); server.sendMail(copyMail); } } public String getMailetInfo() { return CopyMessage Mailet; } private static String getId() { long localCount = -1; synchronized (CopyMessage.class) { localCount = count++; } StringBuffer idBuffer = new StringBuffer(64) .append(Mail) .append(System.currentTimeMillis()) .append(-) .append(localCount); return idBuffer.toString(); } } Then call it from your config.xml file like this: spoolmanager !-- Number of spool threads -- threads 10 /threads !-- Set the Java packages from which to load mailets and matchers -- mailetpackages mailetpackageorg.apache.james.transport.mailets/mailetpackage mailetpackagecom.intelekia.mailets/mailetpackage /mailetpackages matcherpackages matcherpackageorg.apache.james.transport.matchers/matcherpackage /matcherpackages !-- The root processor is a required processor - Envoy routes all mail on the spool -- !-- through this processor first. -- !-- -- !-- This configuration is a sample configuration for the root processor. -- processor name=root !-- Important check to avoid looping -- mailet match=RelayLimit=30 class=Null/ mailet match=All class=CopyMessage recipient [EMAIL PROTECTED] /recipient processor transport /processor /mailet [... ETC ...] That's it, quite self-explanatory I guess. And i think it would be good if i can have it ignore (not copy) any postmaster emails.. I think you can easily do it yourself by playing with the org.apache.james.transport.matchers SenderIs RecipientIs (or quickly creating a boolean counterpart SenderIsNot RecipientIsNot), like: mailet match=[EMAIL PROTECTED] class=CopyMessage recipient [EMAIL PROTECTED] /recipient processor transport /processor /mailet Hope this helps, Isaac. -Original Message- From: Corey A. Johnson [mailto:[EMAIL PROTECTED] Sent: miƩrcoles, 03 de noviembre de 2004 0:01 To: James Users List Subject: copy account Hello All, Was hoping someone could point me in the right direction. Is their an existing mailet/matcher that would allow for the configuration of a copy account? I have a client that i installed James for.. has been working great.. now they have asked me to setup a copy account. Basically they want a copy of any email sent or received via their James server to be sent to a specific mailbox (on the James server). And i think it would be good if i can have it ignore (not copy) any postmaster emails.. Hoping something exists already. I looked through the mailets and matchers.. it seems some may exist that could be used. But i am not 100% sure. very sorry if their is an obvious solution. i searched the through the mail list archives.. could not find an exact solution. thanks in advance for any advise or nudges! Cj -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need source code
the source code is included in this download: http://portale.praxis.it/pub/james/james-praxis.zip jaysheel bhavsar wrote: The code here is just the mailet code for config.xml file. I was wondering where I can find the actually .java file for the classes that it.praxis.james.mailet.jar files have jay On Thursday 27 May 2004 13:31, Dick Dowdell wrote: You might try http://portale.praxis.it/pub/james/readme.htm;. Regards, Dick Dowdell Argosy Solutions jaysheel bhavsar wrote: Hello everyone, Does anyone know where I can find the source code for it.praxis.james.mailets? thanks jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stop scanning of Return Messages
Thank you for the info. Will give that a try. Correct. i updated the package name.. Only did it because i could not get James to find the class.. and i was in a hurry. Will work on it and change the package back to what it was previously. I added the extra package to my config.xml.. and added the jar to my install. but still received a Class Not Found exception when it tried to load the IsInfected mailet. Obviously i was doing something wrong.. will fix as soon as i can. Cj Vincenzo Gianferrari Pini wrote: anytime a bounce email is scanned.. i get this exception: IsInfected: Exception caught javax.mail.MessagingException: Missing start boundary at ...MimeMultipart.parse(MimeMultipart.java:297) at ...MimeMultipart.getCount(MimeMultipart.java:159) at ...IsInfected.dumpPart(IsInfected.java:442) ... Seems to me that the IsInfected matcher should be more robust, if it is throwing exceptions just because the message body isn't in MIME format. But I haven't seen the code. Looking at my last 30 days log, I found this exception 22 over about 58,000 messages scanned (with 7600 viruses found). There are sometimes other exceptions thrown, due to the fact that there are sometimes some malformed messages flowing (especially the spam ones) that do not follow the rules. I'll have a look at it. I suggest anyhow to have a two level defense: invoking the IsInfected matcher with onMatchException=noMatch set followed by an AttachmentFileNameIs=*.exe *.com filter. Which reminds me. We're going to have to remind people that the org.apache.* name space belongs to the ASF. No one should be using that name space in their own code. The package name I used writing the IsInfected matcher is it.praxis.james.matchers.*, and everything is in a totally separate and signed jar (it.praxis.james.jar). Corey must have inserted my source in his org/apache/james/transport/matchers downloaded from CVS, changed the package declaration and recompiled. THIS IS NOT MY CODE. Vincenzo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stop scanning of Return Messages
thanks again tobe. some good ideas. will give it a go. tobe wrote: As a brief sketch (and I am no expert), I would think that you could check first for [EMAIL PROTECTED] and divert those to a postmaster-processor. In the postmaster-processor you check if the messages originated at another machine by RemoteAddrNotInNetwork=127.0.0.1, discarding the matches. The remaining mails should be from your postmaster and can be safely delivered remotely. /tobe Corey A. Johnson wrote: thanks tobe. The server is used for inbound email only. i thought about bypassing the scan based on sender ([EMAIL PROTECTED]) but since a lot of emails spoof the from address.. didn't think that was a good idea. How can i set an attribute on messages generated from James? The main ones i want to avoid scanning are the tons of return attempts that are generated from the spam blacklist rejections. I have a spam processor block (below).. and emails that match any of my InSpammerBlacklist are being sent to: processor name=spam mailet match=All class=Bounce/ mailet match=All class=Null/ /processor The reason i want to stop this.. is because anytime a bounce email is scanned.. i get this exception: 10/05/04 00:03:05 INFO James.Mailet: IsInfected: Exception caught javax.mail.MessagingException: Missing start boundary at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:297) at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159) at org.apache.james.transport.matchers.IsInfected.dumpPart(IsInfected.java:442) at org.apache.james.transport.matchers.IsInfected.match(IsInfected.java:248) at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:342) at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:451) at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:360) at java.lang.Thread.run(Thread.java:534) Maybe i am not going about this the right way? Thanks again. Appreciate any help on this. Cj tobe wrote: Corey A. Johnson wrote: Hello, I am using the Praxis mailet to virus scan emails... and i notice it is scanning even the Return to Sender emails generated from a spam blacklist lookup and rejection. I am sure this is not specific to Praxis.. just has to do with my config. Can anyone suggestion how i could stop it from scanning any bounce/notifysender generated emails? I have an IsInfected Mailet that routes to a processor block named virus.The IsInfected mailet is towards the bottom of my root processor after all the blacklist lookups. Thanks in advance for any suggestions. I am using version 2.2.0RC3 on Sun Solaris 8 for SPARC with JDK 1.4.2_04 Cj I am assuming that you mean the Return to Sender mails you are generating as responses. I also assume that you actually wish to scan outgoing mail for viruses (if not, well then send them out before you scan) I think the notices generated by James have a specific sender (like [EMAIL PROTECTED]), this could be used to divert them past the scan. You could also set a mail-attribute and use that. /tobe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stop scanning of Return Messages
Yes. Did not work... but again.. i was in a panic when i configured it.. (had a user that was getting BOMBARDED with viruses) so no doubt i may have had a typo or mistake somewhere in my config. Will try again this weekend. Thanks Vincenzo, Cj Vincenzo Gianferrari Pini wrote: Correct. i updated the package name.. Only did it because i could not get James to find the class.. and i was in a hurry. Will work on it and change the package back to what it was previously. I added the extra package to my config.xml.. and added the jar to my install. but still received a Class Not Found exception when it tried to load the IsInfected mailet. Obviously i was doing something wrong.. will fix as soon as i can. Cj Did you put the jar in james/apps/james/SAR-INF/lib (in James 2.2.*)? It works for me there. Vincenzo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Tracking each piece of mail through the system
I created a Mailet that logs info about any rejection to a MySQL DB. Was pretty straight forward. I can send you the source if you like. Cj J Malcolm wrote: Never got a response on this one. Justing bumping it back to the top of stack. Anybody got any suggestions on how to track end to end? Thanks. Jerry -Original Message- *From:* J Malcolm [mailto:[EMAIL PROTECTED] *Sent:* Friday, March 19, 2004 3:20 PM *To:* James Users List *Subject:* Tracking each piece of mail through the system Ive got a situation where some legit mail is being categorized as spam. I run a few of the default spam blockers that come with James. But I cant figure out which one is causing a spam hit. Im familiar with all the various logs. But there doesnt appear to be a single routing log that tracks a note through all the processors/matchers/mailets. Am I missing something? Is there an easy way to enable some sort of tracking log? Thanks. Jerry -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory in spoolmanager
thank you for this! i have a customer with two RH 9 servers running Tomcat.. and Tomcat would die after running fine for a week or so.. with OutOfMemoryErrors.. and the same web apps ran for months on Solaris servers... i am sure this is the cause.. thanks Noel. Happy New Year to all! Cj Noel J. Bergman wrote: If any of you are running a version of linux that ships with NPTL and are experiencing this problem, see: http://developer.java.sun.com/developer/bugParade/bugs/4959566.html. As an interim solution, before updating your servers, you can set LD_ASSUME_KERNEL=2.4.1 before running James. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory in spoolmanager
I had this happen a few times. For some reason a message was caught in my queue.. and looping indefinitely.. i had to bring down James.. and then manually delete messages our of the queue. It has happened a few times.. Still have not figured out why a message would get stuck in the queue and stay there.. since it should die after a certain amount of hops. or attempts. Wish i know how to fix it.. has been on my need to fix this asap list for a while. I am using some custom matchers and mailets.. so i have always thought that it may be something i did that was causing some weirdness in routing messages.. Cj Cesar Bonadio wrote: Hello We are using james version 2.1.2 and after 5 days the server logs the following message in james-spool 30/12/03 00:51:46 ERROR spoolmanager: Exception in JamesSpoolManager.run null java.lang.OutOfMemoryError 30/12/03 00:51:48 ERROR spoolmanager: Exception in JamesSpoolManager.run null java.lang.OutOfMemoryError 30/12/03 00:51:51 ERROR spoolmanager: Exception in JamesSpoolManager.run null java.lang.OutOfMemoryError If we restart the server everything goes fine but after 5 days I get those messages and the server stop processing messages in the spool, the smtp works fine but it only puts messages in the spool and the messages stay there. The maximum message size is set to 15000 and there was a message this large in the spool, but after I restart the message was processed correctly with no errors. Any idea of parameter that I could change? java version 1.4.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) Running on a Linux with RedHat 7 with 1Gig of memory Another thing I notice is that when this happens the CPU load goes UP and if I list the processes I see the java process thread eating a lot of CPU Thanks for any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Determine Message Size in Mailet
Weird problem. I am doing the same thing in a mailet.. without any issues. But i am running on Solaris 8 for SPARC. can you email to list the service method code for your mailet? Cj Kraig Schario wrote: I am having a problem with a mailet when copying the Mail mail object to a MimeMessage. MimeMessage message = mail.getMessage(); It only occurs when the message contains large attachments. Usually larger than 2 MB. I receive the following error in the Mailet.log java.lang.OutOfMemoryError And the message is sent to the Error Processor. Is there a way to test the size of the mail object before copying it to a MimeMessage to access the getSize() method? I experience the problem in both James 2.1.3 and James 2.2.0a15. Runing on RedHat 9 or on Windows XP and 2000. The systems have 512 MB and 1.8GHz processors, so I don't think it is resource related. I am using Sun Java version j2re1.4.2_03 Thanks Kraig Schario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems sending email to Yahoo some others
Seems like he does have DNS configured. Since he can email some domains.. Do you have other DNS servers that you can try in your config? Instead of Network Solutions? Was not even aware that NetSol would allow you to use their DNS for recursive queries.. Cj Noel J. Bergman wrote: RemoteDelivery: Attempting delivery of Mail1072703892625-2-to-yahoo.com to host yahoo.com to addresses [EMAIL PROTECTED] Your James installation doesn't have DNS servers properly configured. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Determine Message Size in Mailet
Are you running any special start-up parameters with the JVM? I have Phoenix (James) running with these parameters: JVM_OPTS=-server -ms384m -mx384m -Djava.ext.dirs=$PHOENIX_HOME/lib The above is used in the phoenix.sh startup script. The server i am running James on has 2GB RAM.. so you may want to lower the 384 to maybe 256m or 128m... since your server is running with 512MB RAM. Not sure if it is related.. but you could try this and see if you still get the OutOfMemoryError. Cj Kraig Schario wrote: The service code is as follows: I have only inclued the part where the problem occurs. From what I can tell in all logging, is that it enters the mailet, it logs the message: 'Copying to MimeMessage', then I get the java.lang.OutOfMemoryError and it never logs the 'Message getSize' line. As I said previously, it only does this on messages with large attachments. public void service(Mail mail) throws MessagingException { try { log(Copying to MimeMessage); MimeMessage message = mail.getMessage(); log(Message getSize() + message.getSize()); . . . catch (Exception e) { log(Exception: + e.getMessage(), e); throw new MessagingException(Exception thrown, e); } } Kraig - Original Message - From: Corey A. Johnson [EMAIL PROTECTED] To: James Users List [EMAIL PROTECTED] Sent: Monday, December 29, 2003 10:26 AM Subject: Re: Determine Message Size in Mailet Weird problem. I am doing the same thing in a mailet.. without any issues. But i am running on Solaris 8 for SPARC. can you email to list the service method code for your mailet? Cj Kraig Schario wrote: I am having a problem with a mailet when copying the Mail mail object to a MimeMessage. MimeMessage message = mail.getMessage(); It only occurs when the message contains large attachments. Usually larger than 2 MB. I receive the following error in the Mailet.log java.lang.OutOfMemoryError And the message is sent to the Error Processor. Is there a way to test the size of the mail object before copying it to a MimeMessage to access the getSize() method? I experience the problem in both James 2.1.3 and James 2.2.0a15. Runing on RedHat 9 or on Windows XP and 2000. The systems have 512 MB and 1.8GHz processors, so I don't think it is resource related. I am using Sun Java version j2re1.4.2_03 Thanks Kraig Schario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems sending email to Yahoo some others
But he can email most others.. so i tend to disagree. It would seem if DNS was not properly configured in james.. he would not be able to email most domains.. and only email some. Rich - can you send the dnsserver block from your config.xml? I do feel that is may be related to using NetSol DNS... instead of local... but still seems odd that most other domains work... Cj Noel J. Bergman wrote: Seems like he does have DNS configured. Since he can email some domains. I said *properly* configured. He can e-mail some domains because for some domains the mail server is the same as the domain. That is not true of others such as Yahoo!, so the DNS is necessary to resolve MX records. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems sending email to Yahoo some others
Agreed. Never meant that it would not be an issue with the DNS servers he was using. You are touchy! Relax man. Cj Noel J. Bergman wrote: It would seem if DNS was not properly configured in james.. he would not be able to email most domains.. and only email some. As I said, his configuration does not have valid DNS servers: server216.168.225.173/server server216.168.225.174/server He needs to get DNS support from his upstream provider, or run a DNS. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems sending email to Yahoo some others
Seems Rich is using root servers. Rich - can you not use the same DNS servers that you have in your TCP/IP settings for you PC/Server? i noticed that when you did the nslookup.. your machine was using a different DNS server. this is from your previous email response: nslookup Server: vnsc-pri.sys.gtei.net Address: 4.2.2.1 So amend your config.xml like so: dnsserver servers !-- CONFIRM? -- !--Enter ip address of your DNS server, one IP address per server -- !-- element. The default configuration assumes a DNS server on the localhost. -- server4.2.2.1/server /servers authoritativefalse/authoritative /dnsserver And see if that helps? Cj Noel J. Bergman wrote: Those were the dns server addresses given me by Network Solutions. Are they somehow not valid? They are not valid for your purpose, as you can see: C:\Documents and Settings\noelnslookup Default Server: ns9.attbi.com Address: 204.127.202.19 server 216.168.225.173 Default Server: ns43.worldnic.com Address: 216.168.225.173 set q=mx yahoo.com Server: ns43.worldnic.com Address: 216.168.225.173 (root) nameserver = A.ROOT-SERVERS.NET (root) nameserver = B.ROOT-SERVERS.NET (root) nameserver = C.ROOT-SERVERS.NET (root) nameserver = D.ROOT-SERVERS.NET (root) nameserver = E.ROOT-SERVERS.NET (root) nameserver = F.ROOT-SERVERS.NET (root) nameserver = G.ROOT-SERVERS.NET (root) nameserver = H.ROOT-SERVERS.NET (root) nameserver = I.ROOT-SERVERS.NET (root) nameserver = J.ROOT-SERVERS.NET (root) nameserver = K.ROOT-SERVERS.NET (root) nameserver = L.ROOT-SERVERS.NET (root) nameserver = M.ROOT-SERVERS.NET What you want is something like: yahoo.com Server: [204.127.202.19] Address: 204.127.202.19 Non-authoritative answer: yahoo.com MX preference = 1, mail exchanger = mx2.mail.yahoo.com yahoo.com MX preference = 5, mail exchanger = mx4.mail.yahoo.com yahoo.com MX preference = 1, mail exchanger = mx1.mail.yahoo.com When you run nslookup, it will start by giving you the address of its default DNS server. At the least, you should be able to try that one. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
Hello Sudip, When you say go down Does the JVM completely exit? Or does James stop processing email and needs to be restarted manually? Do you have DEBUG level logging configured in James for all blocks? Cj Sudip Shekhawat wrote: We have 3 James servers running on different machines. And invariably all go down on an average, once a day. 1) The log files created on all the three servers running James2.2.0a8 show that all the three mail servers go down at the same time. I have noticed this behavior more than a couple of time, so I will rule this out as a coincidence. 2) The common things these three mail server share are a) The network b) James version, all 2.2.0a8 c) Our servers (the machine running red hat 9.0, kernel 2.4.20) 3) The current logging of JVM didnt report any alarming output. Currently I have to find a way to increase the logging level for JVM. Any ideas on this is greatly appreciated Sudip _ Have fun customizing MSN Messenger learn how here! http://www.msnmessenger-download.com/tracking/reach_customize - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
Weird that you are not getting any other error in the phoenix.log Do you have any special parameters set in the phoenix.sh start-up script for the JVM? how much RAM does each James server have? I have only seen this on really busy servers.. when the JVM was memory starved.. and the GC thread was not able to reclaim memory fast enough.. But usually you would see the dreaded OutOfMemoryError. Sudip Shekhawat wrote: JVM completely exits with the remark JVM exiting abnormally. Shutting down Phoenix. Yeah I have the debug logging on all the blocks, and they have nothing unusal. Thanks Cj, Hello Sudip, When you say go down Does the JVM completely exit? Or does James stop processing email and needs to be restarted manually? Do you have DEBUG level logging configured in James for all blocks? Cj Sudip Shekhawat wrote: We have 3 James servers running on different machines. And invariably all go down on an average, once a day. 1) The log files created on all the three servers running James2.2.0a8 show that all the three mail servers go down at the same time. I have noticed this behavior more than a couple of time, so I will rule this out as a coincidence. 2) The common things these three mail server share are a) The network b) James version, all 2.2.0a8 c) Our servers (the machine running red hat 9.0, kernel 2.4.20) 3) The current logging of JVM didnt report any alarming output. Currently I have to find a way to increase the logging level for JVM. _ Get reliable dial-up Internet access now with our limited-time introductory offer. http://join.msn.com/?page=dept/dialup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
I would also trying increasing the heap and stack memory a bit. depending on how much RAM the servers have.. maybe something like: -Xms64m and -Xmx128m Above options should follow the -server Hope that helps. Cj Sudip Shekhawat wrote: I am running hotspot, so in phoenix.sh, I have -server -verbosegc -XX:+PrintGCTimeStamps -XX:+PrintCompilation -XX:+PrintGCDetails I added all the other parameters for debugging. I am going to look into the phoenix.log once again when the servers go down. Ours is not a busy server, we get only few hundred mails a day. Thanx sudip Weird that you are not getting any other error in the phoenix.log Do you have any special parameters set in the phoenix.sh start-up script for the JVM? how much RAM does each James server have? I have only seen this on really busy servers.. when the JVM was memory starved.. and the GC thread was not able to reclaim memory fast enough.. But usually you would see the dreaded OutOfMemoryError. _ Expand your wine savvy and get some great new recipes at MSN Wine. http://wine.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
Are you running any custom Mailets or Matchers? Sudip Shekhawat wrote: Yeah i had these flags on, but fron the time I started facing these shutdown problem I had removed all the flags, other than -server. Thank you Sudip I would also trying increasing the heap and stack memory a bit. depending on how much RAM the servers have.. maybe something like: -Xms64m and -Xmx128m Above options should follow the -server Hope that helps. Cj Sudip Shekhawat wrote: I am running hotspot, so in phoenix.sh, I have -server -verbosegc -XX:+PrintGCTimeStamps -XX:+PrintCompilation -XX:+PrintGCDetails I added all the other parameters for debugging. I am going to look into the phoenix.log once again when the servers go down. Ours is not a busy server, we get only few hundred mails a day. Thanx sudip Weird that you are not getting any other error in the phoenix.log Do you have any special parameters set in the phoenix.sh start-up script for the JVM? how much RAM does each James server have? I have only seen this on really busy servers.. when the JVM was memory starved.. and the GC thread was not able to reclaim memory fast enough.. But usually you would see the dreaded OutOfMemoryError. _ Check your PC for viruses with the FREE McAfee online computer scan. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
What would be the reasoning? Just curious.. i have had better experience running any server based long-running java apps with the -server switch. Cj Noel J. Bergman wrote: Remove the -server. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persisting james shutdown problem
gotcha. good point. thought i was missing some important info on using the -server switch. thanks, Cj Noel J. Bergman wrote: What would be the reasoning? Just curious.. i have had better experience running any server based long-running java apps with the -server switch. So have I. But many other people reported problems depending upon the JVM, so it is an easy thing to remove and see if that fixes the problem. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]