LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-13-2015, 10:06 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
Why does local mail not stay local?


Beginning 3 days ago every message I send to myself sendmail tries to relay through my remote e-mail server (gmail). Because my own domain is imaginary I get an error message back. I haven't changed sendmail's configuration files. My computer serves my local domain. sendmail has stopped recognizing that my domain is local and not to relay local mail. sendmail 8.15.2
 
Old 09-14-2015, 03:11 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Looking at your other mail related post, I'd say that something has changed on your mail server.

Did these happen at the same time?

If you have not changed anything, then you should investiagte whether your mail server has been compromised in some way.
 
Old 09-14-2015, 11:29 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
It's a network-setup problem and, maybe, a permissions problem with sendmail (/var/spool/mqueue had the wrong owner and permissions too). I thought I needed PPPOE so I installed it and it changed resolv.conf. I had backups, but it took me a while to consider it the problem.

When I start sendmail it returns:

Quote:
sm-msp-queue SYSERR(root): timeout writing message to [127.0.0.1]
Name server: [127.0.0.1]: host name lookup failure
When I send a message with mailx as myself sendmail returns the same error; when I send the same message with sendmail it doesn't. When I send it with mailx as root it goes through.

What message is sm-msp-queue trying to write? 127.0.0.1 is present - I can ping it. I don't usually run a name server but running one to resolve local addresses makes no difference. Is it a matter of sendmail listening to 127.0.0.1?

I assume this is a simple problem, that a sendmail expert would know off-hand, but comp.mail.sendmail is hit-and-miss (many questions unanswered). Is there a better forum?

I've stopped using mailx (which I use only for crontab jobs to send me reminders, and that's in a script, so I had to change it in only 1 place) but I'd like to understand what's going on.
 
Old 09-15-2015, 04:34 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
sounds like you deleted the loopback definition from the /etc/hosts file.
 
1 members found this post helpful.
Old 09-15-2015, 06:42 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by jpollard View Post
sounds like you deleted the loopback definition from the /etc/hosts file.
It's there. Good suggestion though.
 
  


Reply



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
Postfix - send mail from one local computer to another local computer Runge_Kutta Linux - Software 3 01-09-2010 07:08 AM
relay all non-local mail to 1 local address and NOT real destinations manqox Linux - Server 6 09-04-2008 04:13 AM
Forward local mail to another local host using sendmail loopy69 Linux - Server 5 02-26-2008 05:38 PM
postfix/dovecot imap - sent messages stay local yogaboy Linux - Software 1 02-07-2007 12:06 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 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
Open Source Consulting | Domain Registration