Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page Postfix RELAY_RECIPIENT_MAPS
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 04-15-2008   #1 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 3
Question Postfix RELAY_RECIPIENT_MAPS

hi all ,
well i have configured postfix as inbound mail gateway . Every thing is working fine except the relay maps .
the option in the main .cf i.e relay_recipient_maps is configured properly.
and i have also postmap that file to created the hash file but my server is still accepting mails for user which are not present in my domain .

CAN ANY ONE TELL ME WHATS THE PROBLEM


Thanks
adeelarifbhatti is offline   Reply With Quote
Old 04-15-2008   #2 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 3
well thanks you guys

no one helped me but i solved the probelm

it was a spelling misstake in my parameter .
adeelarifbhatti is offline   Reply With Quote
Old 04-15-2008   #3 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
Quote:
Originally Posted by adeelarifbhatti View Post
well thanks you guys

no one helped me but i solved the probelm
I was sleeping, sorry

anyways, glad you got it fixed.
jledhead is offline   Reply With Quote
Old 04-19-2008   #4 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 2
I sure would appreciate some suggestions/help setting up Postfix to forward inbound mail to two internal mail servers. I think I am trying to do the same thing you are and am having a devil of a time getting it working.
I am fairly new to Linux, but have successfully completed other linux projects.

I have a single static IP address with my ISP and all my servers are behind a router/firewall. I host multiple domains and use port forwarding (port 25) on the router to route inbound mail to my Exhange server. I now want to test Zimbra on Ubuntu as a second mail server, and I would like to forward inbound mail for domain B to Zimbra and mail for domain A to Exchange. Actually I would love to have all inbound mail duplicated on both servers during my test period.

I've followed instructions for common configurations on Postfix.org, but with little success and probably less real understanding. Any help would be greatly appreciated.
somertech is offline   Reply With Quote
Old 04-19-2008   #5 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
postfix transport_maps - Google Search

that sounds like what you want. transport maps allow you say
Code:
@domain1    smtp:[mailserver1]
@domain2     smtp:[mailserver2]
user1@domain1      smtp:[mailserver2]
so you can define what the next hop is for a domain or email account.
jledhead is offline   Reply With Quote
Old 04-20-2008   #6 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Thanks for the suggestion. I will look for relevant posts that hopefully have clear examples of parameters required in the various postfix configuration files.
somertech is offline   Reply With Quote
Old 04-20-2008   #7 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
Quote:
Originally Posted by somertech View Post
Thanks for the suggestion. I will look for relevant posts that hopefully have clear examples of parameters required in the various postfix configuration files.
ask if you can't find good answers. I am using transport maps now to deliver to our 2 internal mail servers (1 is exchange). It might be useful to start a new thread though since this seems like it forked the above question
jledhead is offline   Reply With Quote
Old 06-11-2008   #8 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 1
relay_recipients_maps not working

I've the line below in my main.cf file

relay_recipient_maps = hash:/etc/postfix/relay_recipients

I've run the postmap
postmap /etc/postfix/relay_recipients

below is results "ls" command

mail postfix # ls /etc/postfix/
1 local_recipients.db master.cf pcre-header.cf postfix-files relay_domains relay_recipients saslpass transport.db
local_recipients main.cf pcre-body.cf post-install postfix-script relay_domains.db relay_recipients.db transport transport.db.db
mail postfix #

But postfix is still letting every message through.

Would anyone know what the problem is

relay_recipients contents e.g.

# modise@domain.com
modise@domain.com OK
modise1@domain.com OK
modise is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:05 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0