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 - 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 01-21-2004, 10:47 AM   #1
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Rep: Reputation: 15
config error: mail loops back to me (MX problem?)


I am having a problem emailing from one computer to another computer on the same network. I keep getting the error "config error: mail loops back to me (MX problem?)".

My situation is as such...

I have a split brain dns on a firewall for the internal network.

I am trying to email from one of the internal workstations to a sendmail server on the same internal network.

The ip address of the internal machine is 192.168.0.2 trying to email to 192.168.0.3 (sendmail server).

The address that I am trying to email resolves ok cause when I do a "dig mx <domain name>.com it comes up with 192.168.0.3 so why does it say the mail loops back to itself.

When I try to email root@192.168.0.3 it says that the host is unknown.

Any help would be greatly appreciated.
 
Old 01-21-2004, 11:09 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Probably because you have the workstation set as the final destination for user@yourdomain.tld. You need to make sure it's not configured to accept mail for final delivery.
 
Old 01-21-2004, 11:28 AM   #3
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
The recipient of the mail is a user on the sendmail server.
 
Old 01-21-2004, 11:34 AM   #4
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
On my sendmail server I am getting the error:

"did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA"
 
Old 01-21-2004, 01:11 PM   #5
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
I have checked and all of my internal workstations have this problem except one which seems to work ok???
 
Old 01-21-2004, 02:12 PM   #6
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
I forgot to mention that the workstations are linux boxes using sendmail to send mail locally.
 
Old 01-22-2004, 10:13 AM   #7
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
I was reading here ( http://www.sendmail.org/faq/section4.html#4.5 ) and at the bottom it has a little blurb that says:

"Note: You can also get this error message (MX loops ...) when two sendmail systems talk to each other, and both have the same value of $j . The best solution is don't do that"

I know that the sendmail.cf file uses a $j to write to all these different places. How do I check the value of this $j variable so that I can see if they are different.

Also, now that this doesn't seem to be a networking problem, how do I move my thread to the software forum. I know that if I post somewhere else about something that is the same topic it is heavily frowned upon.
 
Old 01-22-2004, 06:46 PM   #8
rex
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware bay-bee
Posts: 11

Rep: Reputation: 0
have you put the domain of the email address in /etc/mail/local-host-names
 
Old 01-27-2004, 11:58 AM   #9
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
Thank you for your response rex.

Yes I did put the domain name in the local-hosts file. Have you ever heard or seen this error before?
 
Old 01-27-2004, 08:42 PM   #10
rex
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware bay-bee
Posts: 11

Rep: Reputation: 0
as long as the domain is in /etc/mail/local-host-names
and your mx records are setup correctly

look for these lines in your /etc/mail/sendmail.cf file:

Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM

make sure the Fw line is uncommented, if you have no luck with that uncomment the Dj line. replace $w.foo.com with your fqdn
 
Old 08-03-2010, 06:00 AM   #11
skc
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Rep: Reputation: 0
May be this will help

http://www.linuxquestions.org/questi...y-etrn-823774/
 
Old 05-04-2011, 02:52 PM   #12
brightsoft
LQ Newbie
 
Registered: May 2011
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
You can see the values for $j $w, etc by issuing: sendmail -bt -d0.4
(that will put you in the sendmail program btw, to get out: /quit)
In my case, all the names for $j, $w, etc. were some varient of 'localhost' and not the hostname.domain.hld (the FQDN).
My problem was that the /etc/hosts file needed the FQDN in BOTH the 127.0.0.1 and ::1 lines as well as the line that has the IP hostname
Don't delete all the localhost localhost.localdomain entries, linux needs them too.
As soon as I changed the /etc/hosts file and did a 'service sendmail restart' things started working.

Last edited by brightsoft; 05-04-2011 at 03:20 PM.
 
  


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
SENDMAIL config error: mail loops back to me (MX problem?) /jhannus Slackware 6 06-21-2011 05:44 AM
Fujitsu LifeBook N3500 Notebook - error message loops on install and liveCDs furfurdemon666 Ubuntu 2 12-18-2005 02:19 PM
Bash For Loops gives syntax error meadensi Linux - Newbie 2 02-23-2005 10:30 AM
"Mail loops back to myself" - Error liquidcool Linux - General 0 10-15-2004 06:02 PM
suse 9.1 log in just loops back. Doug.Gentry Linux - General 5 08-23-2004 12:49 PM

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

All times are GMT -5. The time now is 05:00 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