LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2018, 02:22 PM   #1
nicedreams
Member
 
Registered: Jun 2003
Location: Phoenix, AZ
Posts: 83

Rep: Reputation: 15
Not able to get system mail logs in mutt after changing hostname.


I'm kind of new to linux email. Ran MS Exchange for a few years though which is an entirely different beast.

I made a change to my home linux server to make it more organized with other linux devices I have. So I changed my hostname from kenserver to kenserver.berfam.local. I have other devices set to theirhostname.berfam.local.

I have snapraid installed on this server and used to get the logs mailed to root which was aliased to ken and I would use 'mutt' program and see the logs. I'd get other system logs also that way.

After changing my hostname from kenserver to kenserver.berfam.local I am no longer able to see those local system mails from snapraid or any other local logs I would get. For the root user I do see a file called '/root/sent' that shows the snapraid logs and can read them with 'cat /root/sent', but how do I get it working in 'mutt' again or forwarding to user ken like before?

This has been going on for couple months. Yesterday I installed Exim4 so I can start using Logwatch. That is working fine sending out to gmail smarthost and was hoping would change something for system mail but didn't.

I'm hoping someone can explain how local system mail works for users? Is local user mail different from using Exim? Is there a different mail agent between local user log mail and external email? Do I need to configure Exim4 so user ken can get local logs in 'mutt' again? After I understand how this work, should help me understand how to fix issue.

Maybe I'm doing hostname incorrectly? Do I even need .local?

Last edited by nicedreams; 07-22-2018 at 02:58 PM.
 
Old 07-22-2018, 02:27 PM   #2
nicedreams
Member
 
Registered: Jun 2003
Location: Phoenix, AZ
Posts: 83

Original Poster
Rep: Reputation: 15
Posting files for reference since will probably be asked for.

-----------------------------------------
cat /etc/hostname
-----------------------------------------
kenserver.berfam.local

-----------------------------------------
cat /etc/hosts
-----------------------------------------
127.0.0.1 localhost
127.0.1.1 kenserver.berfam.local kenserver

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

-----------------------------------------
cat /etc/aliases
-----------------------------------------
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: ken

Last edited by nicedreams; 07-22-2018 at 02:29 PM.
 
Old 07-23-2018, 01:02 AM   #3
nicedreams
Member
 
Registered: Jun 2003
Location: Phoenix, AZ
Posts: 83

Original Poster
Rep: Reputation: 15
I was able to fix my issue.

Within /etc/exim4/update-exim4.conf.conf

Change dc_other_hostnames='kenserver' from dc_other_hostnames='kenserver.berfam.local'

Seems Exim was seeing and routing out to internet. After removing FQDN and just putting hostname it's working fine now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Mutt] Can I process a current mail in a shell command from Mutt? Michael Uplawski Linux - Software 5 06-21-2016 03:56 AM
mutt, sendmail, hostname and correct SPF record matching kevpatts Linux - Server 6 04-08-2015 09:21 AM
how to configure mutt mail client for mail server other that gmail golden_boy615 Linux - General 16 02-28-2011 09:48 AM
Setting Up System Mail Via Mutt, Exim4 and Fetchmail Problem Blyiss Linux - Networking 1 02-19-2007 09:25 PM
Mutt and IMAP new mail/mark read mail checks(plzzz help) rmanocha Linux - Software 0 09-15-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration