在我的Jenkins电子邮件设置中,“测试电子邮件”可以正常运行,但是执行构建时出现“向以下有效收件人发送电子邮件时出错...”。
我组织的电子邮件服务器不需要SMTP或SSL身份验证,并且使用相同设置测试电子邮件可以完美地工作。我已将触发器添加为“始终”。
什么会导致此问题?请查看我的配置和遇到的错误的屏幕截图。
电子邮件ext插件xml:/ var / jenkins_home#cat hudson.plugins.emailext.ExtendedEmailPublisher.xml
<?xml version='1.1' encoding='UTF-8'?>
<hudson.plugins.emailext.ExtendedEmailPublisherDescriptor plugin="email-ext@2.63">
<defaultSuffix>@tatacommunications.com</defaultSuffix>
<mailAccount>
<smtpHost>HERE I PROVIDED IP ADD OF SMTP SERVER</smtpHost>
<smtpPort>25</smtpPort>
<smtpPassword>{AQAAABAAAAAQxb/EfaXX7pdoeZ3BYi0Hmi4x4hDDVHCKgPLur86v/Ic=}</smtpPassword>
<useSsl>false</useSsl>
</mailAccount>
<addAccounts/>
<charset>UTF-8</charset>
<defaultContentType>text/plain</defaultContentType>
<defaultSubject>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!</defaultSubject>
<defaultBody>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:

Check console output at $BUILD_URL to view the results.</defaultBody>
<defaultPresendScript></defaultPresendScript>
<defaultPostsendScript></defaultPostsendScript>
<defaultClasspath/>
<defaultTriggerIds>
<string>hudson.plugins.emailext.plugins.trigger.AlwaysTrigger</string>
</defaultTriggerIds>
<maxAttachmentSize>-1</maxAttachmentSize>
<recipientList>ujjawal.khare@x.com,cc:pradeep@x.com,cc:shasheesh@x.com</recipientList>
<defaultReplyTo></defaultReplyTo>
<allowedDomains>@x.com</allowedDomains>
<excludedCommitters></excludedCommitters>
<overrideGlobalSettings>true</overrideGlobalSettings>
<precedenceBulk>false</precedenceBulk>
<debugMode>false</debugMode>
<requireAdminForTemplateTesting>false</requireAdminForTemplateTesting>
<enableWatching>false</enableWatching>
<enableAllowUnregistered>true</enableAllowUnregistered>