GithubHelp home page GithubHelp logo

stephen-kruger / bluebox Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 6.0 4.2 MB

A promiscuous, non-forwarding SMTP server and webmail client to facilitate testing of applications which generate email.

Shell 0.41% Java 99.15% CSS 0.41% Dockerfile 0.03%

bluebox's Issues

Searching by email content when filtered by email brings up doubled email results

Issue: I am seeing doubles of certain emails in the search results.

Steps to reproduce:

  1. Filter by email address first (test_sst_fvt_operations_user_01)
  2. Search for an email subject that occurs in more than one email (OMS NA)
  3. Count the emails = 25. Look at identifying features of each email (there are, for example, 2 emails with fvt01 in them when there should be 1).
  4. Refresh the page to clear the search. Count the emails with this subject in them without the search (the ones with OMS NA in them were all received in a row in one day). There are 21 emails and identifying features of emails are correct (1 email with fvt01 in its subject).

SMTP server is returning error 421 4.3.0 when attempting to send email.

In the file messages.log, I see this:

[12/9/21, 22:09:48:701 UTC] 00000030 com.ibm.ws.channel.ssl.internal.SSLHandshakeErrorTracker
E CWWKO0801E: Unable to initialize SSL connection. Unauthorized access was denied or security settings have expired. Exception is javax.net.ssl.SSLException: Session has no PSK

How do I go about resolving this?

EDIT: Posted the incorrect error message. The error above is when I access the HTTPS site on port 8443. Below is the error I get when I try to send an email from another host that I've DNAT'd to bluebox:

[err] Exception in thread "pool-2-thread-28"                                                                                                                                                                                                            
[err] java.lang.NoSuchMethodError: 'void com.sun.mail.util.LineInputStream.<init>(java.io.InputStream, boolean)'                                                                                                                                        
[err]   at javax.mail.internet.InternetHeaders.load(InternetHeaders.java:422)                                                                                                                                                                           
[err]   at [internal classes]                                                                                                                                                                                                                           
[err]   at com.bluebox.Utils.loadEML(Utils.java:155)                                                                                                                                                                                                    
[err]   at com.bluebox.smtp.storage.mongodb.MongoImpl.getSpooledStream(MongoImpl.java:610)                                                                                                                                                              
[err]   at com.bluebox.smtp.Inbox.deliver(Inbox.java:695)                                                                                                                                                                                               
[err]   at org.subethamail.smtp.helper.SimpleMessageListenerAdapter$Handler.data(SimpleMessageListenerAdapter.java:142)                                                                                                                                 
[err]   at org.subethamail.smtp.command.DataCommand.execute(DataCommand.java:64)                                                                                                                                                                        
[err]   at org.subethamail.smtp.server.RequireTLSCommandWrapper.execute(RequireTLSCommandWrapper.java:30)                                                                                                                                               
[err]   at org.subethamail.smtp.server.CommandHandler.handleCommand(CommandHandler.java:99)                                                                                                                                                             
[err]   at org.subethamail.smtp.server.Session.runCommandLoop(Session.java:244)                                                                                                                                                                         
[err]   at org.subethamail.smtp.server.Session.run(Session.java:145)                                                                                                                                                                                    
[err]   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)                                                                                                                                                    
[err]   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)                                                                                                                                                    
[err]   at java.base/java.lang.Thread.run(Thread.java:829)

I hope this is just some simple configuration issue.

Missing classes from latest release 4.6.0

Hey Stephen! Here's a name from the past, eh? Hope you are doing well.

Just wanted to let you know that your latest 4.6.0 package is missing the servlet classes in WEB-INF/classes. I had to go back to 4.5.16 to find them.

Symbolic link to webapps directory does not exist in RPM

Hi Stephen,
Tthe war file is generated in /var/lib/tomcat6/webapps/ and originally it was creating a symbolic link between that directory and /opt/tomcat6/webapps/ but in version bluebox-4.3.4-1.noarch it's not.

To work around it I've run:
rm -rf /opt/tomcat/webapps/
ln -s /var/lib/tomcat6/webapps/ /opt/tomcat/

Thanks,
Brian

errors.jsp stylig issue

What steps will reproduce the problem?
1. render the errors page from menu bar
2. note thw right hand col (stats.jsp)
3.

What is the expected output? What do you see instead?
The "Total Traffic" header should be approx 1em from bottom of menu bar instead 
of being so far down
See attachment for details


Original issue reported on code.google.com by [email protected] on 10 Jul 2014 at 8:38

Attachments:

JUnit timing failures

What steps will reproduce the problem?
1. Run all JUnit tests
2.
3.

What is the expected output? What do you see instead?
All tests should pass

Please use labels and text to provide additional information.
If you run the failures individually, they all pass.
It seems some threading and/or timing issues are preventing timely shutdown of 
the Storage or Inbox objects.
Will investigate Socket timeout values on the smtp server.


Original issue reported on code.google.com by [email protected] on 30 Jun 2014 at 3:21

Latest release does not work with Websphere Liberty(Open Liberty) in a Docker container

Compared to 4.5.3 release, there are several issues with latest release:

  1. The configuration override is not picked up.
  2. There are warnings about logging not having providers available during startup.
  3. When email is delivered to the server, there is a NullPointerException printed on console:
[err] java.lang.NullPointerException
[err]   at com.bluebox.smtp.storage.h2.H2Impl.setProperty(H2Impl.java:629)
[err]   at com.bluebox.smtp.storage.h2.H2Impl.logError(H2Impl.java:691)
[err]   at com.bluebox.smtp.Inbox.errorLog(Inbox.java:819)
[err]   at com.bluebox.smtp.Inbox.deliver(Inbox.java:709)
[err]   at org.subethamail.smtp.helper.SimpleMessageListenerAdapter$Handler.data(SimpleMessageListenerAdapter.java:158)
[err]   at org.subethamail.smtp.command.DataCommand.execute(DataCommand.java:64)
[err]   at org.subethamail.smtp.server.RequireTLSCommandWrapper.execute(RequireTLSCommandWrapper.java:30)
[err]   at org.subethamail.smtp.server.CommandHandler.handleCommand(CommandHandler.java:99)
[err]   at org.subethamail.smtp.server.Session.runCommandLoop(Session.java:244)
[err]   at org.subethamail.smtp.server.Session.run(Session.java:145)
[err]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[err]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[err]   at java.lang.Thread.run(Thread.java:823)

Following Docker file was used to build the images to run:

FROM open-liberty:kernel-slim

COPY --chown=1001:0  server.xml /config/

RUN features.sh

COPY --chown=1001:0  bluebox.war /config/apps/bluebox.war

ARG VERBOSE=false

RUN configure.sh

USER root
RUN mkdir -p /home/default && chown -R 1001:0 /home/default
USER 1001

COPY --chown=1001:0  bluebox/bluebox.properties /home/default/bluebox.properties

The above works fine with release 4.5.3.

Search inbox or all does not find the message

Search in both 'inbox' and 'All' for scnsvtdsw-20170322-052431
but nothing comes back.
Refresh the the Inboxes and scroll down through the messages and I find the one I am looking for.
Seems something is busted with the Searchabilty.
We know there are untoward exceptions in the server logs.
Please investigate and when you find the cause make the appropriate code or other changes as required to fix the problem. Thanks in advance.

can't accept NDRs from Domino?

What steps will reproduce the problem?
1. Telnet to an MTA and craft an e-mail which has an @bluebox.lotus.com sender 
and an invalid recipient address (but valid domain) that will target an 
environment running Domino mail servers
2. An NDR will bounce back to bluebox.  Bluebox will show an error here: 
http://bluebox.lotus.com/bluebox/app/errors.jsp

javax.mail.internet.AddressException: Illegal address in string ``''


What is the expected output? >> I expected bb to accept NDRs from Domino <<    
What do you see instead? >> an error <<


What version of the product are you using? n/a On what operating system? n/a


Original issue reported on code.google.com by [email protected] on 3 Sep 2014 at 1:48

Available bluebox servers

Stephen, are there any IBM bluebox servers available that can be reached from Internet? We would need them for test automation of a production system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.