On 15/10/2020 18.47, David Haller wrote:
Hello,
On Thu, 15 Oct 2020, Carlos E. R. wrote:
On 15/10/2020 10.03, David Haller wrote:
On Thu, 15 Oct 2020, Carlos E.R. wrote:
On 15/10/2020 09.28, Carlos E. R. wrote:
On 15/10/2020 07.56, David Haller wrote: ...
127.0.0.1 Telcontar.valinor Telcontar localhost
No, this entry breaks postfix. Well... I haven't tried that exact entry, but the one that YaST created in the past:
127.0.0.2 Telcontar.valinor Telcontar
Then do try that exact entry (no .2). But, admittedly, I do set 'myhostname' explicitly in main.cf. Should work without though. [..] After:
cer@Telcontar:~> hostname Telcontar cer@Telcontar:~> hostname -f Telcontar.valinor cer@Telcontar:~> hostname -a Telcontar localhost Telcontar cer@Telcontar:~> host localhost localhost has address 127.0.0.1 localhost has IPv6 address ::1 cer@Telcontar:~>
Telcontar:~ # systemctl restart postfix Telcontar:~ # systemctl status postfix ? postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2020-10-15 17:59:19 CEST; 23s ago Process: 31997 ExecStopPost=/etc/postfix/system/cond_slp deregister (code=exited, status=0/SUCCESS) ...
Telcontar:~ # mail cer Subject: test after localhost change hi . EOT Telcontar:~ #
There you go ;) As soon as you do it right, it works ... *hrhr* *scnr*
:-) Well, at somepoint postfix must have changed ideas about this, or it would not work.
Dunno about the IPv6 stuff.
It is there on mine
Yeah, should be the same as for 127.0.0.1 AFAIR.
BTW: you can add more IPs/Hostnames after the first as above. E.g.:
127.0.0.1 news.example.com news 127.0.0.1 irc.example.com irc [..] 127.0.1.8 track.adform.net adform.net
Yes, that one I knew.
but that's old, I now use dnsmasq where one entry suffices for a whole domain and supports delivering NXDOMAIN instead of 127/8, e.g.:
address=/adform.net/
Yes, I use dnsmasq in this machine. Previously I used bind9. I was not aware of that syntax, though.
in a seperate file in /etc/dnsmasq.d/, which is included from /etc/dnsmasq.conf: $ host track.adform.net Host track.adform.net not found: 3(NXDOMAIN) $ host track.adform.net 1.1.1.1 Name: 1.1.1.1 Address: 1.1.1.1#53 Aliases:
track.adform.net is an alias for track-eu.adformnet.akadns.net. track-eu.adformnet.akadns.net has address 37.157.4.41 [..]
Interesting :-) Does somebody publish lists of such "bad" domains, separated by purposes, like tracking, in ready syntax? -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)