Mark,

I'm running 3.4 (+plus a few fixes/tweaks I've had to add...). I'm going to be really uneducated here.... If I am running ActiveMQ or RabbitMQ, it's totally under the covers.  I'm not even sure what it used for, unless it's for internal passing of the email.   I have done nothing to configure it.  I assume I've had no problems with it either.  Basically no clue about anything related to ActiveMQ.  Do you have a special requirement to get involved with configuring ActiveMQ?

I'm not using POP.  Just IMAP and SMTP.

If all of the logs are set to debug AND if all of the object paths that are writing logs have a definition in log4j.properties, you should have a pretty good trace of the mail all the way from entering the pipeline until JAMES is 'done' with it.  Most of this should be in mailetcontainer.log.  If you are not seeing a detailed trace of entering/exiting each mailet through the pipeline, we need to start there.  Without some log/trace info, it's going to too much conjecture as to what is happening with the mail item in the pipeline.

Are you familiar with the matcher/mailet philosophy and the mailetcontainer.xml pipeline definition?  I can bring you up to speed quickly on that if necessary.  Knowing that will help determine the problem.

Can you give me a bit more detail defining mail 'getting lost'? Is this only on outbound, only on inbound, or both?  And if outbound, should/does the email get written to the sent folder by James (as opposed to Thunderbird writing a 'copy')?  Does the email not get delivered externally?  If inbound, do you see the mail coming in (in the logs), but it just doesn't show up in a destination folder?

Jerry

On 10/24/2019 7:15 PM, Mark Gordon wrote:
James,

Are you running 3.4?  I don;t think the DNS issue is the problem.  It  is
just really odd.  The log looks correct.  Even when I kick it up to TRACE
for most packages.  THe email just disappears,

Pop and iMAP seem to be working.  SMTP accept the email but then it just
disappears.

I just checked out the GIT repository for the project.  I am going to try
to build. the package.

If you are not using ActiveMQ are you using RabbitMQ?   how is that
configured?

Thanks
Mark





On Thu, Oct 24, 2019 at 4:32 PM Jerry Malcolm <techst...@malcolms.com>
wrote:

I'm not using ActiveMQ.  So I can't make a recommendation there. I
haven't had any problems with DNS.  What do the error messages say?

On 10/24/2019 5:42 PM, Mark Gordon wrote:
Thanks for the response James.

Should I revert back to a previous version?
Is this the first version using ActiveMQ?   SHould I be using an
alternative to ActiveMQ?

I am getting DNS errors when it is trying to resolve localhost.   Looks
like it is also struggling with the hostname.

-Mark












On Thu, Oct 24, 2019 at 2:50 PM Jerry Malcolm <techst...@malcolms.com>
wrote:

Mark,

I'm right with you.... It turns out that log4j.properties has several
omissions.  Several were fixed a month or so ago.  Not sure if your
version picked up the changes.  But I've added even more additions to
get the logging info I have needed in my migration journey.

Here is my list of logger control lines from my current
conf/log4j.properties.  Change all of the INFOs to DEBUGs.  There might
be even more log data if you change everything to TRACE instead of
DEBUG.  Just don't run it too long in that state unless you have a huge
harddrive.

Look for mailet log entries in mailetcontainer.log, specifically from
ToSenderFolder, ToRecipientFolder, and LocalDelivery mailets.  Hopefully
with the heavy logging, it'll show you the folder it puts mail into.

One thing... if you find ANY exception dumps in the logs with the
ReadOnly exception on folders, let's talk.  I've learned a lot about
that problem in the past couple of days.  And if you get that exception
your mail will NOT be stored anywhere.  But I think I've found a fix for
that if you are getting it.

Let me know.

--Jerry

Log4j.properties (not the entire file... just the bottom part of the
file)
log4j.logger.etm.core.monitor.EtmMonitor= INFO, CONS, FILE
log4j.logger.org.apache.james.dnsservice=INFO, DNSSERVICE
log4j.logger.org.apache.james.domainlist=INFO, DOMAINLIST
log4j.logger.org.apache.james.fetchmail=INFO, FETCHMAIL
log4j.logger.org.apache.james.imapserver=INFO, IMAPSERVER
log4j.logger.org.apache.james.lmtpserver=INFO, LMTPSERVER
log4j.logger.org.apache.james.mailboxmanager=INFO, MAILBOXMANAGER
log4j.logger.org.apache.james.mailetcontainer=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.mailetcontext=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.mailprocessor=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.mailqueuefactory=INFO, MAILQUEUEFACTORY
log4j.logger.org.apache.james.mailrepositorystore=INFO,
MAILREPOSITORYSTORE
log4j.logger.org.apache.james.mailspooler=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.pop3server=INFO, POP3SERVER
log4j.logger.org.apache.james.protocols.api=INFO, SMTPSERVER
log4j.logger.org.apache.james.protocols.imap=INFO, IMAPSERVER
log4j.logger.org.apache.james.protocols.smtp=INFO, SMTPSERVER
log4j.logger.org.apache.james.smtpserver=INFO, SMTPSERVER
log4j.logger.org.apache.james.spamassassin=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.transport=INFO, MAILETCONTAINER
log4j.logger.org.apache.james.usersrepository=INFO, USERSREPOSITORY
log4j.logger.org.apache.james.virtualusertable=INFO, VIRTUALUSERTABLE
log4j.logger.org.apache.mailet.base=INFO, MAILETCONTAINER

On 10/24/2019 4:16 PM, Mark Gordon wrote:
I have a virtual ubuntu 18.04 install with postgres 10.  I am trying to
get
apache james 3.4 to work as a simple smtp server and pop3 server.

I unzip'ed the install and edited the james.

I was getting an error on startup so I did this:

mailetcontainer.xml

Was:
           <mailet matcher="All" class="WithPriority">
               <value>8</value>
           </mailet>
Changed:
           <mailet matcher="All" class="WithPriority">
               <priority>8</priority>
           </mailet>



I am running smtp on two ports
smtpserver.xml

        <bind>0.0.0.0:25,0.0.0.0:27</bind>

SEtting auth required to true
           <authRequired>true</authRequired>

My ISP is blocking 25 so I am sending on port 27.

I am adding my domain via james-cli.
<domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
           <!--
      <autodetect>true</autodetect>
      <autodetectIP>true</autodetectIP>
-->
</domainlist>

I used james-cli to add a domain and user with a password.  I checked
the
derby database and both were added correctly.

I have my mx record set at my DNS provider.   I am using thunderbird
and
I
have my smtp server set to this system

I send an email from gmail to the user on this system.

INFO  21:06:39,470 | org.apache.james.smtpserver.SendMailHandler |
Successfully spooled mail
Mail1571951199365-0550fcd4-2530-4595-a4bd-8e2900e90728 from
MaybeSender{mailAddress=Optional[m...@yyyyyyy.com]} on
mail-vs1-f46.google.com/209.85.217.46 for [m...@xxxxxxxx.com]

XXXXX and YYYYY are changed...

I then pop my mail from thunderbird and it connects OK I know this
because
if I enter the wrong password I get an error.  and POP always says that
no
new emails.

it is the same when i send from thunderbird to a gmail account using
james
as my smtp server.I get this in the log:

INFO  21:12:10,931 |
org.apache.james.domainlist.lib.AbstractDomainList |
Local host is: email.
INFO  21:12:11,071 | org.apache.james.smtpserver.SendMailHandler |
Successfully spooled mail
Mail1571951531021-8f8e30e7-ed3d-4520-8649-b4203ce5b408 from
MaybeSender{mailAddress=Optional[m...@xxxxx.com]} on
63.228.129.34/63.228.129.34 for [m...@yyyyyy.com]

but I never get the email.

Where can I go see the spooled email?  I changed the logging to DEBUG
but I
am still not getting much.  POP is not showing much of anything....
actually nothing.

HELP!!!!!!!!

Thanks,
Mark



























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


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



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

Reply via email to