How to set the name of a computer for postfix / mail?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Regrettably both solutions refer to the hostname of the machine. That blasted postfix (or is it "smartd"?) uses a different denominator, may it rot .
Thanks for reminding me of Google, I'll try that some more. In particular I did not find the place in the network manager module to change the host name. Gone digging...
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Quote:
Originally Posted by JZL240I-U
This is set in /etc/postfix/main.cf. Do I dare assume it is the right place? But what the *beep* is ".local"?
Kind of looks that way; I don't know diddly-squat about Postfix so I went a looked at the documentation searching for "system name." This looks like it might be a place to start: http://www.postfix.org/BASIC_CONFIGURATION_README.html, where it talks about Postfix configuration files (like, hey! /etc/postfix/main.cf!).
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Sorry to come back only now. I upgraded to 12.2 ...
Well, I was stumped because of an error message which, after all, seems not to be pertinent to my problem (or is it?). I changed the name in smartd.conf and main.cf to (root@)whatever.local. This is the contents of the mail I get:
Code:
Message 1:
From root@whatever.local Fri Oct 19 18:04:40 2012
X-Original-To: root@whatever.local
Delivered-To: root@whatever.local
Date: Fri, 19 Oct 2012 18:04:40 +0200
To: root@whatever.local
Subject: SMART error (EmailTest) detected on host: netbook
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: root@whatever.local (root)
This email was generated by the smartd daemon running on:
host name: netbook
DNS domain: [Unknown]
NIS domain:
The following warning/error was logged by the smartd daemon:
TEST EMAIL from smartd for device: /dev/sda [SAT]
For details see host's SYSLOG.
Is it a smart pseudo-error then to generate the mail or is it a postfix error? I think and hope the first, but I am not sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.