Changes

From SME Server
Jump to navigationJump to search
1,103 bytes added ,  21:47, 24 September 2012
no edit summary
Line 296: Line 296:     
If you wish to allow list users to send html messages or any other type of attachments, go to the configuration of the list and delete all entries under "Mime types to strip from all outgoing mail". Note that you can selectively remove entries that are applicable to the type of attachment you wish to only allow.
 
If you wish to allow list users to send html messages or any other type of attachments, go to the configuration of the list and delete all entries under "Mime types to strip from all outgoing mail". Note that you can selectively remove entries that are applicable to the type of attachment you wish to only allow.
 +
 +
==list migration from a domain to another==
 +
 +
you might need to move a list from a domain to another, following the forum (http://forums.contribs.org/index.php/topic,49078.0.html) you might execute this :
 +
#! /bin/sh
 +
read -p "Please enter name of existing mailing list: " list
 +
olddomain=`/sbin/e-smith/db accounts getprop $list Domain`
 +
echo ".. and the new domain name as one of the following:"
 +
/sbin/e-smith/db domains keys
 +
read -p ".. new domain name: " newdomain
 +
echo "Changing mailing address for list $list"
 +
echo "from $list@$olddomain"
 +
echo "to  $list@$newdomain"
 +
read -p "OK? (y/n) " yn
 +
if [ "$yn" != "y" ]
 +
then
 +
echo "Exiting ..."
 +
exit
 +
fi
 +
/sbin/e-smith/db accounts setprop $list Domain $newdomain
 +
/sbin/e-smith/signal-event mailinglist-modify $list
 +
for f in config editor owner bouncer mailer moderator headeradd prefix listid inhost outhost
 +
do
 +
  file = "/home/e-smith/files/ezmlm/lists/$list/$f"
 +
  [ -a $file ] && sed -i.bak s/$olddomain/$newdomain/g $file
 +
done
 +
for file in /home/e-smith/files/ezmlm/lists/$list/text/*
 +
do
 +
  sed -i.bak s/$olddomain/$newdomain/g $file
 +
done
     
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu