LinuxQuestions.org
Help answer threads with 0 replies.
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 10-07-2006, 09:48 AM   #1
davidntexas
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Postfix and Exchange


I’ve inherited this network and need help on PostFix. Here’s how it is currently setup.
Internet --- Firewall --- Linux (PostFix/Spam Filter) --- Exchange 2003 (SERVER1)

I have another Exchange box (SERVER2) that I want start sending mail to Postfix (SMTP Gateway) but for some reason, the Postfix is not allowing this. Mail stays on queue on this particular exchange server. The other server, SERVER1, works fine.

Is their a configuration somewhere, where Postfix will only receive mail from a particular server?

Thanks
 
Old 10-09-2006, 10:18 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
The main configuration file is main.cf, which is probably in /etc/postfix/. You can check the nondefault settings by running
Code:
postconf -n
To summarize your problem, and to make sure I understand it, postfix is blocking SERVER2 from relaying mail through it. The simplest way of allowing relaying is by defining either an appropriate mynetworks_style or mynetworks in main.cf. If you don't understand postfix configuration, you should begin by reading Basic Configuration and Standard Configuration.

Last edited by Berhanie; 10-09-2006 at 10:23 PM.
 
Old 10-13-2006, 09:09 PM   #3
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
One of 2 things is happening.
1. The firewall is blocking incoming connections on TCP/25 from exchange server2.
2. Postfix is blocking relaying by exchange server2.

Testing #1 is super easy.
Go to exchange server 2, open a command prompt and type
Code:
telnet ip.of.postfix 25
If you see the postfix SMTP banner in response, then the firewall is letting you through. If no response is seen and it eventually times out, then the firewall is blocking you.

My guess is the firewall is blocking you.

To test #2, execute
Code:
postconf mynetworks mynetworks_style
If mynetworks_style is not blank, then mynetworks is ignored. If mynetworks_style is set to subnet, and the exchange server2 is on the same subnet as the postfix server, then postfix is not blocking it.

If mynetworks_style is empty, then focus on mynetworks. If it's set to your entire LAN ip network "mynetworks = 192.168.0.1/24", then postfix isn't denying relaying. If it's set to "mynetworks = 192.168.1.7/32", that means only that ip can relay email thru postfix.

Let us know what you find.

Cheers,

Pablo
 
  


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
Postfix integration with Exchange 2003 bitpail Linux - Server 6 10-17-2006 05:02 PM
Using postfix with Exchange edan Linux - Software 3 06-01-2006 11:35 AM
Postfix as a frontend for Exchange, for Spamassassin jdavidow Linux - Networking 0 09-02-2004 05:48 AM
Postfix and Exchange dwpondscum Linux - Networking 0 07-16-2003 09:48 AM
POstfix not sending to a local exchange server hawkpaul Linux - Software 10 06-04-2003 07:54 AM

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

All times are GMT -5. The time now is 03:39 AM.

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