I m using free zoho mail client application (similar to microsoft outlook) on my mobile [android / ios] for all my emails to mohtashim@techx.com
I wish to only recieve emails from my Linux Server details of which are: techx 3.10.0-514.10.2.el7.x86_64 #1 SMP CentOS release 7.3.1611 (Core).
I try the below command to shoot an email from the Linux server to my zoho mail client's mohtashim@techx.com email id but the email does not show in my inbox.
[mohtashim@techx ~]$ echo "hello" | mail mohtashim@techx.com
You have new mail in /var/spool/mail/mohtashim
As soon as i fire this email command, the logs tail -f /var/log/maillog
shows the following msg:
When i try mail command i do see the mail for mohtashim user on the Linux server as shown below:
[mohtashim@techx ~]$ mail
N 39 mohtashim@techx.c Sun Aug 27 21:34 19/710
& 39
Message 39:
From mohtashim@techx.com Sun Aug 27 21:34:12 2017
Return-Path: <mohtashim@techx.com>
From: mohtashim@techx.com
Date: Sun, 27 Aug 2017 21:34:12 +0000
To: mohtashim@techx.com
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
Status: R
hello
I m using smtp.zoho.com to send out emails from the Linux box.
Below are a few important settings from /etc/mail/sendmail.mc
define(`SMART_HOST', `smtp.zoho.com')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 465')dnl
Here are the firewall ports i have opened
[root@techx ~]# netstat -ntlp | grep sendmail
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1733/sendmail: acce
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1733/sendmail: acce
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1733/sendmail: acce
telnet smtp.zoho.com <port_number>
connects on port 587 and 465 only but does not connect on port 25.
I don't know why i don't receive the mail in my zoho application ?
Can you please help so that i can see the emails from my Linux server to my mobile zoho app ?