Solved

Sendmail/MX/DNS problem

Posted on 1997-06-06
7
379 Views
Last Modified: 2010-03-18
I've been using my Linux machine as an SMTP/POP3 server for some time now with no problem.  Recently I started using it as a name server for my company's domain.

I can't receive mail now for accounts on this machine, mail destined for other places works fine (ie, someone@linuxbox.mydomain.com can't get mail, but someone@mydomain.com can..I'm using another mail server for mydomain.com mail).

I get the following in the returned message if I send mail to root@linuxbox.mydomain.com:

   ----- Transcript of session follows -----
553 linuxbox.mydomain.com. config error: mail loops back to me (MX problem?)
554 <root@linuxbox.mydomain.com>... Local configuration error

Here's my domain file:

@               IN      SOA     linuxbox.mydomain.com. hostmaster.mydomain.com. (
                                1       ; Serial
                                28800   ; Refresh
                                7200    ; Retry
                                604800  ; Expire
                                86400)  ; Minimum TTL
                        NS      linuxbox.mydomain.com.
                        MX      10 proxy.mydomain.com.

router                  A       207.247.19.33
linuxbox               A       207.247.19.34
proxy                   A       207.247.19.35
                        MX      10 proxy.mydomain.com.

And here's an excerpt from /var/log/messages:

Jun  6 08:56:59 linuxbox sendmail[1964]: IAA01964: from=<root@linuxbox.mydomain.com.>, size=293, class=0, pri=30293, nrcpts=1, msgid=<Pine.LNX.3.96.97060608565
2.1962A-100000@linuxbox.mydomain.com.>, proto=SMTP, relay=root@localhost

Jun  6 08:56:59 linuxbox named[1945]:XX /207.247.19.34/linuxbox.mydomain.com/MX

Jun  6 08:56:59 linuxbox named[1945]: XX /207.247.19.34/linuxbox.mydomain.com/ANY

Jun  6 08:56:59 linuxbox identd[1969]: from: 207.247.19.34 ( linuxbox.mydomain.com. ) for: 1306, 25

Jun  6 08:56:59 linuxbox identd[1969]: Successful lookup: 1306 , 25 : root.root

Jun  6 08:56:59 linuxbox sendmail[1966]: IAA01964: to=<mike@linuxbox.mydomain.com.>,ctladdr=<root@linuxbox.mydomain.com.> (0/0), delay=00:00:00,xdelay=00:00:00, mailer=esmtp, relay=linuxbox.mydomain.com. [207.247.19.34], stat=Local configuration error

Jun  6 08:57:00 linuxbox sendmail[1966]: IAA01964: IAA01966: DSN: Local configuration error

I've tried with and without an MX record for linuxbox.mydomain.com..both results are the same.

Again, right now all mail to mydomain.com goes to another server..only mail to linuxbox.mydomain.com is being bounced.

Any help would be appreciated..thanks.
0
Comment
Question by:t-bone
7 Comments
 

Author Comment

by:t-bone
ID: 1584810
Edited text of question
0
 

Author Comment

by:t-bone
ID: 1584811
Edited text of question
0
 

Author Comment

by:t-bone
ID: 1584812
Edited text of question
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:james_zhang
ID: 1584813
Run the following command, and post the result here:
/usr/lib/sendmail -bt
3,0 xx@linuxbox.mydomain.com

0
 

Expert Comment

by:devmorfo
ID: 1584814
Do you have mydomain.com and linuxbox.mydomain.com in your
sendmail.cw ?
0
 

Expert Comment

by:case051397
ID: 1584815
What domain did you set up your sendmail.cf for to be "local"?
If it just is "mydomain.com", your mailer will think of "linuxbox.mydomain.com" as a remote system.

Also check this stuff:
sendmail.cf:
  DMsomeothermachine.mydomain.com
  Djproxy.mydomain.com

resolv.conf:
  domain mydomain.com

0
 
LVL 19

Accepted Solution

by:
xterm earned 200 total points
ID: 1584816
Make sure you have an entry like this in /etc/sendmail.cf:

# file containing names of hosts for which we receive email
Fw/etc/sendmail.cw

Then:
$ echo linux.mydomain.com >> /etc/sendmail.cw

then kill sendmail:
$ kill `ps -ax | grep -v grep | grep sendmail | awk 'print $1'`

...and finally restart sendmail:
$ sendmail -bd

voila.. try sending mail to yourself now
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to add a new SAN disk to a linux vmware box 8 39
OpenWrt 1 53
Linux on a Dell PowerEdge 720 3 160
High Bandwidth Usage 6 98
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question