On Wed, Apr 27, 2022 at 11:05:20AM -0400, Haines Brown wrote: > If mailname (the value of /etc/mailname) is supposed to be my FQDN, > then that would be lenin.histomat.net > > $ hostname -f > lenin.histomat.net > > $ nano /etc/mailname > lenin.histomat.net
<https://wiki.debian.org/EtcMailName> says: If your package needs to know what hostname to use on (for example) outgoing news and mail messages which are generated locally, you should use the file /etc/mailname. It will contain the portion after the username and @ (at) sign for email addresses of users on the machine (followed by a newline). So if your /etc/mailname contains lenin.histomat.net then mail sent by john on your system may(!) have a default(!) from/sender address of j...@lenin.histomat.net. Unless it's overridden. If what you WANT is for your outgoing mail to appear to come from j...@histomat.net then you should have histomat.net in that file instead. The fact that lenin.histomat.net has no MX or A records in global DNS means it's completely unsuitable for being the right-hand side of an email address. So, what you have now is clearly not correct. > So should the value of /etc/mailname be a FQDN or simply a domain > name? It should be what you WANT TO SEE on the right hand side of the @ sign in auto-generated from/sender-type addresses in outgoing email. In this entire thread I have yet to see you simply state what it is that you WANT or EXPECT. > If the latter, then the question is how my installion of the operating > system managed to get it wrong. YOU ARE NOT USING DEBIAN SO WE DON'T KNOW! As a *guess*, it probably used your hostname, which you gave it, as the value of /etc/mailname. There is no way it could know what you want without asking, and there has been a recent trend among OS installers to ask fewer questions, and to assume more things. Of course, since we HAVE NO IDEA HOW YOUR OS'S INSTALLER WORKS, all we can do is guess. > During network setup I entered the > hostname lenin and domain name histomat.net. Or at least that was > my intention. It probably decided to use that as your /etc/mailname. If that's NOT WHAT YOU WANT, then CHANGE IT. (Caveat: you can also override the enveloper sender address, the From: header address, and so on, so that /etc/mailname becomes irrelevant.) > In /etc/hosts I have the line: > > 127.0.1.1 lenin.histomat.net lenin Irrelevant, except insofar as it verifies that you correctly typed your desired hostname at some point. Email certainly will not care. Now, let's look at this domain name for a moment. unicorn:~$ host histomat.net histomat.net has address 216.239.138.216 histomat.net mail is handled by 10 postoffice.omnis.com. unicorn:~$ host postoffice.omnis.com. postoffice.omnis.com has address 216.239.133.242 postoffice.omnis.com has IPv6 address 2607:fe90:1:1::1c The similarity in the two IPv4 addresses catches my attention. It looks like this histomat.net domain name is "owned by" (or at least handled by) the same people who own/handle postoffice.omnis.com. I'm guessing that person isn't you. You don't seem to know enough to be running an Internet domain. So, that begs the question of why you think it's appropriate to announce yourself as histomat.net in your outgoing communications. Furthermore, we've seen evidence that you're using an outgoing mail relay (not under your own control) which rejects your outgoing email if you try to identify yourself as r...@lenin.histomat.net. Would it also have rejected r...@histomat.net? Who knows. Certainly not us, because you haven't performed that test and told us the result. This makes me wonder what envelope sender address(es) it WILL accept. Knowing that would be incredibly useful. It may be the single most important piece of data you could possibly possess in this entire scenario, as it will probably dictate everything there is to be dictated about how you should configure your outgoing email. Do you have any actual *instructions* or *documentation* that was given to you by the histomat.net / postoffice.omnis.com administrators? Something that could guide you toward setting up your outgoing email in a way they will tolerate? Or is it going to be 100% guesswork? (Also, what is mail.guardedhost.com? I still never saw an answer to that.)