LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"William G. Korb" <[log in to unmask]>
Mon, 12 Jul 2004 12:17:20 -0400
text/plain (93 lines)
In case anyone cares, I figured out how to make this work.

As I mentioned, I am running Sun's Java Enterprise System Messaging Server
6.0p1, though this procedure would be virtually identical for users of the
iPlanet Messaging Server 5.x.


Here's what I did to get this working.

1. Created the following shell script named "deliver-listserv" in the
/var/opt/SUNWmsgsr/site-programs directory:

#!/bin/ksh
#
#       Script to invoke the LISTSERV lsv_amin command when a
# message is sent to a mailing list.
#
LISTSERV_HOME=~listserv
LSV_AMIN=$LISTSERV_HOME/bin/lsv_amin
SPOOL_DIR=$LISTSERV_HOME/spool
listAddress=$1
listAddress=${listAddress%+listserv}

if [ "$listAddress" = "" ];then
        exit 1
fi

exec $LSV_AMIN $SPOOL_DIR $listAddress



2. Set the permissions of the above script to 755.

3. Added this program to the list of approved programs using the imsimta
program command:

imsimta program -a -m listserv -p deliver-listserv -e postmaster -g "%s"

4. For each list in question, created a mailbox for all of the addresses
required by LISTSERV (in this case, test, owner-test, test-request,
test-search-request, test-server, test-signoff-request, and
test-subscribe-request).

5. For each of the mailboxes created in #5, set the mail delivery options to
run the message using the listserv method defined in #3 by checking the
"Enable the following programs" checkbox and specifying "listserv" in the
command text box. This sets the following attributes in the mailbox's LDAP
entry:

mailDeliveryOption: program
mailProgramDeliveryInfo: listserv




That's all it takes. Since I specified the "-g" option to supply the
username when the program is called, the string "test+listserv" is passed to
my script, where I simply strip off the "+listserv" and then invoke the
lsv_amin program to handle the delivery. Darned if it didn't work on the
first try!


Here is the full LDAP entry for my "test" list:

dn: uid=test, ou=people, o=mydomain.com,o=q
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: inetUser
objectClass: ipUser
objectClass: nsManagedPerson
objectClass: userPresenceProfile
objectClass: inetMailUser
objectClass: inetLocalMailRecipient
mail: [log in to unmask]
mailUserStatus: active
dataSource: NDA 4.5 Delegated Administrator
mailHost: mail.mydomain.com
givenName: Test
cn: Test LISTSERV
uid: test
nsdaCapability: mailListCreate
sn: LISTSERV
preferredLanguage: en
inetUserStatus: active
userPassword: {SSHA}deleted==
mailDeliveryOption: program
mailProgramDeliveryInfo: listserv


Bill

ATOM RSS1 RSS2