Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Unable to Send Welcome Emails

Discussion in '3CX Phone System - General' started by 10m, Mar 17, 2017.

Thread Status:
Not open for further replies.
  1. 10m

    10m

    Joined:
    May 3, 2014
    Messages:
    32
    Likes Received:
    10
    Hi guys.

    I'm running the Debian version of 3CX and it is up to date. Up until a few days ago, I could send emails from the PBX, particularly the invites for Webmeetings. But as at today I can't and no changes have been made to the system. When I go to settings>email and I click on Test, I get the error message, 'The operation was cancelled'.

    I have done the update and upgrade from the cmd line and both were successful. However I am still unable to send mails.

    Below is an excerpt from the system log file



    2017/03/17 11:41:21.023|624|0013|Info|Sending welcome email to extension 601
    2017/03/17 11:41:36.510|624|0013|Excpt|System.OperationCanceledException: The operation was canceled.
    at System.Threading.CancellationToken.ThrowOperationCanceledException()
    at MailKit.Net.Smtp.SmtpStream.Poll(SelectMode mode, CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpStream.ReadAhead(CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpStream.ReadResponse(CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)
    at GenericUtilsNet.MailTemplateSender.Send(XDocument template, Func`2 getParameter, String mailTo, IEnumerable`1 attachments)
    at _3cxSystemService.ExtSheduller.WelcomeEmailSender.SendWelcome(Extension ext)
    at _3cxSystemService.ExtSheduller.WelcomeEmailSender.SendingProc()


    2017/03/17 11:45:21.116|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'
    2017/03/17 11:45:21.117|624|0005|Info|WM: ParameterUpdated event name=PBXERRORMAIL, value=support@10msystemconsults.com
    2017/03/17 11:47:08.766|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'
    2017/03/17 11:47:08.766|624|0005|Info|WM: ParameterUpdated event name=PBXERRORMAIL, value=support@10msystemconsults.com
    2017/03/17 11:47:54.109|624|0003|Info|VMMonitor: alive (iter=255)
    2017/03/17 11:49:46.586|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'
    2017/03/17 11:49:46.586|624|0005|Info|WM: ParameterUpdated event name=PBXERRORMAIL, value=support@10msystemconsults.com
    2017/03/17 11:54:25.625|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'
    2017/03/17 11:54:25.625|624|0005|Info|WM: ParameterUpdated event name=PBXERRORMAIL, value=support@10msystemconsults.com
    2017/03/17 11:54:41.359|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'
    2017/03/17 11:54:41.359|624|0005|Info|WM: ParameterUpdated event name=PBXERRORMAIL, value=support@10msystemconsults.com
    2017/03/17 11:55:52.108|624|0005|Info|WM: Pbx parameter PBXERRORMAIL now has value 'support@10msystemconsults.com'



    Any help?

    Thanks.
     
  2. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    7,400
    Likes Received:
    535
    Hello @10m

    What smtp server are you using? Does the test email under the email settings work?
     
  3. 10m

    10m

    Joined:
    May 3, 2014
    Messages:
    32
    Likes Received:
    10
    I'm using Dreamhost and I've determined that the mailbox is okay because I can send mail and receive mail with the mailbox when I login to the webmail. When I hit the test buttom under mail server settings it comes back with an error. It says

    'The operation was cancelled'.
     
  4. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    7,400
    Likes Received:
    535
    Please note that the area under the Test button in the email settings is an area that displays the response coming from the smtp server not the PBX. So if it says operation was cancelled then your smtp is sending that.
     
  5. 10m

    10m

    Joined:
    May 3, 2014
    Messages:
    32
    Likes Received:
    10
    Thanks for the info.

    I tried a gmail account and I get this error

    The smtp server does not support authentication.

    Any ideas.

    Thanks
     
  6. GiannosC_3CX

    GiannosC_3CX Guest

    Hi 10m,

    Did you enable the SSL/TLS?
     
  7. 10m

    10m

    Joined:
    May 3, 2014
    Messages:
    32
    Likes Received:
    10
    Hi All.

    I now enabled SSL/TLS and it worked with my gmail account but I still cannot get the PBX to send through my own company email.

    Any pointers as to what I should do to get it working again?
     
  8. jhonku

    Joined:
    Mar 25, 2016
    Messages:
    33
    Likes Received:
    6
    Hi 10m,
    We are having same issue with 3CX on Debian.
    It works with Gmail account but we have problems using our mail server.

    2017/05/11 11:37:34.277|799|0012|Excpt|System.OperationCanceledException: The operation was canceled.
    at System.Threading.CancellationToken.ThrowOperationCanceledException()
    at MailKit.Net.Smtp.SmtpStream.Poll(SelectMode mode, CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpStream.ReadAhead(CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpStream.ReadResponse(CancellationToken cancellationToken)
    at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellation$
    at GenericUtilsNet.MailTemplateSender.Send(XDocument template, Func`2 getParameter, String mailTo, IEnumerable`1 attachment$
    at _3cxSystemService.ExtSheduller.WelcomeEmailSender.SendWelcome(Extension ext)
    at _3cxSystemService.ExtSheduller.WelcomeEmailSender.SendingProc()

    When we capture traffic, we are seing that PBX make TCP handshake with server but after that 3cx don't send anything else. It seems

    DId you resolve this issue?

    Thanks!
     
  9. GiannosC_3CX

    GiannosC_3CX Guest

    Hi all,

    It is better to investigate your issue on your SMTP side. Please check the logs on your SMTP in order to find why your SMTP does not allow the 3CX Phone system to pass the test on email settings. In case that you are using google engine, kindly note that the google engine does not allow outbound connections on ports 25, 465, and 587. In order to allow outbound mails from 3CX (while hosted on Google Compute Engine) a mail server is required to relaying mails for your domain on a non standard SMTP port. You can find more information on the below link https://www.3cx.com/docs/hosted-pbx-google-cloud/
     
Thread Status:
Not open for further replies.