Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #248029
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: email lacks sender address (SOLVED) |
| Date | 2022-05-09 04:40 +0200 |
| Message-ID | <El1tv-edI5-3@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <EgUJX-bBiA-5@gated-at.bofh.it> <EkRDP-e7Jc-3@gated-at.bofh.it> <EkSzT-e8iB-11@gated-at.bofh.it> <EkZL3-ecvG-1@gated-at.bofh.it> <El0nL-ecX5-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun 08 May 2022 at 19:20:05 (-0600), Charles Curley wrote: > On Sun, 8 May 2022 19:42:57 -0500 David Wright wrote: > > > I'm really not sure who, and under what circumstances, > > hostnamectl is for. > > Nor am I, especially after this. According to apt-file, it is in the > package systemd. > > > I ran: > > > > # hostnamectl set-hostname acerx > > > > and /etc/hostname was changed, but not /etc/hosts, which still had: > > > > 127.0.1.1 acer.corp acer > > I confirm this. I guess I missed it due to rarely referring to a > computer by its hostname, but instead by localhost. Sigh. Thanks for > the catch. It looks like I shall have to adjust my installation scripts. > > > > > and also not /etc/mailname. I'm not saying it should have affected > > those occurrences, but that it's better to check you have the > > correct, consistent name throughout the system. > > Odd. On the two boxes I used hostnamectl on, mailname is set correctly. > However, I ran it on installation, and may have fixed that manually > (but there's no backup file), or by installing postfix subsequently. Well, I was running hostnamectl after the event, ie on an already fully-configured system. In your case, you probably configured exim after setting the hostname (or it's the same name anyway, or whatever). OTOH I think dpkg-reconfigure reads the mailname from /etc/hosts, rather than /etc/hostname, initially (ie when /etc/mailname is unset. If it's already set, it just parrots it.). > > It's also not clear to me either, where one might insert this command > > so that it takes effect early enough to avoid polluting the system > > with wrong names. (The logs, for one example.) > > I run it in a script that I run manually immediately after installation. I see. And it sets /etc/hostname for good. But I think the OP's problem might have been that DHCP was overwriting /etc/hostname each time it ran (or ran at boot time). > > > > Whats I didn't check was what my router took to be my host name. > > > > It did not reponse to my changed host name and I had to do it > > > > manually in the router. Doing do seems to have solved my problem. > > > > > > > > It would seem then that you were letting DHCP in the router set your > > hostname as well as the usual IP address, nameservers etc, which > > could be unfortunate if it doesn't agree. How you avoid that depends > > …. > > Yup. However I make sure they agree by assigning most hosts a "host" > statement in dhcpd.conf, and assigning a fixed IP address to a given MAC > address, and then having dhcpd feed that to bind9. Similarly here, except that I don't have anything running a DNS server. But the router's DHCP table's hostname agrees with /etc/hostname, /etc/hosts, /etc/mailname, and any derived places like update-exim4.conf.conf and the ssh keys. BTW my "…" stood for "different with different configurations", and I don't think I can even avoid it on my own preferred DHCP client, iwd. (I think I have seen a post proferring a patch to allow it.) Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-24 22:10 +0200
Re: email lacks sender address Jonathan Dowland <jon+debian-user@dow.land> - 2022-04-24 23:40 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-25 00:40 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-25 05:40 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-25 06:40 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-25 17:50 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-25 18:50 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-25 19:00 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-25 21:10 +0200
Re: email lacks sender address Jonathan Dowland <jon+debian-user@dow.land> - 2022-04-26 11:20 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-26 15:30 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-26 17:10 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-26 22:30 +0200
Re: email lacks sender address Curt <curty@free.fr> - 2022-04-27 11:30 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 11:50 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 14:10 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 14:30 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 16:40 +0200
Re: email lacks sender address Jonathan Dowland <jon+debian-user@dow.land> - 2022-04-27 18:20 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 23:00 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-27 14:50 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 15:40 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 16:30 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 16:50 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 17:00 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 17:30 +0200
Re: email lacks sender address <tomas@tuxteam.de> - 2022-04-27 15:40 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-27 16:40 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 17:10 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 17:30 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-27 18:10 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 19:50 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 20:40 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 23:50 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-27 21:10 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 23:00 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 22:50 +0200
Re: email lacks sender address <tomas@tuxteam.de> - 2022-04-28 07:00 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 16:20 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-27 20:30 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 21:40 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 23:30 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-27 22:00 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-27 22:30 +0200
Re: email lacks sender address Brian <ad44@cityscape.co.uk> - 2022-04-28 17:00 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-28 19:10 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-28 19:20 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-29 01:50 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-27 17:20 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-27 17:30 +0200
Re: email lacks sender address Curt <curty@free.fr> - 2022-04-25 14:10 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-25 16:20 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-25 16:30 +0200
Re: email lacks sender address David Wright <deblis@lionunicorn.co.uk> - 2022-04-25 17:10 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-25 16:40 +0200
Re: email lacks sender address Vincent Lefevre <vincent@vinc17.net> - 2022-04-26 17:20 +0200
Re: email lacks sender address Curt <curty@free.fr> - 2022-04-26 17:40 +0200
Re: email lacks sender address 황병희 <soyeomul@doraji.xyz> - 2022-04-25 03:20 +0200
Re: email lacks sender address Jim Popovitch <jim@k4vqc.com> - 2022-04-25 03:50 +0200
Re: email lacks sender address 황병희 <soyeomul@doraji.xyz> - 2022-04-25 06:50 +0200
Re: email lacks sender address Haines Brown <haines@histomat.net> - 2022-04-25 05:40 +0200
Re: email lacks sender address 황병희 <soyeomul@doraji.xyz> - 2022-04-25 07:00 +0200
Re: email lacks sender address Greg Wooledge <greg@wooledge.org> - 2022-04-25 14:50 +0200
Re: email lacks sender address 황병희 <soyeomul@doraji.xyz> - 2022-04-26 02:50 +0200
Re: email lacks sender address Celejar <celejar@gmail.com> - 2022-04-26 18:10 +0200
Re: email lacks sender address Byung-Hee HWANG <soyeomul@doraji.xyz> - 2022-04-27 03:10 +0200
Re: email lacks sender address Byung-Hee HWANG <soyeomul@doraji.xyz> - 2022-04-27 03:20 +0200
Re: email lacks sender address Celejar <celejar@gmail.com> - 2022-04-27 17:30 +0200
Re: email lacks sender address Byung-Hee HWANG <soyeomul@doraji.xyz> - 2022-04-27 20:40 +0200
Re: email lacks sender address (SOLVED) Haines Brown <haines@histomat.net> - 2022-05-08 18:10 +0200
Re: email lacks sender address (SOLVED) Charles Curley <charlescurley@charlescurley.com> - 2022-05-08 19:10 +0200
Re: email lacks sender address (SOLVED) David Wright <deblis@lionunicorn.co.uk> - 2022-05-09 02:50 +0200
Re: email lacks sender address (SOLVED) Charles Curley <charlescurley@charlescurley.com> - 2022-05-09 03:30 +0200
Re: email lacks sender address (SOLVED) David Wright <deblis@lionunicorn.co.uk> - 2022-05-09 04:40 +0200
csiph-web