LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to set the name of a computer for postfix / mail? (https://www.linuxquestions.org/questions/linux-software-2/how-to-set-the-name-of-a-computer-for-postfix-mail-4175429289/)

tronayne 10-09-2012 08:46 AM

Uh, I went looking for "suse host name" in Google and came up with two (possible) answers: http://forums.opensuse.org/english/g...se-12-1-a.html and http://www.susegeek.com/networking/h...nd-suse-linux/.

Might be of some use -- if you Google "suse host name" there are a bunch of references (the above two looked good, there's a lot more).

JZL240I-U 10-10-2012 03:37 AM

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...

JZL240I-U 10-10-2012 04:01 AM

Found
Code:

#> postconf
...
myhostname = linux.local
...

This is set in /etc/postfix/main.cf. Do I dare assume it is the right place? But what the *beep* is ".local"?

tronayne 10-10-2012 05:46 AM

Quote:

Originally Posted by JZL240I-U (Post 4801923)
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!).

Sniffing at the edge of success?

Hope this helps some.

JZL240I-U 10-19-2012 11:16 AM

Sorry to come back only now. I upgraded to 12.2 :rolleyes: ...

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.


All times are GMT -5. The time now is 07:22 AM.