Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

relay_recipients not working...Postfix seems to be ignoring it?

Status
Not open for further replies.

skhoury

IS-IT--Management
Nov 28, 2003
386
US
Hello all,

I am a totally new to the world of Postfix, but basically my objective is to place Postfix infront of our Exchange server. Postfix should catch all the email, and forward it straight to the internal IP of our Exchange box.

So...I've accomplished this task by doing the following:
Taking the default installation of Postfix (v.1.1.11), and adding/chaning the following lines to main.cf:

myhostname = mail.mydomain.com
mydomain = my domain...
inet_interfaces = all
relay_domains = my domain...
relayhost = [192.168.1.32] (exchange server internal IP)


Now - I want to be able to restrict messages that are sent to the exchange box to only those recipients that truly exist. Apparently this can be done using a relay_recipients file.

So, I built the file in this format:
email1@domain.com OK
...

compiled it to DB format using postmap, and set the following config option in main.cf:

relay_recipient_maps = hash:/etc/postfix/relay_recipients

Afterwards, it doesnt seem to work. I can still send email to anyone @domain.com.

Furthermore, If I do a dump of the config by running postconf -n, that option doesnt show up.

Does anyone have any thoughts about this?

Any help is greatly appreciated!

Thanks,

Salim
 
First, I suggest you upgrade to a modern version of postfix--the latest is 2.2.7.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top