LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2004, 12:26 PM   #1
Savahn
Member
 
Registered: Mar 2003
Posts: 36

Rep: Reputation: 16
Sendmail question


I am experiencing a very weird problem with a mail server that I maintain. When I try to send an email from a.com to b.net (I.E. :1@a.com sent email to 2@b.net) the a.com server sends me back a responce saying that 2@a.com does not exist and does not send the email. a.com server and b.net server exist on the same network. When I try to setup and alises for sendmail to use I get the same thing. (I.E.

root: postmaster
1: 2@b.net
)

Any ideas why a.com thinks 2@b.net is an address that exists as 2@a.com?

Same thing happens with telnet

telnet a.com 25
EHLO b.net
250-a.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
MAIL FROM: 1@a.com
250 2.1.0 1@a.com.. Sender ok
RCPT TO: 2@b.net
550 5.1.1 2@b.net.. User unknown
quit

2@b.net can recieve email from everywhere else but this one machine.

Please help.

Last edited by Savahn; 09-01-2004 at 12:41 PM.
 
Old 09-01-2004, 01:07 PM   #2
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Please check where does the MX record for 2.net point to in your DNS server.

Cause if MX record for 2.net points to 1.com as the mail server then the mail would be sent back to 1.com for delivery.

Also see if 2.net is an alias for a.com in the dns.

This could be one of the possible issues.



.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
Old 09-01-2004, 01:25 PM   #3
Savahn
Member
 
Registered: Mar 2003
Posts: 36

Original Poster
Rep: Reputation: 16
I've check all the DNS records for both domains.

a.com MX 20 mail.a.com

b.net MX 20 mail.b.net

Don't use CNAMES at all as they are bad juju.

IP for a.com match

a.com IN A 1.1.1.1
mail.a.com IN A 1.1.1.1

b.net IN A 2.2.2.2
mail.b.net IN A 2.2.2.2
 
Old 09-01-2004, 01:45 PM   #4
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Just login to a.com as user 1 and open aanother telnet / ssh session to a.com as root and do a tail on mail log files.

now send a mail from 1@a.com to 2@b.net using your fav client and check what error does sendmail actually throw in the logs.

This can provide some light on the issue.
 
Old 09-01-2004, 01:50 PM   #5
Savahn
Member
 
Registered: Mar 2003
Posts: 36

Original Poster
Rep: Reputation: 16
to=2@b.net mailer=relay stat=User unknown
from=root@a.com relay=localhost
 
Old 09-01-2004, 11:31 PM   #6
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Hi
Just try the nslookup to check whether the dns entries you have put resolve correctly.

Can you post your sendmail.mc and aliases file for more debugging.
 
Old 09-02-2004, 02:08 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you ran newaliases when you set up the aliases file?
 
  


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 question sysrc Linux - Software 1 06-29-2004 03:19 AM
SendMail Question? gsmonk Linux - Networking 2 02-18-2004 07:05 AM
Sendmail question AMMullan Linux - Software 2 01-10-2004 07:03 PM
sendmail question security_ece Linux - Newbie 0 10-31-2003 08:35 AM
Sendmail question.. williamchen Linux - General 0 03-03-2003 04:07 AM

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

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