Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
"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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.