Page 1 of 1

i can't send mail to gmail and any other outside mail

Posted: Wed Nov 01, 2017 2:44 pm
by mr49r
i can't send mail to gmail and any other outside mail.but incoming mails working properly how to fix this issue?
this is mainlog output

Code: Select all

2017-11-01 13:15:16 exim 4.86_2 daemon started: pid=19659, -q30m, listening for SMTP on port 25 (IPv4) port 587 (IPv4) port 2525 (IPv4) and for SMTPS on port 465 (IPv4)
2017-11-01 13:15:16 Start queue run: pid=19661
2017-11-01 13:15:16 End queue run: pid=19661
2017-11-01 13:15:30 1e9sri-0005tX-Nh <= [email protected] U=root P=local S=850
2017-11-01 13:17:38 1e9sri-0005tX-Nh H=gmail-smtp-in.l.google.com [74.125.133.26] Connection timed out
2017-11-01 13:19:45 1e9sri-0005tX-Nh H=alt1.gmail-smtp-in.l.google.com [173.194.221.27] Connection timed out
2017-11-01 13:21:52 1e9sri-0005tX-Nh H=alt2.gmail-smtp-in.l.google.com [74.125.130.26] Connection timed out
2017-11-01 13:23:59 1e9sri-0005tX-Nh H=alt3.gmail-smtp-in.l.google.com [64.233.188.27] Connection timed out
2017-11-01 13:24:01 exim 4.86_2 daemon started: pid=26179, -q30m, listening for SMTP on port 25 (IPv4) port 587 (IPv4) port 2525 (IPv4) and for SMTPS on port 465 (IPv4)
2017-11-01 13:24:01 Start queue run: pid=26185
2017-11-01 13:24:01 1e9sri-0005tX-Nh Spool file is locked (another process is handling this message)
2017-11-01 13:24:01 End queue run: pid=26185
2017-11-01 13:26:06 1e9sri-0005tX-Nh H=alt4.gmail-smtp-in.l.google.com [74.125.28.26] Connection timed out
2017-11-01 13:26:06 1e9sri-0005tX-Nh == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2017-11-01 13:27:40 H=(dnscheck.pingdom.com) [176.221.80.21] F=<> rejected RCPT <[email protected]>: Unrouteable address
2017-11-01 13:36:43 no host name found for IP address 172.82.162.156
2017-11-01 13:36:44 H=(WIN-S9D1FJNAAQI) [172.82.162.156] F=<[email protected]> rejected RCPT <[email protected]>: relay not permitted
2017-11-01 13:53:52 1e9tSq-0001pr-MD <= [email protected] U=admin P=local S=10305 [email protected]
2017-11-01 13:54:01 Start queue run: pid=7082
2017-11-01 13:56:00 1e9tSq-0001pr-MD H=server232.web-hosting.com [198.54.114.178] Connection timed out
2017-11-01 13:56:08 1e9sri-0005tX-Nh H=gmail-smtp-in.l.google.com [74.125.133.26] Connection timed out
2017-11-01 13:56:31 1e9tVP-0001wY-53 <= [email protected] U=admin P=local S=569 [email protected]
2017-11-01 13:56:31 1e9tVP-0001wY-53 => info <[email protected]> R=localuser T=local_delivery
2017-11-01 13:56:31 1e9tVP-0001wY-53 Completed
2017-11-01 13:58:07 1e9tSq-0001pr-MD H=smx1.web-hosting.com [162.255.118.61] Connection timed out
2017-11-01 13:58:15 1e9sri-0005tX-Nh H=alt1.gmail-smtp-in.l.google.com [173.194.222.27] Connection timed out
2017-11-01 13:59:00 no host name found for IP address 112.134.4.203
2017-11-01 13:59:00 no host name found for IP address 112.134.4.203
2017-11-01 13:59:00 SMTP protocol synchronization error (next input sent too soon: pipelining was not advertised): rejected "EHLO we-guess.mozilla.org" H=[112.134.4.203] next input="QUIT\r\n"
2017-11-01 13:59:04 no host name found for IP address 112.134.4.203
2017-11-01 13:59:04 no host name found for IP address 112.134.4.203
2017-11-01 14:00:14 1e9tSq-0001pr-MD H=smx1.web-hosting.com [162.255.118.62] Connection timed out
2017-11-01 14:00:14 1e9tSq-0001pr-MD == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2017-11-01 14:00:23 1e9sri-0005tX-Nh H=alt2.gmail-smtp-in.l.google.com [74.125.130.26] Connection timed out
2017-11-01 14:00:43 no host name found for IP address 112.134.4.203
2017-11-01 14:00:44 1e9tZU-00022E-KH <= [email protected] H=([192.168.1.104]) [112.134.4.203] P=esmtpsa X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no A=dovecot_plain:[email protected] S=676 [email protected]
2017-11-01 14:00:45 1e9tZU-00022E-KH == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2017-11-01 14:02:08 1e9taq-00023H-HG DKIM: d=blinwebdev.com s=default c=relaxed/relaxed a=rsa-sha256 [verification succeeded]
2017-11-01 14:02:08 1e9taq-00023H-HG <= [email protected] H=server232-2.web-hosting.com [198.54.115.52] P=esmtps X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no S=2379 [email protected]
2017-11-01 14:02:08 1e9taq-00023H-HG => info <[email protected]> R=localuser T=local_delivery
2017-11-01 14:02:08 1e9taq-00023H-HG Completed
2017-11-01 14:02:30 1e9sri-0005tX-Nh H=alt3.gmail-smtp-in.l.google.com [64.233.188.26] Connection timed out
2017-11-01 14:04:26 1e9td4-00024y-Oe DKIM: d=gmail.com s=20161025 c=relaxed/relaxed a=rsa-sha256 [verification succeeded]
2017-11-01 14:04:26 1e9td4-00024y-Oe <= [email protected] H=mail-io0-f177.google.com [209.85.223.177] P=esmtps X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no S=2611 id=CAKv-mA+aQ0XidNTmOLUc7b-7jOHHdhLa6+ebmzoRZcCu9fbgzw@mail.gmail.com
2017-11-01 14:04:26 1e9td4-00024y-Oe => info <[email protected]> R=localuser T=local_delivery
2017-11-01 14:04:26 1e9td4-00024y-Oe Completed
2017-11-01 14:04:37 1e9sri-0005tX-Nh H=alt4.gmail-smtp-in.l.google.com [74.125.28.26] Connection timed out
2017-11-01 14:04:37 1e9sri-0005tX-Nh == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2017-11-01 14:04:37 1e9tSq-0001pr-MD == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2017-11-01 14:04:37 End queue run: pid=7082
2017-11-01 14:04:57 no host name found for IP address 112.134.4.203
2017-11-01 14:04:58 1e9tda-000258-Ka <= [email protected] H=([192.168.1.104]) [112.134.4.203] P=esmtpsa X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no A=dovecot_plain:[email protected] S=923 [email protected]
2017-11-01 14:07:05 1e9tda-000258-Ka H=gmail-smtp-in.l.google.com [64.233.184.26] Connection timed out
2017-11-01 14:09:13 1e9tda-000258-Ka H=alt1.gmail-smtp-in.l.google.com [173.194.221.27] Connection timed out
2017-11-01 14:11:20 1e9tda-000258-Ka H=alt3.gmail-smtp-in.l.google.com [64.233.188.27] Connection timed out
2017-11-01 14:11:20 1e9tda-000258-Ka == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2017-11-01 14:16:59 1e9tpD-0002JG-Or DKIM: d=gmail.com s=20161025 c=relaxed/relaxed a=rsa-sha256 [verification succeeded]
2017-11-01 14:16:59 1e9tpD-0002JG-Or <= [email protected] H=mail-io0-f173.google.com [209.85.223.173] P=esmtps X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no S=3380 id=CAKv-mAJ=32xFJ1LepFVSNjdd0cy-Z4K=Nrve5oHawHOzGpJJaA@mail.gmail.com
2017-11-01 14:16:59 1e9tpD-0002JG-Or => info <[email protected]> R=localuser T=local_delivery
2017-11-01 14:16:59 1e9tpD-0002JG-Or Completed
2017-11-01 14:17:29 no host name found for IP address 112.134.4.203
2017-11-01 14:17:31 1e9tpj-0002JN-7R <= [email protected] H=([192.168.1.104]) [112.134.4.203] P=esmtpsa X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no A=dovecot_plain:[email protected] S=2513 [email protected]
2017-11-01 14:18:07 no host name found for IP address 112.134.4.203
2017-11-01 14:18:08 1e9tqK-0002Ja-Kj <= [email protected] H=([192.168.1.104]) [112.134.4.203] P=esmtpsa X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no A=dovecot_plain:[email protected] S=3871 [email protected]
2017-11-01 14:19:38 1e9tpj-0002JN-7R H=alt2.gmail-smtp-in.l.google.com [74.125.130.27] Connection timed out

Re: i can't send mail to gmail and any other outside mail

Posted: Thu Nov 02, 2017 1:44 pm
by mehargags
Are you able to ping google.com and the SMTPs listed in the log ?

Looks like you need to edit your nameservers in /etc/resolv.conf and give Google's IPs there

Code: Select all

nano  /etc/resolv.conf
Paste in this:

Code: Select all

# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
Then check ping and check if you are able to send mails. If all works well, REBOOT your server and check the whole thing again.

Re: i can't send mail to gmail and any other outside mail

Posted: Thu Nov 02, 2017 7:29 pm
by mr49r
mehargags wrote:Are you able to ping google.com and the SMTPs listed in the log ?

Looks like you need to edit your nameservers in /etc/resolv.conf and give Google's IPs there

Code: Select all

nano  /etc/resolv.conf
Paste in this:

Code: Select all

# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
Then check ping and check if you are able to send mails. If all works well, REBOOT your server and check the whole thing again.
i did according this but still not working mail receiving from gmail but can't send

Re: i can't send mail to gmail and any other outside mail

Posted: Fri Nov 03, 2017 6:29 pm
by mehargags
Can you ping google.com ? please read instructions carefully

Re: i can't send mail to gmail and any other outside mail

Posted: Fri Nov 03, 2017 6:57 pm
by mr49r
mehargags wrote:Can you ping google.com ? please read instructions carefully
yes ping is working

Re: i can't send mail to gmail and any other outside mail

Posted: Sat Nov 04, 2017 7:25 am
by mehargags
Where is your server hosted ?
Can you open a ticket with your provider and ask why the connection is timing out ? May be they are blocking out all SMTP traffic. Many hosts do this by default and open the ports on specific request (or refuse).