Email settings Problem

Hello. Because I’m very new, I’m facing several problems (and this community has helped me solve them), and the newest one has to do with sending test mail.

If I try to send a mail with a server different than gmail, outlook, yahoo (t summarize: Other field), I get this error: Error:SMTP Error: Could not authenticate.

If I try with, for example, gmail, I get this one: Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I wanto to clarify that I need to use a mail set up with the “Other” field. Gmail output is just for ppl who can help me to see the situation in detail.

Error log has this output:

Thu May 31 17:05:41 2018 [][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Thu May 31 17:06:59 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:06:59 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:07:19 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:07:19 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:08:30 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:08:30 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:09:07 2018 [][1][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.
Thu May 31 17:09:07 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Thu May 31 17:09:07 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Thu May 31 17:09:45 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:09:45 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:09:49 2018 [][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Thu May 31 17:23:01 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:23:01 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
Thu May 31 17:24:42 2018 [][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Thu May 31 17:25:16 2018 [][1][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.
Thu May 31 17:25:16 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Thu May 31 17:25:16 2018 [][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

What can I do to solve this?

I must say the first time I installed SuiteCRM in my hosting, the test mail worked. After that, due to a problem not regarding to suitecrm, I installed a pear module called Mail, which installed other stuff. However, I requested my hosting provider to reset all settings in webhosting. I don’t know if that is related, but wanted to give hints about the situation.

Thank you and cheers.

I tried to add the account from Outbound mail and I got this SMTP log:

3: Connection: opening to smtpserver.xxx, timeout=300, options=array (
)
3: Connection: opened
2: SERVER -> CLIENT: hostingserver.xxx ESMTP Exim 4.91 #1 Thu, 31 May 2018 14:02:30 -0500 
220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.

1: CLIENT -> SERVER: EHLO myhost.xxx

2: SERVER -> CLIENT: hostingserver.xxx Hello myhost.xxx [10.0.0.115]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250-SMTPUTF8
250 HELP

1: CLIENT -> SERVER: AUTH LOGIN

2: SERVER -> CLIENT: 334 VXNlcm5hbWu7

1: CLIENT -> SERVER: ---obfuscated---
2: SERVER -> CLIENT: 334 UGFzc3dvcmq7

1: CLIENT -> SERVER: ---obfuscated---
2: SERVER -> CLIENT: 535 Incorrect authentication data

1: SMTP ERROR: Password command failed: 535 Incorrect authentication data

3: SMTP Error: Could not authenticate.
1: CLIENT -> SERVER: QUIT

2: SERVER -> CLIENT: 221 mriron.hellodotnyc.com closing connection

3: Connection: closed
3: SMTP Error: Could not authenticate.

I don’t know if

220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.

is just a warning or is refusing to connect my smtp server.

BTW, I’m using latest SuiteCRM version (7.10.5).