LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-20-2006, 06:40 PM   #1
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Rep: Reputation: 15
Smile how to import users in qmail from text file


Hi all
I have been given the task to roll out a linux mail server which i have decided to use Debian and Qmail. I was wondering if there is any way to import bulk users eg: 1000 user accounts, from a text file say from Active Directory. we will be using unchangable passwords which suits the needs fine however apart from creating users through the qmailadmin web page i do not know how to create the accounts+mailboxes, if someone has done this in the past or has any recomendations it would be greatly appreciated.

thanks
 
Old 12-21-2006, 12:04 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
If your system is using regular user accounts (i.e. passwd) then you could use the command "newusers". You can find out more by reading the man pages for "newusers". Here is a link that goes over his version of it. You can find many more by googling with the keywords "batch newusers".

Hope this helps,
Fordeck
 
Old 12-21-2006, 03:42 PM   #3
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
thanks for the suggestion. how would i use system accounts? would this be technically for the default domain? would they show up in qmailadmin? i have used and most likely will do again go by the qmailrocks.org install guide.
 
Old 12-22-2006, 08:43 AM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
If you're using the qmailrocks guide then you would have choosen to use either Mysql or system accounts. This decision would have been made on the "Part 5 - Vpopmail" portion of the install.

I have done it without mysql, so I probably won't be able to help much with mysql. However it's probably just as easy by doing some sort of a database import.

Regards,
Fordeck
 
Old 12-24-2006, 03:29 AM   #5
Braytac
LQ Newbie
 
Registered: Jul 2003
Location: Sydney, Aus
Distribution: Debian (Prefered), Ubuntu, Redhat, Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
thanks fordeck. i have only ever used QMR without mysql integration in the past. however I am unaware of how qmail manages individual user accounts, if they are managed via text files? is it dificult to switch from non-mysql to system accounts?
 
Old 12-24-2006, 09:43 AM   #6
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Quote:
i have only ever used QMR without mysql integration
That is also the way I've done it in the past. So take a look at this link. Also take a look at the man pages for the "newusers" command. That should give you a pretty good understanding of the process. You will undoubtedly need to modify your user text file from exchange to be similar to the /etc/passwd file. Without seeing a sample of this text file I can't advise on how this could be done. But you have an example of the layout by looking at your /etc/passwd file. The /etc/passwd file shows you what the newusers command expects. Linux provides tools like "sed", "awk", "cut" that help automate modifying your exchange text file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to import NIS users into my Directory Server capricorn80 Solaris / OpenSolaris 3 09-12-2006 02:41 PM
Import users from windows 2000 active directory serabut Linux - Networking 0 05-26-2006 05:55 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Editing text file for import to a spread/database Franklin Programming 7 03-31-2004 06:31 AM
Change/import passwd for many users kelper Linux - General 1 08-26-2003 01:37 AM


All times are GMT -5. The time now is 11:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration