<mail from="${framework.email.from}" replyto="${framework.email.replyto}" mailhost="${framework.email.mailhost}" mailport="${framework.email.mailport}" user="${framework.email.user}" password="${framework.email.password}" ssl="${framework.email.ssl}" tolist="ant...@dtosolutions.com" subject="[${context.type}:${context.name} @ ${framework.node}] ${command.name} - ERROR" messagefile="${modules.dir}/Deployment/templates/notice.html" messagemimetype="text/html" files="${command.log.file}" failonerror="${framework.email.failonerror}"/>
<mail from="${framework.email.from}" replyto="${framework.email.replyto}" mailhost="${framework.email.mailhost}" mailport="${framework.email.mailport}" user="${framework.email.user}" password="${framework.email.password}" ssl="${framework.email.ssl}" tolist="ant...@dtosolutions.com" subject="[${context.type}:${context.name} @ ${framework.node}] ${command.name} - SUCCESS" messagefile="${modules.dir}/Deployment/templates/notice.html" messagemimetype="text/html" files="${command.log.file}" failonerror="${framework.email.failonerror}"/>
command.log.file
command.name
context.name
context.type
framework.email.failonerror
framework.email.from
framework.email.mailhost
framework.email.mailport
framework.email.password
framework.email.replyto
framework.email.ssl
framework.email.user
framework.node
modules.dir
[anthony@centos52 tmp]$ ctl -p development -t MyDeployment -o myDeployment -c Properties -- -format plain | sh doegrep
command.name=Properties
context.name=myDeployment
context.type=MyDeployment
framework.email.failonerror=true
framework.email.from=root@localdomain
framework.email.mailhost=localhost
framework.email.mailport=25
framework.email.password=
framework.email.replyto=do-not-reply
framework.email.ssl=false
framework.email.user=
framework.node=centos52
modules.dir=/home/anthony/ctier/ctl/depots/development/modules
[anthony@centos52 tmp]$ telnet localhost 25
Trying 127.0.0.1...
Connected to user1.centos52 (127.0.0.1).
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 7 Oct 2009 20:53:13 -0700
^]
telnet> Connection closed.
[anthony@centos52 etc]$ ctl -p development -t MyDeployment -o myDeployment -c MyWorkflowCommand
Start: "" commands: MyAntCommand
begin workflow command (1/1) -> "MyAntCommand " ...
end workflow command (1/1) -> "MyAntCommand "
[command.timer.development.MyDeployment.MyWorkflowCommand: 0.502 sec]
Workflow completed. execution time: 0.502 sec
Sending email: [MyDeployment:myDeployment @ centos52] MyWorkflowCommand - SUCCESS
Failed to send email: Exception reading response
Command failed: Problem while sending mime mail:
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
com.sun.mail.smtp.SMTPSendFailedException: 553 5.5.4 <root>... Domain name required for sender address root
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
[anthony@centos52 etc]$ ctl -p development -t MyDeployment -o myDeployment -c MyWorkflowCommand
Start: "" commands: MyAntCommand
begin workflow command (1/1) -> "MyAntCommand " ...
end workflow command (1/1) -> "MyAntCommand "
[command.timer.development.MyDeployment.MyWorkflowCommand: 0.390 sec]
Workflow completed. execution time: 0.390 sec
Sending email: [MyDeployment:myDeployment @ centos52] MyWorkflowCommand - SUCCESS
Sent email with 1 attachment
[anthony@centos52 etc]$ cd $CTL_BASE/etc
[anthony@centos52 etc]$ pwd
/home/anthony/ctier/ctl/etc
[anthony@centos52 etc]$ diff framework.properties framework.properties.orig
72c72
< framework.email.from = root@localdomain
---
> framework.email.from = root
76c76
< framework.email.mailhost = localhost
---
> framework.email.mailhost = mail
81c81
< framework.email.ssl = false
---
> framework.email.ssl = true
[anthony@centos52 ControlTier-3.4.8]$ fgrep framework.email default.properties
framework.email.replyto=do-not-reply
framework.email.user=
framework.email.mailhost=mail
framework.email.ssl=true
framework.email.password=
framework.email.tolist=root
framework.email.failonerror=true
framework.email.mailport=25
framework.email.from=root