Quote:
Originally Posted by bitfuzzy
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=