(SmtpMailer.php:167 [6]) - Failed to connect to outbound SMTP Mail Server: An outgoing mail server is not configured to send emails.

hi all,

this is a a bit strange, Assignment emails and notification emails work perfectly file whereas workflow emails doesnot work. if i try to send an email via process definition or auto reply it doesnt work. we are onsite hosted setup and currently on 7.9.4 , outbound email is setup (no smtp authentication is used) , test emails works perfectly file.

we get following error : 

Configurator » SugarCRM

MailerException - @(SmtpMailer.php:167 [6]) - Failed to connect to outbound SMTP Mail Server: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in 

I have tried checking the following : 

Admin-> Email settings - mailserver and port defined , test email works fine , smtp authetication disabled

Email->Settings : default outbound settings exists, if i add a new outbound setting, it allows me to add but everytime i try to check via edit all defined fields change to undefined.

any guidance here where do i need to setup this outbound email setting would be great. i am using a group mailbox for sugar setup i am not using my personal , i do have imap config for the mailbox but i am not sure where do i need to set this up, there is no smtp authentication required as i am informed by our IT team , mailbox is setup to send emails without authentication on exchange server.

any guidance would be great

Thanks,

Kunal

Parents
  • Hi Kunal/All,

    We're facing the same problem on alerts by Advance Workflows. The SMTP account is configured correctly when you do a 'Test Email' and even for Workflows but not for Process Definitions.

    We have the same error below:

    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][WARN] SMTP -> ERROR: QUIT command failed.
    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    We are using Exchange Server, it might the way how the Advanced WF alerts connects to SMTP?

    Have you solved your issue?

    BTW we are using Sugar 7.9 ENT version.

    Thank you.

    Regards,

    Kaizer

Reply
  • Hi Kunal/All,

    We're facing the same problem on alerts by Advance Workflows. The SMTP account is configured correctly when you do a 'Test Email' and even for Workflows but not for Process Definitions.

    We have the same error below:

    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][WARN] SMTP -> ERROR: QUIT command failed.
    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
    Mon Jun 10 11:44:02 2019 [21080][b898ffcc-ec29-1eb5-a416-542130a5ee4e][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    We are using Exchange Server, it might the way how the Advanced WF alerts connects to SMTP?

    Have you solved your issue?

    BTW we are using Sugar 7.9 ENT version.

    Thank you.

    Regards,

    Kaizer

Children
  • Unfortunately no, I did raise the case with Sugar aswell but since 7.9 is not a supported version they suggested to upgrade to version 9.0 and test it again, we cant just upgrade to version 9.0 as there are quiet a few in-upgrade safe changes which needs to be analyzed and its not a something that could be done quickly. so we are still looking ofr alternate solution but currently stuck with the issue.

    Thanks,

    Kunal

  • Hi Kunal, 

    The issue with 'undefined' showing in the Email Settings had been marked resolved in 2017 as of version 7.10+

    Not only for this reason I highly recommend to upgrade your 7.9 installation to a supported version

    I have checked for current cases or bugs using SMTP without authentication and Workflows and currently there is no known issue around this that I'm aware of. With that it is highly likely that the upgrade will resolve that problem, however if you still experience issues in the current 8.x or 9.x version our support team can assist and troubleshoot this further. 

    At the following link you'll find the current upgrade paths: 

    https://community.sugarcrm.com/docs/DOC-3621-upgrade-paths-for-on-site-installations

    If you run into any issues during the upgrade please let Support know. As always please test the upgrade in a sandbox first. 

    One troubleshooting step in the your current version could be to add SMTP authentication on the Exchange server to confirm if the issue is the same. 

    Best regards,

    Dennis