Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outgoing Mail Server
#1
Photo 
hi there,
I am new to administering coreBos however when I reset the mail server settings and put in the "server name" and populate the "from email" and re enter them back in they do not apply.
Error message "Test Mail Status:: Mail could not be sent to the admin user. Please check the admin emailid/server settings.
Is there a current issue?
Reply
#2
try leaving the "from email" field empty (that is rarely needed and causes issue in a lot of SMTP servers)

if that doesn't help, try activating the DEBUG log and the Debug_Email_Sending global variable to see if there is any error from your server.

https://corebos.com/documentation/doku.php?id=en:devel:debuging#email

be careful sharing that information as there is a lot of details in that log

AFAIK there is no issue.

Let me know how it goes
Joe
TSolucio
Reply
#3
Hi Joe,

Thanks for the information, I have tried leaving the address field blank and just have the server details entered in
Still not connecting to the exchange server, one thing the customer failed to advise me was the corebos server stopped sending out emails
around the same time they applied the hafnium patch.

Regards
Shane
Reply
#4
Exchange is delicate, always has been a special case. Activate the debug log and read the conversation, there should be some clue as to what is happening there. Feel free to send me an email with the log if you would like me to have a look.
Joe
TSolucio
Reply
#5
hi joe,
I am not sure what part of the following I am getting worng

diff --git a/modules/Emails/class.phpmailer.php b/modules/Emails/class.phpmailer.php


Is this what I am to run to enable logging?


Shane
Reply
#6
if you are an up-to-date coreBOS you don't need to make any code changes. There is a global variable (Debug_Email_Sending) that you set to true (1) and activate debug log

keep asking if that is not clear
Joe
TSolucio
Reply
#7
(05-31-2021, 08:58 AM)joebordes Wrote: if you are an up-to-date coreBOS you don't need to make any code changes. There is a global variable (Debug_Email_Sending) that you set to true (1) and activate debug log

keep asking if that is not clear

 Where do I find this "global variable (Debug_Email_Sending) that you set to true (1) and activate debug log" - is this within corebos administration or a file I need to edit a file?. The instructions are not clear
Reply
#8
sorry, didn't see this response sooner. Global variable is a module where you create records to fine tune your corebos. It is usually in tools or settings. Just another corebos module

https://corebos.com/documentation/doku.php?id=en:adminmanual:globalvariables

https://blog.corebos.org/blog/globalvariable

so, go to that module, create a new record, select the value above in the first picklist, set the value to 1, check the Default checkbox and uncheck the "in module list", that should get the email log sending to the logs

to activate debugging you have to set the DEBUG variable to true in config.inc.php and enable APPLICATION logging in include/logging/config.php

https://corebos.com/documentation/doku.php?id=en:devel:debuging
Joe
TSolucio
Reply
#9
Hi Joe,
Logging is on and this is the output

2021-06-02T01:13:19+00:00 FATAL index SERVER -> CLIENT: 250-POM-MAIL.oepng.local Hello [10.161.64.92]
250-SIZE 10485760
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250 XSHADOW

2021-06-02T01:13:19+00:00 FATAL index CLIENT -> SERVER: STARTTLS

2021-06-02T01:13:19+00:00 FATAL index SMTP -> get_lines(): $data is ""
2021-06-02T01:13:19+00:00 FATAL index SMTP -> get_lines(): $str is "220 2.0.0 SMTP server ready
"
2021-06-02T01:13:19+00:00 FATAL index SERVER -> CLIENT: 220 2.0.0 SMTP server ready

2021-06-02T01:13:19+00:00 FATAL index Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/var/www/html/corebos/modules/Emails/class.smtp.php line 374]
2021-06-02T01:13:19+00:00 FATAL index SMTP Error: Could not connect to SMTP host.
2021-06-02T01:13:19+00:00 FATAL index CLIENT -> SERVER: QUIT

2021-06-02T01:13:19+00:00 FATAL index SMTP -> get_lines(): $data is ""
2021-06-02T01:13:19+00:00 FATAL index SMTP -> get_lines(): $str is ""
2021-06-02T01:13:19+00:00 FATAL index SERVER -> CLIENT:
2021-06-02T01:13:19+00:00 FATAL index SMTP ERROR: QUIT command failed:
2021-06-02T01:13:19+00:00 FATAL index Connection: closed
2021-06-02T01:13:19+00:00 FATAL index SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2021-06-02T01:13:19+00:00 INFO DB DB >> getMailError
2021-06-02T01:13:19+00:00 INFO DB DB >Error message:
2021-06-02T01:13:19+00:00 INFO DB DB >< getMailError Mail error is not connect_host, from_failed nor recipients_failed
2021-06-02T01:13:19+00:00 INFO DB DB >> getMailErrorString "fakeemailladdress@fake.com.you"=Mail error is not connect_host, from_failed nor recipients_failed&&&
2021-06-02T01:13:19+00:00 INFO DB DB >All Mail status ==>
dennis.arriola@global.com.pg=Mail error is not connect_host, from_failed nor recipients_failed

From what I can determine corebos is expecting tls connection

I have created a exchange specific receive connector for the corebos server and from a basic telnet session I can easily send a test email to an external recipient and it is received

Thanks
Shane
Reply
#10
Yes, it does seem to be a security issue. Have you tried all the different connection options? Have you read this page: https://corebos.com/documentation/doku.php?id=en:adminmanual:outgoingserver

Tried the "ssl://msexchange:587"

?
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)