New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email settings - SMTP not working. #1123
Comments
It's a new 2015 updated version of PHPMailer so probably the legacy Sugar code from 2009 isn't fully updated to handle it smoothly, or, your settings or server or network are not configured right. From this troubleshooting page: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
|
Thanks for the reply @chris001 i tried to add the line SMTPDebug = 2, after i clicked again on Send test email and get the "normal message" ->
However when i try to reset some users password i get a more detailed message.
If i get this error correct SuiteCRM is trying to send true TLS, while i have SMTP over SSL or TLS set to none. |
Hi, With SuiteCRM "Send test email", Mar 19 17:37:59 www postfix/smtp[2060]: 5732A4839D87: to=<me@ blabla.com>, relay=mx3.ovh.net[213.186.33.73]:25, delay=60, delays=0.07/0.01/60/0.02, dsn=5.0.0, status=bounced (host mx3.ovh.net[213.186.33.73] said: 552 sorry, your envelope sender domain must exist mail461 (in reply to MAIL FROM command)) Some one can do : and try to send a email for see if we have same " said: 552 sorry, your envelope sender domain must exist mail461 (in reply to MAIL FROM command))" Regards |
i tried to replicate this and get the same error(different hostnames) on different servers. when i performed tail -f /var/log/maillog on different servers i get the same output (also tried different SMTP server):
|
Maybe you can try to disable TLS. I had that problem because the new version of phpmailer does not accept self signed certificates.
|
For my fedora 21: fixed problem |
@gunnicom indeed setting public SMTPAutoTLS to false did the trick, even when you just use sendmail. @martinrusevbg i have openssl already configured in php.ini. so that didn't work. |
@ghermans |
Managed to fix it @ghermans In SuiteCRM folder go to /modules/Emails and find Email.php file $mail->Mailer = "smtp"; Should work. |
Hi. And it works for me. What about when the server doesn't have sendmail, like Postfix or other agents. Thanks. |
Hi. Unfortunately I found this by reading similar issue some one had in sugarcrm. I am very happy that i didn't pay for some paid solutions on the market when found SuiteCRM which can be customized in different ways. Can you please kindly advise where to create the new thread about some features which I can not figure out how to implement. I have an excel file in cvs with multiple contacts, companies and emails. Some companies have more than one contact. Can any one kindly please advise on how to import this file, so contacts and companies merged together..I guess it requires some type of coding. At the moment I can only upload contacts and companies/accounts separately. Look forward to contribute to the community with testing the bugs. Thanks. |
@jpilldev |
i get this in the pop up window and from the log file it is |
Do you have an account in Suite CRM Forum? EMHO, is better that you create the thread here: https://suitecrm.com/forum/suitecrm-7-0-discussion |
Changed SMTPAutoTLS to false.
What is the status of this issue? I cannot get 7.5.3 fresh install to work with Gmail. Getting the SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Inbound does not work either. ~eric |
Same issue using gmail for outgoing mail config. Simply turning off TLS did not work for me. I am currently bypassing SMTP and using sendmail by commenting out lines 140-159 in /include/SugarPHPMailer.php and on line 160 adding $this->Mailer = "sendmail"; |
Hi @abeo and @rspeedy , not sure if I am answering the right question here but I am on SuiteCRM 7.5.3 which is on top of a LAMP stack and in my case, Gmail as the outgoing mail config works(I am able to send a test mail). To use Gmail as the outgoing mail config, you have to turn ON "Allow less secure apps" in your Gmail's account security. Google thinks PHPMailer/SugarPHPMailer does not meet modern security standards(or google's standards) and therefore blocks attempts to connect to it. You should receive an alert telling you this btw when you try to send the test mail. If this answers your question, cool otherwise sorry for the long post. Good luck!! |
@KipchirchirIan Yes, I have "Allow less secure access" turned on. I have also found that you cannot send a test email from a different account SuiteCRM account, even it that account has Administrative rights. Hopefully we can get this resolved soon. Gmail connectivity is standard for most clients. |
Hi @KipchirchirIan, your solution worked for me, thanks! |
We run two instances of SuiteCRM on 7.6.3. One works and the other doesn't. Gmail is the weapon of choice, and both servers are configured using the same details. The only difference is that the domain of one of the servers is not the same as the primary Google Apps domain. Could this be a factor? I must add that both domains are set up under Google Apps, but one is an alias. |
@sigreer83 |
@ghermans this issue shouldn't be closed until it resolved. Still cannot get SuiteCRM to work with Gmail... |
@abeo and others having a problem sending mail via gmail. I did an upgrade of existing system to WAMP 3.0.4 64bit, PHP 5.6.19, SuiteCRM 7.5.1 fresh install to which I just restored the DB - Mails would not send via smtp.gmail.com anymore. Our mail is Google Apps. I have a self signed certificate on the SuiteCRM server, so when I got below error in log I thought I would need to purchase a cert, but that is not the problem. Just keep reading. I had the following error in php log :: Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. I started the troubleshooting tips from this bug, suite forums, google and https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting that all pointed to my self signed certificate being the issue. The thing that eventually got me the information I needed was : I turned off my Avast Web/Mail Shield and everything works as before. I have not gone any further with the troubleshooting to see how to get past the issue without disabling Mail shield. running "openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:587" again, this was the result My first post here on GitHub so apologies if things aren't clear. Update : When logging in as the Admin user I do not get the error. I am not able to spend more time at this stage as mail is currently working except for the Test message when executed by other user with admin rights. |
I'm absolutely affected by this. Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting i've tried Gmail (used to work when others failed) and I've tried my preferrable non-gmail email. Neither work. All kick back same error. I have done this: public $SMTPAutoTLS = false; No go. Any help on this would be awesome as it's mission critical to our company. Thanks! |
I should clarify the following details: I really badly need this working so whatever you need me to do to help get you what you need to fix, I am your man! :) |
Hey I am not sure if the same thing work with you or not. Still its a bug with the outbound email configuration. I tried all the code level corrections suggested by the other contributors. but there is no success. I just made one change with the password. I just created a password with Letter and number (Password123) its get configured and working fine. But when i change the password with some regular expression (Password=&123$%^) it repeat the same error message. if anyone would like to try with simple password with letters and number hopefully it will work. But ultimately its a bug need to be fix. |
great idea! My passwords are like yours so maybe that's it I'll test. stand by for 30 minutes |
ok, team. i can now confirm that it seems to be a combination of @gitnito and @opensourcecrm most recent post. When I had my first password, it was a very secure password generated by my password generated. It contained symbols, numbers, special characters - everything. When I had this password, I could not do @gitnito suggestion above with entering the password without saving and have the test email send. However, when I followed @opensourcecrm 's suggestion to change the password to something more simple, now I could perform the test email successfully, but only if I do not click save. If I click 'save' it exits me from the email settings screen and then when I go back in and simply do the test email (without touching the password change) it did not work (again). So it appears the bug is related to: I feel like we are close. A few more testers trying this out and we might find it and confirm it? |
update: I also can now confirm that gmail does not work at all with the tests above and I'm 99% sure that this is because my shared hosting company said that gmail cannot act as a mail relay service on their shared hosting. When I use the regular non-gmail it works as per my post 2 minutes ago. So if anyone is having issues just with gmail it's probably because your host isn't allowing it. My former host, before migrating, probably did allow it.... |
update 3: i also have confirmed that exactly the same bug exists in the 'admin/outbound email' section. If you run the same tests, the same results exist. If you create an outbound mail server in this section, try to write the changes with the save button, nothing saves - including the most recent email to which you sent the test email. Also, you get the github smtp error fail message as per usual in the other section. However if you do the 'password change' method and before pressing save send the test email after entering the correct password, the email sends. So same issue(s) here too. It seems like with this information now someone who programs should be able to figure it out.... |
update 4: just for fun I went into cpanel and changed my php versions from 5.5 to 5.4 to 5.3 and 5.6 and 7.0 and none of that helped. I read in some post that might help and that new PHP affects this somehow but I was unable to find a victory. My previous updates to this post all work the same no matter which version of PHP is running on the shared host. |
update #5 - crazy! at 9:53am, just exactly the same minute as yesterday, a bunch of suitecrm emails came out to my inbox! what in the world is going on? |
@humanistas your solution is not working, since i don't use gmail. |
I don't know if this spew from my hosting provider will lead to any new ideas to anyone but while I was trying to fix this on the hosting side, they sent this: 2016-07-27 09:53:05 1bSS4v-003shR-IM email@myemail.com R=barracuda_route T=remote_smtp H=barmail1.idig.net [64.34.111.254] X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=yes C="250 Ok: queued as ED26E2FB0F" 2016-07-27 14:24:32 1bSS4v-003shR-IM Completedthey said before this they noted a problem with 'barracuda email'. They said 'it's resolved now' but when I went to try all the above steps in this bug, it still did not save and work properly sending the test email... |
hey everyone. I have some good news I think. It looks like I have discovered two things that have made my system work. I haven't had enough time to a) get all the detailed answers from my hosting company and b) test my system thoroughly but i wanted to get this up ASAP for everyone else to start trying.
I hope this leads others back to victory and look forward to reporting back that everything is working but I'm still having an issue with one workflow notification not working but it might be my own problem... |
Thanks @wayneoutthere, this is exactly what I said 10 days ago, my apologies if it was not clear. I think everyone having this problem should:
Report their findings as it would seem that we are trying to debug 2 different issues here
|
Closing this one, if you still have a problem create a new issue |
I was having the same problem as most people (SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting) on this thread and found nothing worked (I notice that some of the suggestions have already been implemented into suitecrm) however when I used a different gmail account (no other accounts worked either) with no special characters just numbers and letters it work with not issues. This seems to be an issue that could do with being sorted |
SOLVED: i had the same issue, Version 7.7.5 go here: |
For those requiring email security, many industries which mandate full security, for instance, the financial industry, competitive fields, govts, health care industry, standards mandating full encryption to maintain privacy of all patient related communications, there's a way to solve this gmail issue without the use of enabling "less secure apps" ("LSA"). With LSA, SuiteCRM is providing a cleartext password to login to gmail (trying to login with mechanism "LOGIN-PLAIN"), however gmail has disabled login-plain by default because of the high risk. When an app tries to login with a cleartext password, it's because the app has saved the password, and indeed, SuiteCRM app has saved your email cleartext password on the SuiteCRM server. Doing so is highly discouraged by security standards because of the risk of complete google account theft or full data leakage by evil sysadmins and hackers who get in and take a full backup the app files and database including all clear password and keys. |
gunnicom trick : public $SMTPAutoTLS = false; Worked for me on Community Edition 6.5.25 |
Some one Find Solution??? I need To configure SMTP gmail setting in suitecrm |
@karthik5595 are you on shared hosting or self-hosting? |
@wayneoutthere I'm using my local wamp server (Self Hosting) |
I not idea the configuration suiteCRM and elastisk please help me.!!!! |
Hi, Globally problem is noticed when Assigned To user is changed. Then system tries to send a mail, and the whole saving process takes 5 min. The worst part is that there is nothing in log (apache/error.log or suitecrm.log). The only clue that I have is that server telnet to smtp.gmail.com or any other mail server is not working. Can this be the only thing that is wrong, and how to confirm that? Br, SuiteCRM: 7.7.8 |
i cant get your issue .. can you explain breafly!!!
…On Tue, Apr 17, 2018 at 4:51 PM, Filip Ćorluka ***@***.***> wrote:
Hi,
I am having a problem with this mail on clients server.
When I try to send test mail, I get after 5min error:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af04KF7B5mvoDDcHm4F35f-tFTFuNWAIks5tpdA8gaJpZM4H0BOS>
.
--
*Thanks & Regards,*
*Karthik.K.S**,*
*9659843493*
|
I get into Admin->Email Settings, and click on Send Test Email. I have tried from a server console ping to my mail server, that is OK; but telnet won't do. Because of this mail sending, when a user is assigned to record (user should be notified when assigned), saving of that change lasts 5 min (same as sending mail). |
ok..What can i do?
…On Tue, Apr 17, 2018 at 10:48 PM, Filip Ćorluka ***@***.***> wrote:
I get into Admin->Email Settings, and click on Send Test Email.
Popup for performing task comes out, and stays for 5min.
After that I get : Error:SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Nothing is written in logs (apache log or suitecrm log).
I have tried from a server console ping to my mail server, that is OK; but
telnet won't do.
Because of this mail sending, when a user is assigned to record, saving of
that change lasts 5 min (same as sending mail).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af04KCM6arH07eFFyGM1sz4LXdNVMEbjks5tpiQBgaJpZM4H0BOS>
.
--
*Thanks & Regards,*
*Karthik.K.S**,*
*9659843493*
|
Is there some way to verify that sending mail is broken because of server connection and not because of SuiteCRM? |
i dont know the exact reason .. time to off .. can u remember me tommorow..
Sorry
…On Tue, Apr 17, 2018 at 10:51 PM, Filip Ćorluka ***@***.***> wrote:
Is there some way to verify that sending mail is broken because of server
connection and not because of SuiteCRM?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af04KJr9wM6-YaZjko4r4qjYnkYX26Gkks5tpiSvgaJpZM4H0BOS>
.
--
*Thanks & Regards,*
*Karthik.K.S**,*
*9659843493*
|
Hi All,
Is anyone can resolved it? Thanks |
I first reported this on the forum after this @willrennie suggested to report this on Github.
Tried multiple mailboxes on different SMTP servers and different web servers to see if it was a server related issue.
However none of the mailboxes work with SuiteCRM.
For me this worked in the hotfix before 7.5.2 was released, after that all clean installs failed, also 7.5.3
Example when i try to reset a users password i get the message
This is what i can find in the suitecrm.log:
When i check the Email settings: Outgoing mail configuraiton all fields are filled.
If i press "Send Test Email" i get the message:
The text was updated successfully, but these errors were encountered: