This is a discussion on How do I do local recipient checks on a relay host? within the mailing.postfix.users forums, part of the Mail Servers and Related category; I have two mail servers that are visble to the world and receive incoming mail. They relay incoming messages to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have two mail servers that are visble to the world and receive incoming
mail. They relay incoming messages to an internal delivery host. My problem is that when mail is received addressed to screw-you-bob@linfield.edu (or other varieties of messages designed to generate a bounce to a fake return address), I want to be able to reject it at the gateway and not have toi bounce it later. Since all of our mail destinations are defined on our ldap server, I set up an ldap definition to use as a local recipient map. The problem is, Postfix seems to ignore it completely (i.e., recipient names not in the map are still rerlayed on). Here's the pertinent pieces of the config: relayhost = calvin.linfield.edu localrecipient_server_host = ldap.linfield.edu localrecipient_search_base = o=linfield.edu localrecipient_query_filter = (&(|(mailLocalAddress=%s)(uid=%s))(mail=*)) localrecipient_result_attribute = uid local_recipient_maps = ldap:localrecipient What do I need to do? Thanks, Rob Rob Tanner UNIX Services Manager Linfield College McMinnville, Oregon |