martin: server/kolab/kolab kolab_smtpdpolicy,1.11,1.12

cvs at intevation.de cvs at intevation.de
Thu Aug 12 01:49:54 CEST 2004


Author: martin

Update of /kolabrepository/server/kolab/kolab
In directory doto:/tmp/cvs-serv6816/kolab/kolab

Modified Files:
	kolab_smtpdpolicy 
Log Message:
Martin K.:. Fix for issue 265 (sending emails doesn't work with uids)


Index: kolab_smtpdpolicy
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/kolab_smtpdpolicy,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- kolab_smtpdpolicy	9 Aug 2004 16:11:02 -0000	1.11
+++ kolab_smtpdpolicy	11 Aug 2004 23:49:52 -0000	1.12
@@ -159,8 +159,9 @@
     mylog($syslog_priority, "LDAP search returned ".$mesg->count()." objects") if $verbose;
     foreach $ldapobject ($mesg->entries) {
       mylog($syslog_priority, "Got object ".$ldapobject->get_value('uid') ) if $verbose;
-      if( $username && (lc($username) eq lc($ldapobject->get_value('uid')) ||
-	  contains( $username, @{$ldapobject->get_value('delegate', asref => 1 )}))  ) {
+      if( $username && ( lc($username) eq lc($ldapobject->get_value('uid'))  ||
+                         lc($username) eq lc($ldapobject->get_value('mail')) ||
+	                 contains( $username, @{$ldapobject->get_value('delegate', asref => 1 )}))  ) {
 	# All OK, user is sending as herself or as delegate
 	mylog($syslog_priority, "$username using valid from address $sender") if $verbose;	
 	goto CHECKDISTLIST;





More information about the commits mailing list