thomas: server/kolabd/kolabd kolab_smtpdpolicy.in,1.9,1.10

cvs at kolab.org cvs at kolab.org
Tue Mar 27 15:32:56 CEST 2007


Author: thomas

Update of /kolabrepository/server/kolabd/kolabd
In directory doto:/tmp/cvs-serv21499

Modified Files:
	kolab_smtpdpolicy.in 
Log Message:
Improve debugging instructions and output of kolab_smtpdpolicy


Index: kolab_smtpdpolicy.in
===================================================================
RCS file: /kolabrepository/server/kolabd/kolabd/kolab_smtpdpolicy.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- kolab_smtpdpolicy.in	28 Jul 2006 04:44:33 -0000	1.9
+++ kolab_smtpdpolicy.in	27 Mar 2007 13:32:54 -0000	1.10
@@ -30,7 +30,7 @@
 use Kolab::Util;
 
 #
-# Usage: kolab_smtpd_policy.pl [-v]
+# Usage: kolab_smtpdpolicy [-v]
 #
 # kolabdelegated Postfix SMTPD policy server for Kolab. This server implements
 # various policies for Kolab:
@@ -50,7 +50,7 @@
 # To run this from /etc/postfix/master.cf:
 #
 #    policy  unix  -       n       n       -       -       spawn
-#      user=kolab-n argv=/usr/bin/perl /usr/libexec/postfix/kolab_smtpd_policy.pl
+#      user=kolab-n argv=/usr/bin/perl /usr/libexec/postfix/kolab_smtpdpolicy
 #
 # To use this from Postfix SMTPD, use in /etc/postfix/main.cf:
 #
@@ -59,13 +59,20 @@
 #	reject_unauth_destination
 #	check_policy_service unix:private/policy
 #	...
+#    smtpd_sender_restrictions =
+#	...
+#	check_policy_service unix:private/policy
+#	...
 #
 # NOTE: specify check_policy_service AFTER reject_unauth_destination
 # or else your system can become an open relay.
 #
-# To test this script by hand, execute:
+# To test this script by hand, execute kolab_smtpdpolicy, optionally
+# with the option -v to print debugging output.
+# Example for OpenPKG based installations:
 #
-#    % perl kolab_smtpd_policy
+#    # su - kolab
+#    $ /kolab/etc/kolab/kolab_smtpdpolicy -v
 #
 # Each query is a bunch of attributes. Order does not matter, and
 # the demo script uses only a few of all the attributes shown below:
@@ -89,7 +96,7 @@
 # The policy server script will answer in the same style, with an
 # attribute list followed by a empty line:
 #
-#    action=dunno
+#    action=DUNNO
 #    [empty line]
 #
 
@@ -209,7 +216,7 @@
   if( !$mesg->code && $mesg->count() > 0 ) {
     mylog($syslog_priority, "LDAP search returned ".$mesg->count()." objects") if $verbose;
     foreach my $entry ( $mesg->entries ) {
-      mylog($syslog_priority, lc($entry->get_value('uid')." is allowed to use ".$sender)) if $verbose;
+      mylog($syslog_priority, lc($entry->get_value('uid')." is the uid of ".$sender)) if $verbose;
       push @result, lc($entry->get_value('uid'));
       my $delegate;
       for $delegate ($entry->get_value('kolabDelegate')) {





More information about the commits mailing list