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 assuming that you mean the Return to Sender mails you are generating as responses.
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 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]