https://issues.apache.org/bugzilla/show_bug.cgi?id=49563

           Summary: New SMTPProtocol and SMTPPort not recognized
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
        Depends on: 25355


+++ 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

#[email protected]
[email protected]
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".

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to