| |||||||||||||||||||||||||||||||
|
Juan Asensio Sánchez <okelet> wrote: > I am trying to integrate Postfix to work with Gosa > (http://www.gosa-project.org) using this manual > http://jriosgosa.blogspot.com. I have yet configured Postfix so local > and remote mails are delivered correctly, and i can see mails using > courier imap. Each LDAP user has an attribute called > gosaMailDeliveryMode. This field is a combination of some letters: > [L], [IL], [ILV], etc. L means that the user can receive mail; I means > that the user can send mails only to local domains; and V means that > when the user receives an email, a message will be sent to the sender > with a vacation message. Fields L y V are configured and works fine, > although i don't understand very well how does postfix work. I have > ony to check if that field contains an "I", so when the flag is > present, i must check if the recipient is local (contained in some > local domain), and then send it; if not, i must reject the message > sending to the sender an error message. I know is a "bit" complicated. > Has anyone made this? Is there any other way? http://www.postfix.org/RESTRICTION_CLASS_README.html#external You need to translate this configuration so it works with your LDAP schema. Replace the restricted_senders lookup table in the example above with an LDAP query that returns local_only iff the user in question has I in his or her gosaMailDeliveryMode: query_filter = &(mail=%s)(gosaMailDeliveryMode=*I*) result_format = local_only This assumes that you have proper indexes set up for the gosaMailDeliveryMode attribute. -- Magnus Bäck magnus
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com