Page 1 of 1

postfix relay_recipient_map

Posted: Wed Nov 07, 2007 7:23 am
by tantony
Hi,

I replaced sendmail with postfix and followed the instructions from chris.
http://www.scalix.com/wiki/index.php?ti ... te_Postfix
postfix is working great except that all incoming emails are accepted and then bounced, because postfix does not check for valid recipients with this setup described in the wiki.
Has anyone successfully created a relay_recipient_map with ldap lookup against scalix?

Thank you in advance,
Thomas

Posted: Fri Nov 16, 2007 1:38 am
by misc
This is exactly what I am after as well. I am about to try and find a way to do this.

Posted: Fri Nov 16, 2007 2:43 am
by misc
OK, actually what is written in the Complete Postfix howto is basically correct. Just make sure that you have something like this in your Postfix main.cf:

Code: Select all

local_recipient_maps = proxy:unix:passwd.byname $alias_maps $transport_maps

transport_maps = ldap:/etc/postfix/scalix-transport.cf


In the scalix-transport.cf file, it's the same as what's documented in the howto, except I have this line:

result_format = smtp:[127.0.0.1]:10025


And then in my /var/opt/scalix/*/s/sys/smtpd.cfg file, I have LISTEN=127.0.0.1:10025 instead of LISTEN=$FQDN:10025. I don't see any point making it listen on the real IP.

Restart Postfix then all will be good.