LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-25-2010, 04:51 PM   #1
moose4
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Postfix to deliver local the relay.


I have one domain example.com
Some mail coming to my postfix server will need to be delivered local and the rest to an internal mail server.

For example...
bob@example.com is in the alias file to go to root
bob: root

sam@example.com is not in the alias file and needs to be relayed to the internal server.

The internal mail server is mail.example.com where there is no bob@example.com but there is a sam@example.com.

Is it possible to configure postfix to do this?
 
Old 05-25-2010, 07:42 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
There are probably several ways you can do this. One is to use fallback_transport.
You need to add the remote recipients to local_recipient_maps as shown here. Even though it's not convenient to list all recipients explicitly (and there are ways around it), it's best practice not to accept mail unless you know it will be delivered ultimately.
 
  


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
How do I get Postfix to deliver valid emails to maildir and relay remaining? Fredde87 Linux - Server 3 01-22-2010 07:37 AM
Postfix - relay and store local copy uno Linux - Server 0 08-14-2009 03:32 AM
Postfix Relay Getting Spammed Bad -- But no open relay... ihod2008 Linux - Server 1 07-26-2008 08:24 PM
Can't deliver mail (postfix) to local user wheel Linux - General 1 04-05-2006 07:45 AM
Postfix: Need to deliver all local mail to 1 account, then forward OneBinary Linux - Software 3 01-05-2006 04:49 PM


All times are GMT -5. The time now is 06:41 PM.

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