Rocket Chat smtp outgoing email settings with zoho not working - email

I have a rocket.chat instance running on Google Compute.
I am trying to configure the smtp settings from the Administration menu as specified here - https://rocket.chat/docs/administrator-guides/email/setup/#setup-credentials
I also have my smtp setup with free zoho mails, that works for other services like SendGrid, etc.
So, based on this documentation here - https://www.zoho.com/mail/help/imap-access.html
I initially started with this config -
Then I tested the configuration with all combinations of these values too -
Protocol: smtp, smtps
Port: 465, 587
IgnoreTLS: True, False
But in none of the cases I am receiving any test emails.
Here is my rocket chat log screenshot if that can help debug & solve this issue -

Related

SMTP setup in Prestashop 1.7.1.1 not working

I've tried everything so far but I can't make the email server to work with my G-Suite (Google Apps or Gmail) in Prestashop.
I have a G-Suite paid account that is working. I can send and receive emails. My email address is: email#mydomain.com.
I've tried leaving the first section blank "domain name" with no luck.
I've tried using smtp-relay.gmail.com instead of smtp.gmail.com with no luck
I've tried using SSL and TLS with ports: 25, 465, 587 and 2525 with no luck.
I even tried using a Gmail free account (myemail#gmail.com) and it doesn't work.
I always get the following error:
Error: Por favor compruebe su configuraciĆ³n
Connection could not be established with host smtp.gmail.com [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]
What am I doing wrong or what am I missing?
I was able to make it work. I am not completely sure how, but I disabled G-suite's 2 way verification and insecure apps and configured the smtp with smtp.gmail.com, email#mydomain.com, password, TLS and port 587 and it finally worked.

Configure CSF to allow outbound SMTP

I have a web app that sends email via SMTP (Gmail, Zoho Mail servers). The thing is, the email sending works in my localhost but not on my VPS (using WHM).
I contacted support and the guy replied:
If your VPS has ConfigServer Firewall (CSF) installed then this would
most likely be causing the problem. As it is working on localhost but
not externally this certainly sounds like it might be the case. You
will need to review the firewall configuration on the VPS and ensure
hose ports are allowed outbound.
But when it comes to server management and configuration, I'm totally lost. I did check the CSF settings page on WHM but not sure where to start.
Any recommendation or solution would be appreciated.
You have to allow outgoing traffic to ports 25, 465, 587 and in the case of Mandrill 2525 as will. You should actually be fine enabling only the one you will connect to. So:
sudo vim /etc/csf/csf.conf
add 25,2525,465,587 to TCP_OUT, and to TCP6_OUT if you use IPv6.
You might also need to remove that ports from SMTP_PORTS if you have SMTP_BLOCK enabled (if it is set to 1).
Source: https://community.centminmod.com/threads/csf-firewall-info.25/#post-6613

Pentaho 5.0.1 CE bi-server gmail configuration

I refer to my earlier question and how I solved it. I am now using the latest version of pentaho and I cant seem to get the email configuration working.
Server: smtp.gmail.com
Port: 465
Use Authentication: Yes
User : mygmailusername
Pass : mygmailpass
protocol: smtp (instead of smtps)
Secure Con Type : SSL
When I enter the details in the admin settings and click test email configuration it fails. The thing is that as I mentioned in my earlier question this config works fine in pdi and am able to send emails. However it is does not seem to work for bi-server. Are there some files I need to modify or what? Also I have tried all other possible configs (protocol:smtps, port:587) etc. and still failure. Why does this config work in pdi and not biserver ?
I finally had to change the configuration to
SMTP Host: smtp.gmail.com
Port: 587
Authentication: Yes (checked)
User Name: mygmailusername#gmail.com
Pass : mygmailpass
Protocol: smtp (or smtps; both work for me)
Address all email from server will come from: mygmailusername#gmail.com
Use Start TLS: Yes (checked)
Use SSL: Yes (checked)
Now Pentaho 5.0.1 BiServer Can send emails via gmail smtp. Works like a charm
There seems to be a bug in Pentaho Server 7 CE; so make sure to use below configuration -
SMTP Host: smtp.gmail.com
Port: 587
Authentication: Yes (checked)
User Name: mygmailusername#gmail.com
Pass : mygmailpass
Protocol: smtp (or smtps; both work for me)
Address all email from server will come from: mygmailusername#gmail.com
Use Start TLS: Yes (checked)
Use SSL: Yes (checked)
Email "From" Address: mygmailusername#gmail.com

Where to get the configuration? (Mail Client)

I just purchased a domain name few weeks ago,
and then i registered my domain into Windows Live Admin ( domain.live.com )
because from that Windows Live, I could manage
several email accounts. And I did. now every time I
want to write email / receive email i just go to mail.live.com
and login depend on the email accounts I just made there.
Then I tried to install Opera Mail, or even Thunderbird
in my Computer (laptop).
There are several configuration I confused.
What should I type into the incoming and outcoming server ? Imap / Pop? Which port?
I dunno....
Confused.
Because WHen I try to use thee details:
IMAP Server: as imap.charter.net SMPT Server: as smpt.charter.net
It doesnt work.
Then I tried to use
mail.mydomain.com
for both incoming & outgoing server.
And it is also doesnt work.
ANy ideas?
You have to use the outlook.com server, not your own domain:
Incoming mail server - imap-mail.outlook.com
Incoming mail server port - 993 (SSL)
Outgoing (SMTP) mail server - smtp-mail.outlook.com
Outgoing (SMTP) mail server port - 587 (SSL/TLS)
Outgoing server (SMTP) authentication - same settings as your incoming mail server

Symfony framework: How do I send email from localhost?

Using symfony framework how can I send test emails from localhost?
What are most easiest ways?
Thank you!
The easiest way, I suppose and what I normally do, is to configure the _dev environment to use good old Gmail (or any other provider for that matter). Set this up in your apps/frontend/config/factories.yml:
dev:
mailer:
class: sfMailer
param:
logging: %SF_LOGGING_ENABLED%
charset: %SF_CHARSET%
delivery_strategy: realtime
transport:
class: Swift_MailTransport
param:
host: smtp.gmail.com
port: 465
encryption: ssl
username: username#gmail.com
password: your-password
Sending e-mails will ofcourse take a little longer because PHP would have to connect to Google's servers and deliver the message.
This way you can worry about setting up a proper SMTP on your production server, and just let your dev machine be for development. Another advantage is if your develop on the road, and your local cafe / airport / kiosk blocks port 25 (they usually do) you won't have problems delivering mail.
You could install a mail server such as Postfix, and configure it to use an external mail server as an SMTP relay. Otherwise, most email services will either refuse to accept your message, or categorize it as spam.
This thread at serverfault might be helpful to you-it explains how to configure postfix to relay emails through gmail: Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587