I think I found a better workaround - buildSessionFromProperties of the SmtpAppenderBase uses System properties as default fallback, so we can supply all those mail.xxxx properties via command line on any other means