LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-28-2003, 02:21 PM   #1
tradecraft1
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Postfix relaying mail to internal mail server


All,

I have an Exchange server running inside our network, exchange.mydomain.local at 192.168.168.3 I am trying to set up Postfix to accept mail bound for mydomain.com and relay / forward it to the exchange server. It will accept mydomain.com email but it tries to deliver it locally.

I added "mydomain.com smtp:[192.168.168.3]" to /etc/postfix/transport and ran postmap transport. I cant seem to figure out what changes to main.cf I need to stop mydomain.com mail from being delivered locally on the Postfix box.

Any suggestions?

Thanks,

Chris
 
Old 10-28-2003, 02:47 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Hmm, according to my Postfix book you should just need:

an entry in /etc/postfix/transport
mydomain.com smtp:192.168.168.3

entry in /etc/postfix/main.cf
transport_maps = hash:/etc/postfix/transport

then I believe you need to run
postmap /etc/postfix/transport

One other thing I came across, you may want to set
default_transport = smtp

which should force Postfix to try SMTP delivery for anything not defined explicitly (this should defeat implicit local delivery).

WARNING: I have NOT tested ANY of the above. I'm just interpreting information from Postfix by Richard Blum, published by Sams.

Last edited by chort; 10-28-2003 at 02:54 PM.
 
Old 10-28-2003, 04:01 PM   #3
tradecraft1
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks chort......adding the

transport_maps = hash:/etc/postfix/transport

fixed the issue.

Thanks for your quick reply.

--Chris
 
  


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
SUSE as an internal mail server Sarcha Suse/Novell 2 11-29-2005 09:51 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 03:43 PM
postfix will not send internal mail fng_#1 Linux - Newbie 0 12-09-2004 04:30 PM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 04:41 PM
Postfix will only receive internal mail elgolferisto Linux - Software 10 10-06-2003 08:35 PM


All times are GMT -5. The time now is 07:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration