cancel
Showing results for 
Search instead for 
Did you mean: 

Logging outgoing email?

ftoth
Champ in-the-making
Champ in-the-making
Hi,

Is there a way to turn on logging of outgoing email? I'm trying
to debug an SMTP configuration and I can't see anything in
the default logs. I'd like to be able to verify that connections
are being made to mail servers, etc.

It also strikes me that email logging would be generally useful,
including storing of all outgoing messages as an audit trail. Is
that possible?

Thanks,

Fred
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
We are using the Spring library email support, so you'll probably need to enable DEBUG for the org.springframework.mail package.

I'm don't think there is Audit support for emails.

Kevin

clive
Champ in-the-making
Champ in-the-making
Setting up a new instance of 3.2r on Centos64 Java 1.6.0.11. Having problems with sending e-mail on a server with postfix as localhost …telnet localhost 25 works like a treat….as does sending mail from user tomcat5 which alfresco runs from..

Trying to debug to figure out the issue behind errors in log file whilst sending invites to external users in share :
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: smtp
Caused by: javax.mail.NoSuchProviderException: smtp

webapps/share/WEB-INF/classes/log4j.properties
#MAIL
log4j.logger.org.alfresco.web.bean.TemplateMailHelperBean=debug
log4j.logger.org.springframework.mail=debug

I'm getting no joy from the logger provides no trace prior to the error….please help someone

Clive

cpaul
Champ on-the-rise
Champ on-the-rise
Bump.

I've found log4j entries to turn on debugging for the inbound SMTP server, but not for debugging outgoing email. Anyone have an answer to this?

Thanks in advance!