Schneider Electric support forum for our Data Center and Business Power UPS, UPS Accessories, Software, Services, and associated commercial products designed to share knowledge, installation, and configuration.
Posted: 2022-10-04 12:23 PM
When PCBE sends a notification to my outgoing mail server (smtp-relay.gmail.com) it presents as localhost, even though the hostname of the server it's running on is set correctly. How can I set this so it presents correctly? Otherwise google rejects it.
Posted: 2022-10-05 12:08 AM
Hi @giddyup05
Thank you for reaching out to the SE Community, my name is Jon and I will assist you with this query. Apologies for the inconvenience this has caused, may we ask for you to provide a sample email of the working and non-working messages?
Posted: 2022-10-05 01:34 PM
I am only able to see the sent message from PCBE when I use a mail server I control - which happens to be on this same machine, which is likely why it's presenting as localhost. Using the logs when I'm using smtp-relay.gmail.com as the outgoing mail server is likely a better idea.
When I use smtp-relay.gmail.com on port 587 with SSL/TLS disabled, log states:
2022-10-05 08:42:26,399 [PcbeHSM-EventDispatcher] INFO - [application.PicardApplication.()] stateTransitionNotify signal=SELF_TEST_PENDING_TO_XXX
2022-10-05 08:42:26,412 [Thread-91] WARN - [MicrolinkSlave.UpsHSMSignalGenerator.()] self test 68
2022-10-05 08:42:26,413 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] Subject :MARK : Self Test Passed
2022-10-05 08:42:26,569 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] SMTPMailConfigException :javax.mail.MessagingException: [EOF]
2022-10-05 08:42:26,569 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] com.apcc.m11.components.SMTPMailer.SMTPMailConfigException: javax.mail.MessagingException: [EOF]
When I use that server on port 587 using TLS, I get:
2022-10-05 08:48:22,065 [Thread-93] WARN - [MicrolinkSlave.UpsHSMSignalGenerator.()] self test 68
2022-10-05 08:48:22,065 [PcbeHSM-EventDispatcher] INFO - [application.PicardApplication.()] stateTransitionNotify signal=SELF_TEST_PENDING_TO_XXX
2022-10-05 08:48:22,078 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] Subject :MARK : Self Test Passed
2022-10-05 08:48:22,079 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] SMTPMailConfigException :javax.mail.AuthenticationFailedException: failed to connect, no password specified?
2022-10-05 08:48:22,079 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] com.apcc.m11.components.SMTPMailer.SMTPMailConfigException: javax.mail.AuthenticationFailedException: failed to connect, no password specified?
What do either of those mean? Authentication is disabled in the PCBE config as none is needed. I am able to connect to 587 without any encryption from this computer via telnet.
Posted: 2022-10-05 04:58 PM
Thanks @giddyup05, we'll take a look at this and get back to you.
Posted: 2022-10-13 10:49 PM
Apologies for the late response @giddyup05. Will you be able to provide us with a copy of the email like what is included in this thread?
Also, can you check what is the hostname of the computer where PCBE is installed? Make sure that it is not set as localhost.
Posted: 2022-10-17 08:27 AM
I tested with smtp.gmail.com TLS 587. You must turn on two-part authentication and create an application password. See https://support.google.com/accounts/answer/185833
Once that was done Gmail would sent e-mails from PowerChute.
Mail received:
PowerChute Business Edition has detected the following event:
User Logged Off
Network Name: Win10-System1
Contact Name:
Device Location:
URL: https://Win10-System1:6547
Event logged:
0-17 11:14:12,042 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] Subject :Win10-System1 : User Logged Off
2022-10-17 11:14:23,181 [SMTPMailWorker] WARN - [SMTPMailer.SMTPMailWorker.()] Send mail ok
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.