LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-03-2003, 10:03 AM   #1
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Rep: Reputation: 15
POstfix not sending to a local exchange server


Hello all.

I have a Postfix server running RedHat 9.0. It is sending and receiving email just fine to and from other email servers outside our intranet.

The problem is that I have another server running M$ exchange that I need to be able to send emails to as well. While I can receive mail from this server, I can't send mail to it.

Whenever I try and send mail to an email address that is hosted by this server the Linux box seems to have trouble knowing which of my servers is the email server. It is trying to connect on port 25 to the servers I have set up as the dns servers or to our web server.

I checked the mx record in my dns server and it is set up correctly.

Any thoughts?

Thanks
 
Old 06-03-2003, 12:16 PM   #2
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
more info

By the way (I always forget this). My postfix version is 1.1.11
 
Old 06-03-2003, 02:03 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Are there any error messages on either side of the smtp transaction (Postfix or Exchange)?
 
Old 06-03-2003, 02:09 PM   #4
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
Yes,

I tries to conect to one of the server that isn't the email server and the message it gives is

"Server dropped connection"
 
Old 06-03-2003, 02:16 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
I tries to conect to one of the server that isn't the email server...
Erm... you're kind of losing me now. It's connecting to the wrong server?
 
Old 06-03-2003, 03:26 PM   #6
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
I know... it doesn't make sense.

What it says is
"Connecting to Server 10.36.2.18 on port 25 Server dropped connection"

Server 10.36.2.18 is my web server not my email server. It islike the postfix machine doesn't know which server is the email server.

I just tested that theory by setting postfix to relay all messages through the exchange server and it works fine.

The problem is I don't want it to relay through the exchange server.

Let me know if you need more clarification.

Paul
 
Old 06-03-2003, 03:33 PM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
mkay.. you want mail for local users to go to the Exchange server?
 
Old 06-03-2003, 03:41 PM   #8
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
Heres the deal...
I have two domains... a .edu and a .org

THe .edu domain's email is on the exchange server

The .org domain's email is on the postfix server.

I am able to send from the .edu to the .org but not the other way around.

I realize this is a bit convaluted. Sorry for the confusion

Paul
 
Old 06-03-2003, 04:30 PM   #9
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Okay now I understand. Thanks.

when you do a 'dig domain.org MX' what do you get and where do you get the response from?
 
Old 06-04-2003, 07:25 AM   #10
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
Here is what I get I stuck "firstdomain" in for my domain and "mypdc" for our pdc:



[root@mail root]# dig firstdomain.edu MX

; <<>> DiG 9.2.1 <<>> firstdomain.edu MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54805
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;montreat.edu. IN MX

;; AUTHORITY SECTION:
montreat.edu. 3600 IN SOA mypdc.firstdomain.edu. anadministrator.firstdomain.edu. 16782 600 600 86400 3600

;; Query time: 2 msec
;; SERVER: 10.36.2.12#53(10.36.2.12)
;; WHEN: Wed Jun 4 08:20:02 2003
;; MSG SIZE rcvd: 76



There you go with the names changed o protect the inocent. It not getting an answer. Can I set up a local MX record like a host file telling my linux server which server to contact when sending mail to firstdomain.edu?

Paul

Paul
 
Old 06-04-2003, 07:54 AM   #11
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
It is fixed.

The problem was the DNS record that was set up on the Windows 2000 machine. ARRGGHHHH!

I twas pointing to the domain as if it was a child domain. Thanks so much for your patience and help with this. It was so frustrating.

I thought things were set up correctly.

Mail is flowing well now.

Thanks for the help.

Paul
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sending mail from linux using MS Exchange relay host a2k2 Linux - General 0 08-16-2004 01:55 PM
Sending mail with PHP on linux machine through exchange on Windows server 2003 TVScoundrel Linux - Newbie 1 06-18-2004 01:22 PM
Sending mail with PHP on linux machine through exchange on Windows server 2003 TVScoundrel Linux - Networking 2 06-18-2004 12:02 PM
Postfix sending mail for unknown users to other server? Phaethar Linux - Software 2 03-18-2004 01:33 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration