Bug 49563 - New SMTPProtocol and SMTPPort not recognized
Summary: New SMTPProtocol and SMTPPort not recognized
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: Other other
: P3 minor
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on: 25355
Blocks:
  Show dependency tree
 
Reported: 2010-07-06 17:04 UTC by Orair
Modified: 2010-07-06 17:04 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Orair 2010-07-06 17:04:19 UTC
+++ This bug was initially created as a clone of Bug #25355 +++

If my application sends out sensitive info about a severe/fatal application
state via log4j, I don't want eavesdropping attackers to learn about that!


see also Bug 24969  for an RFE re SMTP AUTH


I am trying to set SMTPProtocol using log4j.properties based on log4j1.2-16 lib.
But the property seems not to be recognized:

My log4j.properties:
-----------------------------------------------------------
log4j.appender.emailOut=org.apache.log4j.net.SMTPAppender
#log4j.appender.emailOut.Threshold=INFO
# Debugging
log4j.appender.emailOut.SMTPDebug=true
log4j.appender.emailOut.SMTPHost=smtp.gmail.com

log4j.appender.emailOut.SMTPProtocol="smtps"
log4j.appender.emailOut.SMTPPort=465

log4j.appender.emailOut.BufferSize=20

#log4j.appender.emailOut.To=admin@econoinfo.com.br
log4j.appender.emailOut.To=mailer.econoinfo@gmail.com
log4j.appender.emailOut.layout=org.apache.log4j.PatternLayout
log4j.appender.emailOut.layout.ConversionPattern=%d{ISO8601} %5p [%t](%F:%L)- %m%n
-----------------------------------------------------------

The errors resulted:
-----------------------------------------------------------
log4j:WARN No such property [SMTPProtocol] in org.apache.log4j.net.SMTPAppender.
log4j:WARN No such property [SMTPPort] in org.apache.log4j.net.SMTPAppender.
-----------------------------------------------------------

Also, there is a minor typo error in the file instructing to set smtpProtocol to "smpts" instead of "smtps".