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
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