[prev in list] [next in list] [prev in thread] [next in thread] 

List:       majordomo-users
Subject:    Re: How do I do this
From:       Daniel Liston <dliston () sonny ! org>
Date:       2002-06-29 23:19:17
[Download RAW message or body]


You could script the addition of @your.domain to the lists fairly easily,
which should have been maintained this way in the first place.  Majordomo
1.94.4 and sendmail 8.8 did not enforce fully qualified email names in 
list memberships.  Here is something that might give you a starting point.
Assuming your lists are clean in all other respects;

#This line searches fully qualified email addresses
grep "@[^.]+\.[^.]+" $LISTNAME > /tmp/$LISTNAME.new
#This line searches partially qualified email addresses
grep "@[^.]+$" | sed -e 's/$/.domain.edu/' >> /tmp/$LISTNAME.new
#This line searches unqualified "local" email addresses
grep -v "@" $LISTNAME | sed -e 's/$/@domain.edu/' >> /tmp/$LISTNAME.new
#This line provides a numeric comparison to see if you have the same 
#number of lines in your original list file and the new temp file.
wc -l $LISTNAME /tmp/$LISTNAME.new
#if both files have the same number of lines,
#sort -u /tmp/$LISTNAME.new > $LISTNAME; rm /tmp/$LISTNAME.new

If you have been in the habit of allowing commented email addresses such as; 
"Dan Liston" <dliston@sonny.org>
or 
(Liston, Dan) <dliston@sonny.org>
You will have to adjust the above regular expressions to allow for these as 
well.

Dan Liston

"Noce, Guy" wrote:
> 
> I'm running Majordomo 1.94.5 and Sendmail 8.12.2 on Solaris 8 and a
> number of lists were established using only smtp user names without the
> @domain.edu appended.  List owners are now unable to delete users or add
> them in that form.  Is there a configuration option or something I'm
> missing? or do I need to add the domain name to the usernames of the 200
> or so lists?  Thanks--Guy
> 
> Guy Noce
> VMS Systems Engineer
> Computing and Network Services
> Towson University
> Email:   gnoce@towson.edu
> 
> "But I can enjoy a good TV program - well, maybe I can't do it
> successfully - but I've got enough of the explorer in me to try to do it
> even if it radiates me" --Don Van Vliet

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic