[BlueOnyx:05145] Re: question on importing sendmail content fromnon-blueonyx server

Ole-Bjorn Olsen olebjorn at dataservice.no
Thu Jul 29 06:20:11 -05 2010


Could be that it is a bad idea for me to jump in and say something that i
googled :P
But it was as I remmeberd, Michael Stauber said something about this over at
blue quartz.

======= quote start ========
Hi Rodrigo,

Quote:
I have a standalone mail server running sendmail and I want to move all
users and related contents over to a blueonyx server. What is the
recommended method of importing sendmail from a non-blueonyx server to a
blueonyx server?

As you don't know the passwords for the accounts in question this is a bit
tricky, but can be done.

If it's just a few sites and users, then I'd create the sites and users
manually through the GUI. Just assign a generic (temporary) password to all
users while you do so.

Then copy the site and user data to the newly created directories on
BlueOnyx
and make sure they're chown'ed to the right UID and GID.

If the source box uses /etc/shadow for storing system passwords, simply copy
the 2nd colum behind each username to the /etc/shadow on BlueOnyx to replace
your (encrypted) generic passwords with the original (encrypted) passwords
from the old box.

If the original box uses PWDB for storing user information, then it may be
worth it to convert it so that you can extract the encrypted passwords.

The amount of work involved kind of depends on how many sites and users you
need to import. If it's more than a couple of dozend, then it may be worth
the
efforts to script it to some degree or another and to maybe write a wrapper
around the shell tools to at least automatically create sites and users for
you based on a textfile that contains the sites and/or users.

The location of the mailboxes of the original users may also be different,
so
be careful there. Some systems store mail in /var/spool/<username>, while
BlueOnyx stores them in a file called "mailbox" in the home directory of the
user, like ... ~<username>/mbox

Also: Some systems use the Maildir format for storing mails, while BlueOnyx
used the "mbox" format. While there are scripts available to convert
maildrops
from Maildir to Mbox format (and back) this of course requires another
manual
(or scripted) intervention.

So yes ... it can be done, but it could be quite a bit of work.

-- 
With best regards

Michael Stauber

======= quote end ========


Med vennelig hilsen
Ole-Bjørn Olsen
DataService Rjukan AS 
+47 405 54 811

-----Opprinnelig melding-----
Fra: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it] På
vegne av trasor
Sendt: 29. juli 2010 12:55
Til: BlueOnyx General Mailing List
Emne: [BlueOnyx:05143] Re: question on importing sendmail content
fromnon-blueonyx server

That's what I am coming up with also.  Shame as until the user logs in non
of the 'mbox' folders are created.  Those appear to be automatically created
when the user logs in for the first time.  As I do not have the user
passwords (bought another company that kept absolutely no records on
anything), I cannot login for them and then move their emails over.  
Any ideas on auto-creating via a script the 'mbox' files and then importing
their emails?  Or are there any repercussion to importing the emails to a
directory say /home/spool/mail and creating a symbolic link to
/var/spool/mail?

Tom

  On 7/29/2010 6:25 AM, Rickard Osser wrote:
> Hi,
>
> there's just not enough room on /var for putting the e-mail files in 
> the regular spool directory on BO. All user mail-spool files are saved 
> in the users home-dir as "mbox". That's all there is to it...
>
> Regards,
>
> Rickard
>
>
> On Wed, 2010-07-28 at 13:52 -0700, Ken - Precision Web Hosting, Inc
> wrote:
>    
>> ----- Original Message -----
>> From: "trasor"<trasor at lhtot.com>
>>
>>      
>>> On 7/28/2010 2:34 PM, Ken - Precision Web Hosting, Inc wrote:
>>>        
>>>>
>>>>          
>>>>> Ok.  I managed to import the users from sendmail server to 
>>>>> Blueonyx.  I am trying to import their email and running into an 
>>>>> error.  When I attempt to import /var/spool/mail it imports so far 
>>>>> then I receive an error stating 'No space left on device'.  I am 
>>>>> importing approx. 8gb of email, how can I increase the folder size
without losing the data.
>>>>> Every option I know of for resizing could result in the loss of data.
>>>>>
>>>>> Tom
>>>>> On 7/20/2010 2:17 PM, trasor wrote:
>>>>>
>>>>>            
>>>>>> Thats where I am running into a problem.  A lot of the users 
>>>>>> (most) have passwords of 2 to 5 characters in length.  I am 
>>>>>> planning on sending a broadcast message to all the users, once 
>>>>>> migrated, to login and change there passwords to something more 
>>>>>> secure.  But till I have everything migrated...
>>>>>>
>>>>>>
>>>>>> Tom
>>>>>>
>>>>>> On 7/20/2010 1:41 PM, Michael Stauber wrote:
>>>>>>
>>>>>>
>>>>>>              
>>>>>>> Hi Tom,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                
>>>>>>>> Some of the passwords for the accounts will not pass the 
>>>>>>>> password check.  The passwords are too short or are dictionary 
>>>>>>>> words, etc.  Is there a way to bypass the password checking process
temporarily.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                  
>>>>>>> The password length and strenght checks only apply if you try to 
>>>>>>> set or try to change a password through the GUI.
>>>>>>>
>>>>>>> If you copy the passwords over by editing /etc/shadow, this 
>>>>>>> shouldn't be an issue, as the shorter passwords will still work.
>>>>>>>
>>>>>>> Alternatively you can set a short or weak password from the 
>>>>>>> command line like
>>>>>>> this:
>>>>>>>
>>>>>>> passwd username
>>>>>>>
>>>>>>> Then press return. It'll ask for the new password, which you can 
>>>>>>> then enter (you'll have to enter it twice). It may complain 
>>>>>>> about short or weak passwords, but unless the password is really 
>>>>>>> short (like just 3-4 characters), it'll go through.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                
>>>> Tom
>>>>
>>>> I think the "'No space left on device" means that the server is out 
>>>> of "Semaphores"
>>>> If you reboot, that should fix it.
>>>>
>>>>
>>>> ----
>>>> Ken M
>>>> Precision Web Hosting, Inc.
>>>> http://www.precisionweb.net
>>>>
>>>>
>>>>          
>>
>>
>>      
>>> Ken...
>>>
>>> Have rebooted twice, same issue.
>>>
>>> Tom
>>>        
>>
>> Tom
>>
>> So it fails immediately, or it fails after processing some of the files?
>>
>> What if you increase the allowed semaphores?
>> http://gnufreakz.wordpress.com/2008/07/13/increase-semaphores-count-i
>> n-a-linux-machine/
>>
>> ----
>> Ken M
>> Precision Web Hosting, Inc.
>> http://www.precisionweb.net
>>
>>
>>
>> _______________________________________________
>> Blueonyx mailing list
>> Blueonyx at blueonyx.it
>> http://www.blueonyx.it/mailman/listinfo/blueonyx
>>      
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
>
>
>    

_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx





More information about the Blueonyx mailing list