outlook smtp setting in rundeck not working

481 views
Skip to first unread message

Rohit Singh

unread,
Sep 7, 2018, 11:10:58 AM9/7/18
to rundeck-discuss
 Error sending notification email to ci********@********.com for Execution 92: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [SN6PR02CA0011.namprd02.prod.outlook.com]


This is error I am getting:


Below the email configuration  in rundeck-config.properties
grails.mail.default.from=CI*********@***********.com
grails.mail.host=smtp.office365.com
#grails.mail.host=localhost
grails.mail.port=587
grails.mail.username=CI******@xxxxxxxxx.com
grails.mail.password=xxxxxxxxxxxxxxxxx
grails.mail.props = ["mail.smtp.starttls.enable":"true","mail.smtp.port":"587"]
grails.mail.javaMailProperties = ["mail.smtp.auth": "true", "mail.smtp.starttls.enable": "true"]


Any one have clue about it:

Glaucio Guerra

unread,
Jun 12, 2019, 8:13:54 PM6/12/19
to rundeck-discuss
Hi Hohit,

I had the same problem,using office 365 as well. I think you already fixed that issue but I will post the solution here just to help someone in the future.

So, because of the "advanced settings" we need to configure to use ssl / starttls for office 365 we need first to convert the rundeck-config.properties to rundeck-config.groovy. For more details how to do that: https://docs.rundeck.com/2.11.3/administration/configuration-file-reference.html#groovy-config-format

After that my config worked fine using this parameters:

grails.mail.default.from = "****@*******"
grails {
   mail {
     host = "smtp.office365.com"
     port = 587
     username = "****@*******""
     password = "****"
     props = ["mail.smtp.auth":"true",
              "mail.smtp.starttls.enable":"true"
             ]
   }
}

Thanks,
Glaucio Guerra

Jose Maquera

unread,
Dec 22, 2022, 3:13:04 PM12/22/22
to rundeck-discuss
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
This worked for me in Windows server
# SMTP settings
grails.mail.default.from=j****@****.com
grails.mail.host=smtp.office365.com
grails.mail.port=587
grails.mail.username= j****@****.com
grails.mail.password=*********
#grails.mail.props=["mail.smtp.auth":"true","mail.smtp.starttls.enable":"true"]
grails.mail.props.mail.smtp.starttls.enable=true
grails.mail.props.mail.smtp.auth=true
Reply all
Reply to author
Forward
0 new messages