Find the answer to your Linux question:
Results 1 to 8 of 8
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    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 .

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    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.

  4. #4
    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.

  5. #5
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    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.

  6. #6
    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.

  7. #7
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    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

  8. #8
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •