Unable to Receive or send email from server on GCP

Hi Team,

I am facing a strange issue, I am not able to send or receive emails to/from my email created for domain hosted on cyberpanel v 1.8.9

I have followed documentation & blog post mentioned below

Added dns records on cloudflare for my domain like spf, mx, dmarc, dkim etc.

Opened port 2525(SMTP) & 1089(Mail Policy) in firewall rules plus added PTR records to VM for my domain as well.

Also disabled selinux as informed last time by your team.

Is opendkim still causing an issue in V1.8.9 as identified by @qtwrk last time.

Anyone can guide me to resolve this.

Thanks :slight_smile:

hmmmmm , please check your mail log , it usually states why it failed to delivery.

@cloudrider

im on the same boat, did you found a fix?

@Loops show us the output of your email log.

Aug 18 22:30:35 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16268, TLS, session=<15mto3GQpq8AAAAAAAAAAAAAAAAAAAAB>
Aug 18 22:30:35 localhost dovecot: imap([email protected])<16268><15mto3GQpq8AAAAAAAAAAAAAAAAAAAAB>: Logged out in=11 out=470 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:36 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16270, TLS, session=
Aug 18 22:30:36 localhost dovecot: imap([email protected])<16270>: Logged out in=80 out=1523 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:36 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16276, TLS, session=
Aug 18 22:30:36 localhost dovecot: imap([email protected])<16276>: Logged out in=110 out=1409 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:37 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16277, TLS, session=
Aug 18 22:30:37 localhost dovecot: imap([email protected])<16277>: Logged out in=380 out=1518 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:41 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16279, TLS, session=
Aug 18 22:30:41 localhost dovecot: imap([email protected])<16279>: Logged out in=94 out=1008 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:41 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16281, TLS, session=
Aug 18 22:30:41 localhost dovecot: imap([email protected])<16281>: Logged out in=28 out=891 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:57 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16283, TLS, session=
Aug 18 22:30:57 localhost postfix/submission/smtpd[16284]: connect from localhost[::1]
Aug 18 22:30:57 localhost postfix/submission/smtpd[16284]: E4F106055D27: client=localhost[::1], sasl_method=PLAIN, [email protected]
Aug 18 22:30:57 localhost postfix/cleanup[16290]: E4F106055D27: message-id=[email protected]
Aug 18 22:30:57 localhost opendkim[3352]: E4F106055D27: DKIM-Signature field added (s=default, d=somesite.com)
Aug 18 22:30:58 localhost postfix/qmgr[13820]: E4F106055D27: from=[email protected], size=1211, nrcpt=1 (queue active)
Aug 18 22:30:58 localhost postfix/submission/smtpd[16284]: disconnect from localhost[::1]
Aug 18 22:30:58 localhost dovecot: imap([email protected])<16283>: Logged out in=989 out=549 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:30:58 localhost postfix/smtp[16293]: connect to aspmx.l.google.com[5607:f8b0:890e:c04::1b]:25: Network is unreachable
Aug 18 22:30:58 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16295, TLS, session=<02YKpXGQuK8AAAAAAAAAAAAAAAAAAAAB>
Aug 18 22:30:58 localhost dovecot: imap([email protected])<16295><02YKpXGQuK8AAAAAAAAAAAAAAAAAAAAB>: Logged out in=96 out=1010 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:00 localhost postfix/smtp[16293]: E4F106055D27: to=[email protected], relay=aspmx.l.google.com[65.185.642.56]:74, delay=2.6, delays=0.11/0.01/2.2/0.26, dsn=2.0.0, status=sent (250 2.0.0 OK 1566192660 t185si9004741pgb.329 - gsmtp)
Aug 18 22:31:00 localhost postfix/qmgr[13820]: E4F106055D27: removed
Aug 18 22:31:31 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16312, TLS, session=
Aug 18 22:31:31 localhost dovecot: imap([email protected])<16312>: Logged out in=80 out=1523 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:32 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16315, TLS, session=
Aug 18 22:31:32 localhost dovecot: imap([email protected])<16315>: Logged out in=608 out=2547 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=297 body_count=0 body_bytes=0
Aug 18 22:31:32 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16316, TLS, session=
Aug 18 22:31:32 localhost dovecot: imap([email protected])<16316>: Logged out in=380 out=1502 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:32 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16320, TLS, session=
Aug 18 22:31:32 localhost dovecot: imap([email protected])<16320>: Logged out in=94 out=1008 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:35 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16322, TLS, session=
Aug 18 22:31:35 localhost dovecot: imap([email protected])<16322>: Logged out in=110 out=1409 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:36 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16324, TLS, session=
Aug 18 22:31:36 localhost dovecot: imap([email protected])<16324>: Logged out in=28 out=891 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:37 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16326, TLS, session=
Aug 18 22:31:37 localhost dovecot: imap([email protected])<16326>: Logged out in=80 out=1533 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:38 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16329, TLS, session=
Aug 18 22:31:38 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16330, TLS, session=
Aug 18 22:31:38 localhost dovecot: imap([email protected])<16329>: Logged out in=110 out=1409 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:38 localhost dovecot: imap([email protected])<16330>: Logged out in=380 out=1502 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 18 22:31:43 localhost dovecot: imap-login: Login: user=[email protected], method=PLAIN, rip=::1, lip=::1, mpid=16342, TLS, session=<1iC/p3GQ0K8AAAAAAAAAAAAAAAAAAAAB>
Aug 18 22:31:43 localhost dovecot: imap([email protected])<16342><1iC/p3GQ0K8AAAAAAAAAAAAAAAAAAAAB>: Logged out in=28 out=891 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

I deleted emai log, then logged into the account and proceeded to send an email.

After receiving the email, I reply to the sender… but the recipient does not receive the email.

I receive this error from gmail

“The response was:
The recipient server did not accept our requests to connect.”

[somesite.com 222.22.222.222: timed out]

Guys GCP does not allow outbound email → Sending email from an instance  |  Compute Engine Documentation  |  Google Cloud

Hi @CyberPanel

So sad to know this, they should allow at-least transnational mails from the virtual machines. :triumph:

And still I am yet to see performance improvement on google cloud why these so called WP managed hosting providers glorify GCP based on performance. Even my Digitalocean servers are having better load time than GCP for the same site :sweat_smile:.

One thing which I noticed is FTP transfer speed is good but when you update plugins via WP repository it takes quite a time.

Any recommendation one email & smtp services, does google offers anything similar to Amazon SES.

I don’t think GCP is competing on performance compared to DO or other providers, rather focusing on reliability for larger enterprises.

Same with Amazon lightsail, price is same but low performance.

Thanks @CyberPanel
MX Records were wrong… Everything works now

@Loops

Are you using Google Cloud or any other provider.

Type your comment> @Loops said:

Thanks @CyberPanel
MX Records were wrong… Everything works now

Should you send let me now some example MX record?