Solved

Sendmail/MX/DNS problem

Posted on 1997-06-06
7
374 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
Comment Utility
Edited text of question
0
 

Author Comment

by:t-bone
Comment Utility
Edited text of question
0
 

Author Comment

by:t-bone
Comment Utility
Edited text of question
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Expert Comment

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

0
 

Expert Comment

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

Expert Comment

by:case051397
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now