Old 11th February 2008, 00:53
mgrandio mgrandio is offline
Junior Member
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default Postfix as Smart Host

Hello everybody,

Our corporate site and mail are in The perfect setup for Suse + ISP config, actually one of our branches needs start using Exchange , I do not have so much time for reseting everything (and also i am not a very good Linux user) so what I thougth to do is the following meanwhile I find a better solution

Run in the exchange server a tool for reading the POP 3 mailboxes in the linux server because I want to keep he AntiSpam and Antivirus function...This is done working fine.

Setup Procmail to be a SMTP smarthost for the outgoing messages coming from the Exchange server...I have not been able to do this

In the near future I would prefer that the Linux box would be a SMTP smarthost for inbound and outbound mail for the Exchange, but wanna keep the Spam assasin and antivirus check for the emails... also have not find a clear way to to this

Any help would be apreciated, thanks in advance

Reply With Quote
Sponsored Links
Old 11th February 2008, 12:10
topdog topdog is offline
Senior Member
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts

These changes allow your postfix to work as an inbound gateway, for outbound if your exchange server is in mynetworks it will work without modifications.

Make these changes to your main.cf alter options to fit your setup.

myorigin = example.net
mydestination =
local_recipient_maps =
local_transport = error:local mail delivery is disabled
virtual_alias_maps = hash:/etc/postfix/virtual
mynetworks =
relay_domains = example.net
parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
relay_recipient_maps =
transport_maps = hash:/etc/postfix/transport
Comment out local delivery in master.cf.

add this to your /etc/postfix/virtual
postmaster      postmaster@example.net
abuse           abuse@example.net
add this to your /etc/postfix/transport
 example.net   smtp:[exchange.example.net]
Then run this
postmap /etc/postfix/transport
postmap /etc/postfix/virtual
postfix reload
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Old 30th July 2009, 16:39
sunghost sunghost is offline
Junior Member
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help needed

Hi Guys,

i use postfix as smarthost fr Exchange 2003 too. so far all are fine but my incoming mails become rewritten in recipient to the intern adress. example. extern user send mail to user@domain.com in my exchange the mail is send to user2@domain.de and the recipient is not the original.
in the postfix log i can see that he sends the mail to user2@domain.de. is the problem in the aliasses db?

hope someone can help
Reply With Quote
Old 2nd November 2010, 07:09
eduarinxs eduarinxs is offline
Junior Member
Join Date: Oct 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default HELP ME, POSTFIX configuration virtual user or smarthost

hello friends I have the following architecture 2 a postfix mail server (2.2) and exchange 2007 both in the same domain but different MX. All mail from outside to pass through the exchange, the mailbox gets its responsibilities and who do not, send the following mail server (postfix). But the emails from the LAN is not so, if the client has their mailbox in postfix, the mail is addressed to the postfix server and if the mailbox is on exchange this look for the exchange server. The problem is that if the account has a mailbox in postfix tries to send an email to an account that has a mailbox in the exchange automatically show him the error 550 it will look in your users table in the server account postfix and there has not been set as the error. My question is how to configure postfix to determine this email it does not belong to me and if I do not own search in the following mail server
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP relay trouble DVS General 3 11th June 2007 10:56
This is %#@*&^$# embarrassing! domino Smalltalk 34 5th February 2007 22:57
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
I broke it.. I think.. Email in is not being delivered? edge Server Operation 1 3rd July 2006 15:22

All times are GMT +2. The time now is 07:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.