1

Topic: how to use postfix address rewriting with ldap?

Hi!
When I have added to main.cf
smtp_generic_maps = hash:/etc/postfix/generic
and then genereted "generic.db" from file "generic" and postfix reload,
then local post stopped receive at all, though it seems send.
Perhaps, must I create some ldap:/.../.../virtual_generic instead of hash:/etc/postfix/generic? How can I do that?
Thank you. Sorry for my english smile

2

Re: how to use postfix address rewriting with ldap?

yaman wrote:

then local post stopped receive at all, though it seems send.

Check postfix log to verify it.

3

Re: how to use postfix address rewriting with ldap?

ZhangHuangbin wrote:
yaman wrote:

then local post stopped receive at all, though it seems send.

Check postfix log to verify it.

excuse me, i don`t have anythin in logs. Maybe, I see wrong logs? smile

4

Re: how to use postfix address rewriting with ldap?

Are you using iRedMail?

5

Re: how to use postfix address rewriting with ldap?

ZhangHuangbin wrote:

Are you using iRedMail?

Yes. I install it on ubuntu-server 9.10. Post is working as internal, as external, until I uncomment my string "smtp_generic_maps = hash:/etc/postfix/generic", that I added to end of main.cf. Maybe I wrong created file "generic"? That it`s fragment:
localaddress@localdomain.loc  externaladdress@externaldomain.ru
Addresses divided by <tab>. Is it wrong?

6

Re: how to use postfix address rewriting with ldap?

You can get examples here: http://www.postfix.org/ADDRESS_REWRITING_README.html

7

Re: how to use postfix address rewriting with ldap?

ZhangHuangbin wrote:

You can get examples here: http://www.postfix.org/ADDRESS_REWRITING_README.html

Thank you very match! All`s working!