Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Failed to send emails to gmail

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
17 posts
  • 1
  • 2
  • Next
amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Failed to send emails to gmail
  • Quote

Post by amos » Fri Jul 05, 2019 6:49 am

Hi

After not being able to send emails to any email address, my sysadmin took care of the exim files as explained. Now everything is working except for Gmail. When sending an email to Gmail I either get:
1. all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
2. host alt4.gmail-smtp-in.l.google.com [74.125.193.26] retry timeout exceeded

When doing exim -bt .... I get
router = dnslookup, transport = remote_smtp
host gmail-smtp-in.l.google.com [74.125.197.26] MX=5
host alt1.gmail-smtp-in.l.google.com [209.85.200.27] MX=10
host alt2.gmail-smtp-in.l.google.com [74.125.21.27] MX=20
host alt3.gmail-smtp-in.l.google.com [209.85.144.27] MX=30
host alt4.gmail-smtp-in.l.google.com [74.125.141.27] MX=40

All other addresses working perfectly, what else can be done?
I'm using 4.91 (on ubuntu). My sysadmin said that 4.92 is still not available.
Thanks

Edit: I get the following when emailing using exim itself:

gmail-smtp-in.l.google.com [74.125.197.27] TLS error on connection (recv): Resource temporarily unavailable, try again.
gmail-smtp-in.l.google.com [74.125.197.27]: Remote host closed connection in response to EHLO mail...
alt1.gmail-smtp-in.l.google.com [209.85.200.27] TLS error on connection (recv): Resource temporarily unavailable, try again.
alt1.gmail-smtp-in.l.google.com [209.85.200.27]: alt1.gmail-smtp-in.l.google.com [209.85.200.27]: No such file or directory
[email protected] R=dnslookup T=remote_smtp defer (2): No such file or directory H=alt1.gmail-smtp-in.l.google.com [209.85.200.27]: [email protected]: retry timeout exceeded
Top

HenrysCat
Posts: 51
Joined: Sun Mar 25, 2018 7:25 pm

Os: CentOS 6x
Web: apache + nginx
Re: Failed to send emails to gmail
  • Quote

Post by HenrysCat » Tue Jul 09, 2019 7:51 pm

Have you tried sending an email to https://www.mail-tester.com/ it can tell you a lot.
Top

amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Re: Failed to send emails to gmail
  • Quote

Post by amos » Tue Jul 09, 2019 8:26 pm

Did already, 10/10 :)
Top

HenrysCat
Posts: 51
Joined: Sun Mar 25, 2018 7:25 pm

Os: CentOS 6x
Web: apache + nginx
Re: Failed to send emails to gmail
  • Quote

Post by HenrysCat » Tue Jul 09, 2019 8:39 pm

What about this one? https://www.checktls.com/TestReceiver
Top

amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Re: Failed to send emails to gmail
  • Quote

Post by amos » Wed Jul 10, 2019 5:22 am

I get this
Certificate 1 of 1 in chain: Cert VALIDATION ERROR(S): unable to get local issuer certificate; unable to verify the first certificate
This may help: What Is An Intermediate Certificate
So email is encrypted but the recipient domain is not verified

Which might be related but I have no idea what to do with it. All other tests in this page are ok...
Top

HenrysCat
Posts: 51
Joined: Sun Mar 25, 2018 7:25 pm

Os: CentOS 6x
Web: apache + nginx
Re: Failed to send emails to gmail
  • Quote

Post by HenrysCat » Wed Jul 10, 2019 7:27 pm

Image

Do you have an SSL cert on the server? if so it must contain both the domain and the mail domain, e.g. mydomian.com & mail.mydomain.com
Top

amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Re: Failed to send emails to gmail
  • Quote

Post by amos » Wed Jul 10, 2019 11:07 pm

I'm on my way there, I use this site viewtopic.php?t=17151
but I'm stuck in this step "Now go to your EXIM.conf, probably located in /etc/exim/exim.conf and search for: tls_privatekey, then comment:"

I didn't find exim folder,I did see exim4 under etc but there is no exim.conf file there. I've found update-exim4.conf.conf but it doesn't seem to have what the guide says. I'm a bit lost here.
Top

HenrysCat
Posts: 51
Joined: Sun Mar 25, 2018 7:25 pm

Os: CentOS 6x
Web: apache + nginx
Re: Failed to send emails to gmail
  • Quote

Post by HenrysCat » Thu Jul 11, 2019 6:38 am

This is the thread you want viewtopic.php?f=19&t=12617&p=72195#p72195
Top

amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Re: Failed to send emails to gmail
  • Quote

Post by amos » Thu Jul 11, 2019 7:54 am

Thanks, apparently there was a configuration problem with my VPS that my sysadmin fixed and managed the required changes
Top

amos
Posts: 11
Joined: Fri Jul 05, 2019 6:43 am

Os: Ubuntu 17x
Web: apache
Re: Failed to send emails to gmail
  • Quote

Post by amos » Thu Jul 11, 2019 6:16 pm

Unfortunately it doesn't seem to help: https://www.checktls.com/TestReceiver now shows OK for everything but I did the following using ssh:

$ exim -v [email protected]
from: [email protected]
subject: testing gmail
this is a test, did you receive it?
LOG: MAIN
<= [email protected] U=... P=local S=362
...@mail:~$ delivering 1hldYm-000Wx3-A7
LOG: retry_defer MAIN
== [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'gmail.com'
Top


Post Reply
  • Print view

17 posts
  • 1
  • 2
  • Next

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password