LinuxQuestions.org
Visit Jeremy's Blog.
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 05-30-2006, 12:35 PM   #1
edan
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
Using postfix with Exchange


I am about to install Postfix on one of my linux machines in order to act as a gateway for my Exchange servers. I already checked the manpages and searched the forums here, but it didn't provide me with the information I needed.

By default, I just want to forward all mail for a certain domain to Exchange server A, but when needed, I would like all mail for certain users belonging to that domain to go to Exchange server B.

example:
  • *@domain.com => Exchange 01
  • joe@domain.com => Exchange 02

I also would like to know if it is possible to strip attachments based on extension, using just postfix.

Is this something that can be done? Any examples would be appreciated. Thanks!
 
Old 05-31-2006, 01:14 PM   #2
zerg4141
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian
Posts: 27

Rep: Reputation: 15
similar question

I've been looking at how to do something similar to that at my job. We are running Exchange as our primary email server, but it doesn't like making two different aliases point to the same external email address. So I am trying to put Postfix in front of Exchange in the mail flow to act as a relay/filter, and when it finds an address that I know needs to be forwarded to another address, it does a look-up and changes the header, and sends the message on through to Exchange to then be sent back out.

The difficulty I am dealing with is that nowhere have I found documentation that deals with a relay that has no local mail, and can forward addresses. All I can get it to do right now is relay without modifying the header, thus creating a loop.

Anybody know Postfix out there?

--Zerg4141
 
Old 06-01-2006, 10:50 AM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
Originally Posted by edan
By default, I just want to forward all mail for a certain domain to Exchange server A, but when needed, I would like all mail for certain users belonging to that domain to go to Exchange server B.
Might be good to read this.To summarize:

(1) Add the domain in question to relay_domains
(2) List all possible recipients for that domain in a table specified by relay_recipient_maps. This is to avoid possible backscatter from internal mail servers rejecting unknown addresses.
(3) Using transport_maps, define a table specifying Exchange 01 as the domain default, with per-user overrides specifying Exchange 02.

Last edited by Berhanie; 06-01-2006 at 10:53 AM.
 
Old 06-01-2006, 12:35 PM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
http://freespamfilter.org has some configurations that do what you're looking for. We have an email spam/virus gateway/filter protecting our exchange server, we based our postfix configuration on the Redhat 9 config listed on the web page above. This spamfilter has been in operation for almost 2 years and has been very effective.

HTH

Mad
 
  


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
I've had it with M$ Exchange and commercial spam filters - going Postfix KimVette General 4 10-23-2005 12:19 AM
howto setup following: Internet -> Postfix -> Exchange cccc Linux - Networking 2 12-03-2004 01:02 PM
Postfix as a frontend for Exchange, for Spamassassin jdavidow Linux - Networking 0 09-02-2004 06:48 AM
Postfix and Exchange dwpondscum Linux - Networking 0 07-16-2003 10:48 AM
POstfix not sending to a local exchange server hawkpaul Linux - Software 10 06-04-2003 08:54 AM

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

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