LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-30-2013, 06:25 PM   #1
luthan
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Postfix secondary relay


Hey guys, first post. Need some help please!

Here goes:

Our postfix test server would act as a gateway to Exchange.
It checks for email address in AD, and relays emails to Exchange if the email is valid.

What i need it to do is this:
Upon finding an invalid email, instead of right away rejecting the message check another file that would contain a list of domains with designated mail server for each domain. If the domain exists, send that email to the server specified, if the domain doesn't exist, reject the message.

Is this possible?

this is my main.cf right now

mydestination =
local_recipient_maps =
local_transport = error:local mail delivery is disabled
myorigin = example.com
relay_domains = hash:/etc/postfix/ldapdomains
smtpd_recipient_restrictions = reject_unauth_destination
relay_recipient_maps = ldap:/etc/postfix/ldapusers.cf
show_user_unknown_table_name = no
transport_maps = hash:/etc/postfix/transport
 
Old 01-31-2013, 01:03 PM   #2
luthan
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
in case my question wasn't clear, i found something in zimbra documentation that basically does what i need postfix to do.

Quote:
If delivering to a single secondary mail system, configure a catchall on the domain to deliver mail to a secondary mail transport if users for the same domain reside on the second system.
zmpov cd example.com
zmprov md example.com zimbraMailCatchAllAddress @example.com zimbraMailCatchAllForwardingAddress @example.com zimbraMailTransport smtp:mail.example.com:25
Mail for Zimbra recipients on the primary system to @example.com will be delivered Zimbra mailboxes. Any address that does not exist on the Zimbra system will be routed to the secondary mail transport. This configuration will likely work with 4.5.x, but it has not been tested.
from: http://wiki.zimbra.com/wiki/Split_Domain
 
  


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 Relay Getting Spammed Bad -- But no open relay... ihod2008 Linux - Server 1 07-26-2008 08:24 PM
Postfix relay waelaltaqi Linux - Software 0 04-02-2007 03:47 PM
postfix and relay shafey Linux - Networking 2 03-04-2006 01:22 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 10:32 AM


All times are GMT -5. The time now is 04:51 AM.

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