1

在我的 Jenkins 电子邮件设置中,测试电子邮件工作正常,但在执行构建时我收到“向以下有效收件人发送电子邮件时出错......”。
我组织的电子邮件服务器不需要 SMTP 或 SSL 身份验证,并且具有相同设置的测试电子邮件可以完美运行。我已将触发器添加为“始终”。

什么会导致这个问题?请参阅我的配置和我面临的错误的附加屏幕截图。

电子邮件分机插件 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:&#xd;
&#xd;
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>
  1. 电子邮件配置电子邮件配置

  2. 成功的测试电子邮件成功的测试电子邮件

  3. 发送邮件发布构建时出错发送邮件发布构建时出错

4

0 回答 0