On 2022-04-27 11:29:17 -0400, Greg Wooledge wrote: > 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.
No, this is not necessarily incorrect. If mail is sent locally, this is fine. For mail sent to other machines, 2 things can be done in such a case: 1. Provide a fully qualified e-mail address when sending the mail. This is what one usually does. 2. Configure the local mail server (here, exim) to do address rewriting. (You can also do both.) For instance, on my laptop, I use zira:~> cat /etc/mailname zira.vinc17.org which is the FQDN of the machine, and it is resolvable locally only. This is fine for local mail, e.g. sent by cron. And with Mutt, I provide the correct e-mail address with my_hdr (to set the "From:" header, which will be used for the envelope), e.g. vinc...@vinc17.net for this mail message. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)