Skip to main content
1-Visitor
December 2, 2015
Solved

Windchill Email without authentication?

  • December 2, 2015
  • 5 replies
  • 3047 views

Is it possible to setup the wt.mail.mailhost without any password?

And how is that accomplished?

I tried to reset the wt.mail.smtp.username and wt.mail.smtp.password

But no mail is coming out of the system.

I tried to look in the logs but I couldn't find any attempts to email.

I looked in root/logs/ (should I look somewhere else?)

Best answer by BineshKumar1

I think you can directly add SMTP username and password in wt.properties as well, but I am not sure. This file is usually kept in WT_Home outside codebase.

Yes, you can directly edit mbean files. But preferred method would be to edit it from jconsole. You can launch Jconsole using windchill  wt.util.jmx.SMJConsole from Windchill shell to launch Jconsole. Navigate to mbeans > com.ptc and look for email settings. Once you are done go to loader and save it

Thank you

Binesh Kumar

5 replies

2-Explorer
December 3, 2015

You can configure your SMTP relay to send emails anonymously -  the unauthenticated SMTP connections coming from applications and devices on your network -.We had similar configuration in one of the companies I have worked with where the extended rights - ms-Exch-SMTP-Accept-Authoritative-Domain-Sender was set on the exchange server.

Once you have this set just remove the mail.properties file and its reference from the wt.properties(site.xconf) - assuming that wt.mail.smtp.username and wt.mail.smtp.password are defined in mail.properties.

You can use email this page from quick links to send email to one of the recipients. This will trigger an email. Watch for the email related entries in background method server log and you should find errors as well there.

Additionally you can set the loggers log4j.logger.wt.mail.message=DEBUG in Windchill\codebase\WEB-INF\log4jMethodServer.properties and wt.mail.verboseTransport=true in wt.properties

Thank you

Binesh Kumar

1-Visitor
December 3, 2015

According to my logs, Windchill tries to connect to the server that I specified during the initial setup, which is incorrect.

I changed the server wt.mail.mailhost with xconfmanager, but still, windchill is using the incorrect mailserver.

My solution is to map the old server with the new servers IP in the hosts file.

The mailserver is now working with no authentication.

But, my conclusion is that the mailserver specified during the initial setup must be listed in another config file, which one?

I do not have a mail.properties file in my system. Is that file included in a default Windchill installation?

2-Explorer
December 3, 2015

Did you restart Windchill after you changed the wt.mail.mailhost? It is worth verifying the wt.properties to ensure the hostname has been changed before you restart.

The only other place in windchill where you will have mail host will be your JMX. Verify the Mailserver tag in and ensure that server name is changed.

  1. $WT_HOME\codebase\WEB-INF\methodServerMBeanConfig.xml
  2. $WT_HOME\codebase\WEB-INF\serverManagerMBeanConfig.xml

If you don't have authentication, then mail.properties is not required and will not be created by PSI

Thank you

Binesh Kumar