Mail Server Can’t send to gmail (only Gmail)

yuttakarn

Verified User
Joined
Apr 11, 2024
Messages
9
Screenshot_11-4-2024_13634_dash.cloudflare.com
Screenshot_11-4-2024_13634_dash.cloudflare.com1930×970 186 KB



Status: 5.0.0
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 The IP you’re using to send mail is not
550-5.7.1 authorized to send email directly to our servers. Please use the SMTP
550-5.7.1 relay at your service provider instead. For more information, go to
550 5.7.1 'The IP you're using to send email is not authorized...' - Gmail Help 17-20020a630c51000000s9fsi610012pgm.818 - gsmtp

outlook, m365 can receive normally
 
Stil not working
Screenshot_12-4-2024_124043_dash.cloudflare.com.png
 
;; A Records
domain.co. 1 IN A 89.116.s
mail.domain.co. 86400 IN A 89.1s
pop.domain.co. 1 IN A 89.116.1s
smtp.domain.co. 1 IN A 89.116.1s
webmail.domain.co. 86400 IN A 89.11s

;; CNAME Records
ftp.domain.co. 86400 IN CNAME domain.co.
www.domain.co. 86400 IN CNAME domain.co.

;; MX Records
domain.co. 86400 IN MX 10 mail.domain.co.

;; NS Records
domain.co. 1 IN NS ns2.ssss.da.direct.
domain.co. 1 IN NS ns1.server-ss.da.direct.

;; SRV Records
_imaps._tcp.domain.co. 86400 IN SRV 0 0 993 domain.co.
_pop3s._tcp.domain.co. 86400 IN SRV 0 0 995 domain.co.
_smtps._tcp.domain.co. 86400 IN SRV 0 0 465 domain.co.

;; TXT Records
_acme-challenge.domain.co. 86400 IN TXT "sssss"
domain.co. 1 IN TXT "v=spf1 a mx ip4:89.s ip6:2ss:ss:10:sss:0:0:0:1 include:_spf.google.com ~all"
domain.co. 1 IN TXT "_mta-sts"
_dmarc.domain.co. 1 IN TXT "v=DMARC1; p=none; rua=mailto:[email protected],mailto:[email protected];"
x._domainkey.domain.co. 1 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAm/MD5iBpjDnvyBQSftcsFaOvEkP4NJo6TNkaw9sDrNJl83Fcg/fYYPuB1aZekHAd6bf7vqOQFfo06KfSLLgrtEBd" "0Xlh3TP7s/Aj6BSQrUkSqvf4sNyGdDwsEiGdJGGp9J7+CUQDuldZRyvdcjDqjn3FLllrL64m54LT7XJyuwjepEQn6IPPwcsewYTDloCq9ALsSy04mzQIDAQAB"
 

tip;
dont use these type of ns names:
domain.co. 1 IN NS ns2.ssss.da.direct.
domain.co. 1 IN NS ns1.server-ss.da.direct.

but something like

ns1.myserver.com
ns2.myserver.com

Also change srv496654.hstgr.cloud to your own
 
Last edited:
what should i do
You should first have your own domain name, and if you have that, install that on the server and also use a hostname from your own domain.
 
You should first have your own domain name, and if you have that, install that on the server and also use a hostname from your own domain.
I changed but still can't send

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

host gmail-smtp-in.l.google.com [2607:f8b0:4023:c0d::1b]
SMTP error from remote mail server after end of data:
550-5.7.1 [2a02:4780:10:b39e::1] The IP you're using to send mail is not
550-5.7.1 authorized to send email directly to our servers. Please use the SMTP
550-5.7.1 relay at your service provider instead. For more information, go to
550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError y23-20020aa78057000000b006eaf0665127si5879093pfm.306 - gsmtp
Reporting-MTA: dns; server.baanhub.co

Action: failed
Final-Recipient: rfc822;@gmail.com
Status: 5.0.0
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [2a02:4780:10:b39e::1] The IP you're using to send mail is not
550-5.7.1 authorized to send email directly to our servers. Please use the SMTP
550-5.7.1 relay at your service provider instead. For more information, go to
550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError y23-20020aa78057000000b006eaf0665127si5879093pfm.306 - gsmtp
 
550-5.7.1 [2a02:4780:10:b39e::1] The IP you're using to send mail is not
550-5.7.1 authorized to send email directly to our servers.
First of all, it's better not to use "mail.domain.com" for your hostname, can cause issues. Use something like server.domain.com or something like that. It prevents issues.

Next to that, as you can see, that your server is not authorized to send mail as already stated a couple of times. You have to contact your server provider to fix this.
We can't help you with that. So contact Hostinger about that.
 
The IP you're using to send mail is not
550-5.7.1 authorized to send email directly to our servers. Please use the SMTP
550-5.7.1 relay at your service provider instead. For more information, go to
550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError


You still have the error:

The IP you're using to send mail is not authorized to send email directly to our servers. Please use the SMTP relay at your service provider instead. For more information, go to https://support.google.com/mail/?p=NotAuthorizedError

Open the link Gmail suggests to visit and you will see what you can do.
 
Back
Top