cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Windchill email server not using wt.mail.from property

ptc-5142566
4-Participant

Windchill email server not using wt.mail.from property

Hello community, we are facing a very weird issue:

 

Windchill is trying to send emails from the user account who is triggering the notification or sending the page link.

Our company (CompanyA) is giving Windchill support to CompanyB. We have set our email server using the following:

=======================================================================================

wt.mail.from=windchill.prod.noreply@companyA.com
wt.mail.mailhost=email-smtp.companyA.com\:587
wt.mail.mime.charset=UTF-8
wt.mail.properties=$(wt.home)$(dir.sep)mail.properties
wt.mail.smtp.auth=true
wt.mail.smtp.starttls.enable=true
wt.mail.smtp.starttls.required=true
wt.mail.verbose=true
wt.mail.verboseTransport=true
wt.notify.notificationSenderEmail=windchill.prod.noreply@companyA.com

==============================================================================================

 

 

Bellow you can see a piece of the method server log:

==============================================================================================

DEBUG SMTP: MessagingException while sending, THROW:
com.sun.mail.smtp.SMTPSendFailedException: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: user@companyB.com

  at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374)
  at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2095)
  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1301)
  at com.infoengine.webject.msg.SendMail.invoke(SendMail.java:485)
  at com.infoengine.procunit.webject.WebjectProcessor.invokeWebject(WebjectProcessor.java:624)
  at com.infoengine.procunit.webject.WebjectProcessor.processTask(WebjectProcessor.java:210)
  at com.infoengine.SAK.Webject.invoke(Webject.java:491)
  at com.infoengine.compiledTasks.file.opt.ptc.Windchill_12$2e0.Windchill.tasks.wt.mail.sendmail$2exml.invoke(sendmail$2exml.java:751)
  at com.infoengine.SAK.Task.invoke(Task.java:1806)
  at com.infoengine.SAK.Task.invoke(Task.java:1714)
  at wt.mail.EMailMessage.submitMessage(EMailMessage.java:1560)
  at wt.mail.EMailMessage.submitMessage(EMailMessage.java:1106)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  at wt.queue.ScheduleQueueEntry.execute(ScheduleQueueEntry.java:264)
  at wt.queue.ScheduleQueue.execEntry(ScheduleQueue.java:344)
  at wt.queue.ScheduleQueue.execEntries(ScheduleQueue.java:465)
  at wt.queue.ScheduleQueueThread.processReadyEntries(ScheduleQueueThread.java:284)
  at wt.queue.ScheduleQueueThread.run(ScheduleQueueThread.java:92)
DEBUG SMTP: use8bit false
MAIL FROM:<user@companyB.com>
250 Ok
RCPT TO:<user@companyB.com>
250 Ok
DEBUG SMTP: Verified Addresses
DEBUG SMTP:   user@companyB.com
DATA
354 End data with <CR><LF>.<CR><LF>
Date: Sun, 25 Sep 2022 21:46:32 +0000 (GMT)
From: user@companyB.com
To: user@companyB.com

===================================================================================

 

We have fixed this issue for workflow related emails with the following property:

wt.workflow.work.UseDefaultNotificationSenderEmail=true
 
We have tried also by changing the following line(293) in the <WT_HOME>/tasks/wt/mail/Sendmail.xml file:
//<ie:param name="FROM" data="${@FORM[0]FROM[0]}" default="<%=DEFAULT_FROM%>"/>
<ie:param name="FROM" data=windchill.prod.noreply@companyA.com default="<%=DEFAULT_FROM%>"/>
 
The tomcat and ie cache has been deleted, Windchill has been restarted several times.
 
Workflow related emails are using the noreply email now. User triggered emails are still using the originator user's email.
 
We are running out of things to try.
 
1 ACCEPTED SOLUTION

Accepted Solutions
Florent
14-Alexandrite
(To:ptc-5142566)

The modification you did in the SendMail.xml is not correct. You have to keep the quotes:

<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>

 

Florent ROUSSEL
www.4cad.ca

View solution in original post

4 REPLIES 4

 Hi,

 

Please specify the version of Windchill you are working with.

Florent
14-Alexandrite
(To:ptc-5142566)

The modification you did in the SendMail.xml is not correct. You have to keep the quotes:

<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>

 

Florent ROUSSEL
www.4cad.ca
ptc-5142566
4-Participant
(To:Florent)

It seems I also had to remove the commented line for this to work.

Thanks!

Florent
14-Alexandrite
(To:ptc-5142566)

Indeed,

that's an XML section here, therefore the comment tags are <!-- blablabla -->

 

<!-- <ie:param name="FROM" data="${@FORM[0]FROM[0]}" default="<%=DEFAULT_FROM%>"/> -->
<ie:param name="FROM" data="windchill.prod.noreply@companyA.com" default="<%=DEFAULT_FROM%>"/>

 

Florent ROUSSEL
www.4cad.ca
Top Tags