Hello,

After checks I noticed that I had "1.1.1.1" in my resolv.conf. And that this DNS was specified in my dhcpcd.conf (certainly a mistake on my side).

I deleted this entry in dhcpcd.conf and restarted the service. And no more "1.1.1.1" in resolv.conf.

I tested to send an email from another server and it works now.

GOOD !!!


Thank's all for your help.


Le 01/01/2023 à 21:38, Shawn Heisey a écrit :
On 1/1/23 12:33, Bill Cole wrote:
also, private IP ranges should be excluded from checking in DNS lists.

Yes, but non sequitur...

... as your server connects to 192.168.1.160, I assume that servers sees your address to be from private range too.

Nope, the connecting address is shown in the error message's Spamhaus URL: 172.71.117.8. A Cloudflare address (!)

From what I can tell with a little bit of testing, spamhaus is reporting the IP address of the DNS server that contacted the spamhaus RBL.  That RBL is not used with an IP address, it is a domain name lookup.

Try one of the following commands out on a *NIX system with either "host" or "nslookup" installed.  It looks up a TXT record for mehl-family.fr (the OP's sender address domain) on the same RBL the OP uses.  The lookup is sent to 1.1.1.1, which is cloudflare's public DNS resolver:

host -t TXT mehl-family.fr.dbl.spamhaus.org 1.1.1.1
nslookup -type=TXT mehl-family.fr.dbl.spamhaus.org 1.1.1.1

Unless the Raspberry Pi is located in cloudflare's network, which I suspect is not actually possible for most people, it means that 192.168.1.160 is using cloudflare for DNS.

I tried the above commands to 8.8.8.8 instead of 1.1.1.1, and it didn't report "public resolver" which I found a little bit strange.  So the OP could probably use 8.8.8.8 and 8.8.4.4 for DNS, but that's not a good idea long term.  They really need to install unbound or bind9 on the mailserver and use 127.0.0.1 for DNS.

Not sure if this applies or not:  It is generally not a good idea to run a public mailserver on a typical home ISP or many small business ISP connections.  These networks are very often on public blocklists used all over the Internet, which means that a large percentage of the mail that gets sent by a server in one of these ISP networks will be denied.

Thanks,
Shawn

--------------------------------------------------
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à 
l’intention exclusive des destinataires désignés. Il contient des informations 
confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce 
message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le 
message. Toute utilisation de ce message non conforme à sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de 
l’émetteur. L'internet ne garantissant pas l'intégrité de ce message lors de son 
acheminement, l'expéditeur décline toute responsabilité au titre de son contenu. Bien que 
ce message ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne 
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne pourrait 
être tenu pour responsable des dommages engendrés par la transmission de l’un d’eux.

Pensez environnement ! N’imprimez cet email que si c’est nécessaire.
This message and any attachments (the "message") are intended solely for the 
addressee(s). It contains confidential information, that may be privileged. If you 
receive this message in error, please notify the sender immediately and delete the 
message. Any use of the message in violation of its purpose, any dissemination or 
disclosure, either wholly or partially is strictly prohibited, unless it has been 
explicitly authorized by the sender. As its integrity cannot be secured on the internet, 
the sender decline any liability for the content of this message. Although the sender 
endeavors to maintain a computer virus-free network, the sender does not warrant that 
this transmission is virus-free and will not be liable for any damages resulting from any 
virus transmitted.

Think environment! Print this email only if necessary.
--------------------------------------------------

Reply via email to