cancel
Showing results for 
Search instead for 
Did you mean: 

Mail debug logs activation

snarf77_
Confirmed Champ
Confirmed Champ

Hi all,

I'm facing problems to configure nuxeo to use googlemail smtp after a fresh install of nuxeo 5.5 (another post) but I have not enough information to troubleshoot.

I have activated the mail.debug =true in nuxeo.conf and I imagined that this option would bring me into a more verbose mode but my logs are still the same.

Is there anything else to do to activate this option ?

I did a ubuntu server install based on the repository (no particular installation option) so question is : in which log should go the mail information if option is activated (console.log is the only one I have some information related to my mail problem but is there elsewhere to check ??)

Thanks for any help, I'm really banging my head on my desk....

Snarf

1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hello,

You will find log debug information into the $Nuxeo/log/server.log.

The debug option activate into nuxeo.conf will produce all information of SMTP connexion into this log file. For instance:

DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false 220 mx.google.com ESMTP cy8sm6658407wib.2
DEBUG SMTP: connected to host "smtp.gmail.com", port: 587
You will not see that into the console as there is a bypass for log level higher than INFO by default.

In addition to set mail.debug=true, you probably also have to set the log level to DEBUG for javax.mail in Log4J configuration (as default level is WARN). In $NUXEO_HOME/lib/log4j.xml, add:

<category name="javax.mail">
  <priority value="DEBUG" />
</category>

About the Admin Center, it's only a graphical helper interface for editing nuxeo.conf.

And be careful this debug logs will be not displayed into the console GUI as default log4j configuration specify to stop logs higher than INFO for CONSOLE.

View answer in original post

4 REPLIES 4

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hello,

You will find log debug information into the $Nuxeo/log/server.log.

The debug option activate into nuxeo.conf will produce all information of SMTP connexion into this log file. For instance:

DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false 220 mx.google.com ESMTP cy8sm6658407wib.2
DEBUG SMTP: connected to host "smtp.gmail.com", port: 587
You will not see that into the console as there is a bypass for log level higher than INFO by default.

In addition to set mail.debug=true, you probably also have to set the log level to DEBUG for javax.mail in Log4J configuration (as default level is WARN). In $NUXEO_HOME/lib/log4j.xml, add:

<category name="javax.mail">
  <priority value="DEBUG" />
</category>

About the Admin Center, it's only a graphical helper interface for editing nuxeo.conf.

And be careful this debug logs will be not displayed into the console GUI as default log4j configuration specify to stop logs higher than INFO for CONSOLE.

donbauer1_
Champ in-the-making
Champ in-the-making

I got nuxeo to send email using my company name..

bjalon, thank you for all of your responses, it helped tremendously!

I did find a couple of inconsistencies with the admin setup screens..

First of all, usetls is not in the mail section.. I didn't see it with the mail settings.. however, if you go down to advanced section, the usetls setting is in there...and, right above it was another setting called mail.user .. mine was set to none. I set that to also be the user account (full gmail address), restarted and success!

I would suggest that those mail associated parameters be moved to be with the mail section so they are properly set (with disclaimers, of course)

Thanks to all for this information exchange, it is very helpful

Don Bauer CTO, KnowGov

Thanks for your remark about the parameter order for mail configuration.

https

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.