Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-2007, 09:27 AM
New Member
 
Posts: 3
Question ldap-vam.cf

hello,

I have down a migration of zimbra opensource 4.5.5 to zimbra open source 4.5.9 on CentoS 4.3 all was ok.

but a problem arrived, after I have change the configuration files like the one I used before.

I have down changes in the zmmta.cf to use an ldap for the virtual aliases:
POSTCONF virtual_alias_maps hash:/etc/zimbraiufm/group.aliases,ldap:/opt/zimbra/conf/ldap-vam.cf


I changed my ldap-vam.cf too

server_host = ldap://azimbra.###.fr:389
server_port = 389
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=% s)(zimbraMailCatchAllAddress=%s)(zimbraMailCanonic alAddress=%s))(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddr ess,zimbraPrefMailForwardingAddress,zimbraMailCatc hAllForwardingAddress
version = 3
bind = no
timeout = 30

I have restart my Zimbra
everything work well with the new version

24 hours later the file ldap-vam.cf lost (zimbraMailCanonicalAddress=%s) in the query filter

no trace int logs...
do you have an explanantion on how this part of the filter could disapear ?

thank you for helping me
Reply With Quote
  #2 (permalink)  
Old 11-09-2007, 11:30 PM
New Member
 
Posts: 3
Question add on

hello
I investigated and found something, everyday at 00:07 the files :

-rw-rw-r-- 1 zimbra zimbra 324 nov 10 00:07 ldap-scm.cf

-rw-rw-r-- 1 zimbra zimbra 252 nov 10 00:07 ldap-transport.cf

-rw-rw-r-- 1 zimbra zimbra 240 nov 10 00:07 ldap-vad.cf

-rw-rw-r-- 1 zimbra zimbra 383 nov 10 00:07 ldap-vam.cf

-rw-rw-r-- 1 zimbra zimbra 240 nov 10 00:07 ldap-vmd.cf

-rw-rw-r-- 1 zimbra zimbra 234 nov 10 00:07 ldap-vmm.cf


are modified, I don't find for the moment why and by who, those files are modified

if you had a clue or someting which could help me thank you
Reply With Quote
  #3 (permalink)  
Old 11-10-2007, 07:56 AM
Loyal Member
 
Posts: 78
Default

Well, I'm interested in that too.

I had also to modify this file as explained in bug 16668
Bug 16668 - Make zimbraMailCanonicalAddress a valid address for the account

This problem raises a new question, about how to add permanent modifications to ldap-vam.cf.

Anyone an idea about that ?

Regards,
__________________
Artturi
Reply With Quote
  #4 (permalink)  
Old 11-12-2007, 01:29 AM
New Member
 
Posts: 3
Smile Answer to that problem

hi this is the answer to my problem


===== Modify daemon file ''zmmtactl'' =====

each time you do '''zmmtactl reload''' files '''.cf''' present in the directory '''/opt/zimbra/conf''' are deleted and replaced by the original version. this the HowTo understand the daemon and how to modify '''.cf''' files (here an exemple for the '''ldap-vam.cf''')

[root@azimbra ~]# cd /opt/zimbra/bin/
[root@azimbra bin]# vi zmmtac
[root@azimbra bin]# vi zmmtactl

====== Modify after line 43 part '''reload''' ======

reload)
for i in $SCRIPTS; do
/opt/zimbra/bin/$i reload
done
;;


[root@azimbra bin]# vi postfix



====== Modify line 49 '''rewrite''' ======

if [ "x$1" = "xstart" -o "x$1" = "xreload" ]; then
if [ x$2 = "x" ]; then
rewriteconfig
fi
${zimbra_home}/postfix-${postfix_version}/sbin/postmap ${zimbra_home}/conf/postfix_header_checks
#sudo ${zimbra_home}/postfix-${postfix_version}/sbin/postsuper -r ALL
fi



[root@azimbra bin]# cd /opt/zimbra/libexec/
[root@azimbra libexec]# vi zmmtainit

====== Modify ligne 69 part '''ldap-vam.cf''' ======

cat< ${confdir}/ldap-vam.cf
server_host = ${ldap_url}
server_port = ${ldap_port}
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=% s)(zimbraMailCatchAllAddress=%s)'''(zimbraMailCano nicalAddress=%s)''')(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddr ess,zimbraPrefMailForwardingAddress,zimbraMailCatc hAllForwardingAddress
version = 3
bind = no
timeout = 30
EOF


ps thank you to Mikael KERMORGANT
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.