LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-29-2024, 11:10 AM   #16
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2

Ping work now, i tried to send mail to my gmail account, but doesn't worked.
From MAILER-DAEMON Thu Feb 29 18:00:49 2024
Return-Path: <>
X-Original-To: root@novax.lol
Delivered-To: root@novax.lol
Received: by novax.lol (Postfix)
id 9439F70080F; Thu, 29 Feb 2024 18:00:49 +0100 (CET)
Date: Thu, 29 Feb 2024 18:00:49 +0100 (CET)
From: MAILER-DAEMON@novax.lol (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root@novax.lol
Auto-Submitted: auto-replied
CMON GUYS, WHAT IS WRONG HERE?
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="A50CB70080A.1709226049/novax.lol"
Content-Transfer-Encoding: 8bit
Message-Id: <20240229170049.9439F70080F@novax.lol>

This is a MIME-encapsulated message.

--A50CB70080A.1709226049/novax.lol
Content-Description: Notification
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

This is the mail system at host novax.lol.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<critony@gmail.com>: host gmail-smtp-in.l.google.com[64.233.184.27] said:
550-5.7.1 [93.70.85.132] The IP you're using to send mail is not authorized
to 550-5.7.1 send email directly to our servers. Please use the SMTP relay
at your 550-5.7.1 service provider instead. For more information, go to 550
5.7.1 https://support.google.com/mail/?p=NotAuthorizedError
z8-20020a5d4408000000b0033e15f0a618si527062wrq.237 - gsmtp (in reply to end
of DATA command)

--A50CB70080A.1709226049/novax.lol
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; novax.lol
X-Postfix-Queue-ID: A50CB70080A
X-Postfix-Sender: rfc822; root@novax.lol
Arrival-Date: Thu, 29 Feb 2024 18:00:33 +0100 (CET)

Final-Recipient: rfc822; XXX@gmail.com
Original-Recipient: rfc822;XXX@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [93.70.85.132] The IP you're using to send
mail is not authorized to 550-5.7.1 send email directly to our servers.
Please use the SMTP relay at your 550-5.7.1 service provider instead. For
more information, go to 550 5.7.1
https://support.google.com/mail/?p=NotAuthorizedError
z8-20020a5d4408000000b0033e15f0a618si527062wrq.237 - gsmtp

--A50CB70080A.1709226049/novax.lol
Content-Description: Undelivered Message
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: <root@novax.lol>
Received: by novax.lol (Postfix, from userid 0)
id A50CB70080A; Thu, 29 Feb 2024 18:00:48 +0100 (CET)
Message-Id: <20240229170048.A50CB70080A@novax.lol>
Date: Thu, 29 Feb 2024 18:00:33 +0100 (CET)
From: root <root@novax.lol>

--A50CB70080A.1709226049/novax.lol--
 
Old 02-29-2024, 02:52 PM   #17
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
CMON GUYS, WHAT IS WRONG HERE?
At first Guess??

'The IP you're using to send email is not authorized...'

Troubleshoot delivery issues with Postmaster Tools

Gmail Postmaster Tools provides senders with metrics on parameters such as reputation, spam rate, feedback loop, etc. It can help you prevent your emails from being blocked or sent to spam by Gmail.

In order to prevent spam, Gmail refuses mail from IP addresses that are not authorized to send mail. The determination of whether or not an IP address is authorized to send mail is made by the ISP that provides you with the IP address. This list typically contains consumer IP ranges offered for dialup, DSL, or other broadband access.

What can I do to fix this?
Your ISP may provide SMTP relays which will accept mail from your IP, and these servers should be authorized to send mail. Some ISPs may provide a way to get an IP that is authorized, either by upgrading to business class service or static IP service. You should reach out to your ISP to see what options are available.

Another alternative is to send mail through your own domain’s servers, either by configuring them to allow relay from your IP address, or by using MSA (mail submission agent). Learn how to use Gmail to send mail from a different address.

Please note that we are unable to allowlist IP addresses or otherwise make exceptions.

https://support.google.com/mail/answer/10336?hl=en
 
1 members found this post helpful.
Old 03-01-2024, 05:57 AM   #18
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bitfuzzy View Post
At first Guess??

'The IP you're using to send email is not authorized...'

Troubleshoot delivery issues with Postmaster Tools

Gmail Postmaster Tools provides senders with metrics on parameters such as reputation, spam rate, feedback loop, etc. It can help you prevent your emails from being blocked or sent to spam by Gmail.

In order to prevent spam, Gmail refuses mail from IP addresses that are not authorized to send mail. The determination of whether or not an IP address is authorized to send mail is made by the ISP that provides you with the IP address. This list typically contains consumer IP ranges offered for dialup, DSL, or other broadband access.

What can I do to fix this?
Your ISP may provide SMTP relays which will accept mail from your IP, and these servers should be authorized to send mail. Some ISPs may provide a way to get an IP that is authorized, either by upgrading to business class service or static IP service. You should reach out to your ISP to see what options are available.

Another alternative is to send mail through your own domain’s servers, either by configuring them to allow relay from your IP address, or by using MSA (mail submission agent). Learn how to use Gmail to send mail from a different address.

Please note that we are unable to allowlist IP addresses or otherwise make exceptions.

https://support.google.com/mail/answer/10336?hl=en
Ok, thank you very much, we are close to the solution (I think).

Email Account Configuration (outbound mail with Vodafone SMTP service)

If you have a mail provider and you want to send and receive emails using Vodafone’s mobile and fixed connectivity, you need to set up your account on your email program by entering the specific SMTP Vodafone and the provider’s POP/IMAP parameters.

To know the address of the inbox server, refer to the POP/IMAP parameters of your membership provider (e.g. . . . Any advanced configurations (door, SSL, etc.) are also dictated by your provider.

For configuration of the SMTP outgoing mail server, follow these directions

Access the mail client settings (i.e. Outlook Express, Mozilla Thunderbird, Lotus Notes, Mail)

Configure mail.dsl.vodafone.it (for landline service) or smtp.net.vodafone.it (for mobile service) as an outgoing mail server

Activate the authentic mode for outgoing mail

Fill in the SMTP authentication fields with the Username and Password you use for Fai access from you Vodafone

Configure 587 communication port number for the outgoing mail server

root@novax:/etc/postfix# ls
dynamicmaps.cf main.cf.proto postfix-files sasl virtual.db
dynamicmaps.cf.d makedefs.out postfix-files.d sasl_passwd
main.cf master.cf postfix-script sasl_passwd.db
main.cf.db master.cf.proto post-install virtual

This is my main.cf file

smtpd_tls_cert_file= /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file= /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level= may
smtp_tls_CApath= /etc/ssl/certs
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
virtual_alias_maps = hash:/etc/postfix/virtual
myhostname = mail.novax.lol
mydomain = novax.lol
myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain localhost $mydomain
mail_spool_directory = /var/spool/mail
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = [mail.dsl.vodafone.it]:587
mynetworks = 127.0.0.0/8, 192.168.1.1/24
relay_domains =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd


then i created a sasl_passwd:
at sasl_passwd
[mail.dsl.vodafone.it]:587 MYID:MYPWD
then:
chown -R root.root /etc/postfix

root@novax:/etc/postfix# sudo postmap /etc/postfix/main.cf
root@novax:/etc/postfix#


sendmail XXXXX@gmail.com
From: root@novax.lol
Subject: Test
Ciao!

cat /var/log/mail.log
Mar 1 13:05:32 novax postfix/postfix-script[6896]: refreshing the Postfix mail system
Mar 1 13:05:32 novax postfix/master[2229]: reload -- version 3.6.4, configuration /etc/postfix
Mar 1 13:07:02 novax postfix/pickup[6900]: C82BF7005C9: uid=0 from=<root@novax.lol>
Mar 1 13:07:02 novax postfix/cleanup[6949]: C82BF7005C9: message-id=<20240301120702.C82BF7005C9@mail.novax.lol>
Mar 1 13:07:02 novax postfix/qmgr[6901]: C82BF7005C9: from=<root@novax.lol>, size=340, nrcpt=1 (queue active)
Mar 1 13:07:03 novax postfix/smtp[6951]: C82BF7005C9: to=<XXX@gmail.com>, relay=mail.dsl.vodafone.it[91.80.36.15]:587, delay=0.45, delays=0.03/0.03/0.32/0.07, dsn=2.0.0, status=sent (250 2.0.0 421C72mT020967-421C72mV020967 Message accepted for delivery)
Mar 1 13:07:03 novax postfix/qmgr[6901]: C82BF7005C9: removed


BUT NOT INCOMING MAIL

Tried to send mail tru telnet:
root@novax:~# telnet gmail-smtp-in.l.google.com 25
Trying 2a00:1450:400c:c0b::1a...
Connected to gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP v11-20020a5d6b0b000000b0033dbe9560a0si2533218wrw.826 - gsmtp
HELO gmail.com
250 mx.google.com at your service
mail from: <root@novax.lol>
250 2.1.0 OK v11-20020a5d6b0b000000b0033dbe9560a0si2533218wrw.826 - gsmtp
rcpt to:<xxxxxx@gmail.com>
250 2.1.5 OK v11-20020a5d6b0b000000b0033dbe9560a0si2533218wrw.826 - gsmtp
data
354 Go ahead v11-20020a5d6b0b000000b0033dbe9560a0si2533218wrw.826 - gsmtp
Subject: My Telnet Test Email
prova
.
550-5.7.1 [2a01:827:1922:e401:71ce:98f8:a132:5cfb] Messages missing a valid
550-5.7.1 Message-ID header are not accepted. For more information, go to
550-5.7.1 https://support.google.com/mail/?p=R...geNonCompliant and review
550 5.7.1 RFC 5322 specifications. v11-20020a5d6b0b000000b0033dbe9560a0si2533218wrw.826 - gsmtp
Connection closed by foreign host.
Should this be a v=spf1 problem?
i added these parameters:
TXT Record

@ v=spf1 a:mail.novax.lol ip4:192.168.1.8 include:_spf.google.com ~all 60 min (see pic=
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-03-01 18-52-07.png
Views:	3
Size:	54.6 KB
ID:	42610  

Last edited by maddy0; 03-01-2024 at 11:54 AM.
 
Old 03-01-2024, 10:44 AM   #19
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
BUT NOT INCOMING MAIL
That is due to two DNS record issues for novax.lol, ONE of which you've been instructed to change several times.


1) The IP you are using in your DNS record

Quote:
bash-5.1$ dig novax.lol

; <<>> DiG 9.16.48 <<>> novax.lol
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12991
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: b333d041db9d8e1c0100000065e203a4be361b0388419f5f (good)
;; QUESTION SECTION:
;novax.lol. IN A

;; ANSWER SECTION:
novax.lol. 1788 IN A 192.168.1.8

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Mar 01 11:34:44 EST 2024
;; MSG SIZE rcvd: 82
Is a private IP. This will not work
You need to use the IP address from your ISP last identified as being "93.70.85.132"

NOTE: If your ISP-IP is not static (DHCP), you will need to change the IP address every time a new IP is obtained from the ISP

2) Your DNS record for novax.lol does not have a mx (mail server) record

Quote:
bash-5.1$ dig mx novax.lol

; <<>> DiG 9.16.48 <<>> mx novax.lol
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20725
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 155c32999f548b550100000065e203bbdfadde7c6eaef777 (good)
;; QUESTION SECTION:
;novax.lol. IN MX

;; AUTHORITY SECTION:
novax.lol. 3601 IN SOA dns1.registrar-servers.com. hostmaster.registrar-servers.com. 1709224630 43200 3600 604800 3601

;; Query time: 23 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Mar 01 11:35:07 EST 2024
;; MSG SIZE rcvd: 139
Without resolving these two items, you have no chance in receiving email sent to your domain (novax.lol)
 
1 members found this post helpful.
Old 03-01-2024, 12:01 PM   #20
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bitfuzzy View Post
That is due to two DNS record issues for novax.lol, ONE of which you've been instructed to change several times.


1) The IP you are using in your DNS record



Is a private IP. This will not work
You need to use the IP address from your ISP last identified as being "93.70.85.132"

NOTE: If your ISP-IP is not static (DHCP), you will need to change the IP address every time a new IP is obtained from the ISP

2) Your DNS record for novax.lol does not have a mx (mail server) record



Without resolving these two items, you have no chance in receiving email sent to your domain (novax.lol)
Well, iìll try to buy a static IP by my ISP, NOT sure i can...
 
Old 03-01-2024, 05:06 PM   #21
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bitfuzzy View Post
That is due to two DNS record issues for novax.lol, ONE of which you've been instructed to change several times.


1) The IP you are using in your DNS record



Is a private IP. This will not work
You need to use the IP address from your ISP last identified as being "93.70.85.132"

NOTE: If your ISP-IP is not static (DHCP), you will need to change the IP address every time a new IP is obtained from the ISP

2) Your DNS record for novax.lol does not have a mx (mail server) record



Without resolving these two items, you have no chance in receiving email sent to your domain (novax.lol)
Hopefully i did everything good with NAT... I think now ihave my static IP: 109.116.110.190
 
Old 03-01-2024, 06:30 PM   #22
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Is this good?
A Record @ 109.116.110.190 Automatic

A Record mail 109.116.110.190 Automatic
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN mail clients cannot send mail (receiving mail is working) rnturn Linux - Server 2 07-22-2015 11:53 PM
[SOLVED] Postfix - I can send mail from my computer; but others can't send to me... djuhl30 Linux - Server 8 10-12-2009 02:34 PM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration