LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2009, 07:39 AM   #1
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
Linux Email server in Window AD


Hi Guys,

I need to setup a Email server on Linux for a Domain which is windows based. does anyone know of good links, tutorials or docs for it. I have looked at postfix.are there anyothers which might do the job?

Thanks

zee
 
Old 03-01-2009, 10:57 AM   #2
Uli Wehner
LQ Newbie
 
Registered: Mar 2009
Location: Atlanta
Distribution: Centos5, Suse 11 with KDE4, Ubuntu
Posts: 8

Rep: Reputation: 0
zee,

how tight do you need the integration between AD and the linux server to be?

i do this for a rather small environment ca 20 users. I run centos 5 (aka redhat enterprise 5) using postfix, dovecot (pop and IMAP) as well as squirrelmail for webmail access.

adding the SMTP, and Mail server pointer (mx records) into DNS is the first step.

adding the email address into the user template at creation is the integration part.

i also keep the user's home directories off of the windows server. Samba does a great job of authenticating against the domain controller. the homedirectory attribute in AD (set in the user template) transparently maps the linux home directory to the a drive letter on the AD workstations.

The reason i ask how tight the integration needs to be is that i personally create the usernames, passwords for email and homedirectories manually separate from the Windows environment (there are MANY good reasons for this).

if you authenticate Samba agains the domain the user never enters a username and password for the samba share, that is handled by the domain.

for the mail server i seen no reason to force the complex passwords and 90 day change rules i enforce on the windows workstations.

ultimately that means they have a secure password for the mail server that never changes and never matches the windows password.

when all is said and done, LDAP queries will return the home directory and mail address attributes for searches in outlook or any other email client that can use Ldap for address lookups.

I am quite confident that windows users will LOVE IMAP. Whenever their little windows boxes die and need to be re-imaged, all emails will magically re-appear and all the contents of their network drive / home directory will be there like nothing ever happened.

===

Side effect: once the linux box is there, accounts and home directories etc exist, they might want to start using a real operating system alltogether.

Hope that helps

Uli
 
Old 03-02-2009, 06:07 AM   #3
zeeshan78
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Uli,

many thanks for that reply, i dont really have to have a tight integration just a normal one and i am happy to assign username and passwords manually, if you have two different password its just two fold security in my opinion anyway. what would be great though if i could have a guide to how to set it up with samba, do you have any links or docs in that effect i will be really grateful

Kind Regards

zee
 
Old 03-04-2009, 10:03 PM   #4
Uli Wehner
LQ Newbie
 
Registered: Mar 2009
Location: Atlanta
Distribution: Centos5, Suse 11 with KDE4, Ubuntu
Posts: 8

Rep: Reputation: 0
zee,

let me preface this with: i am not an "expert" i just do this once or twice a year, i am naturally lazy, and find this easy enough to do.

email server is the easy part. on Centos i simply install the mail server packages, then i make sure that my mail server listens on the external interface and hosts the services i want. Easy enough using my favorite tool webmin (google it). Makes setting up the relaying and such easy

then i install squirrelmail to get the webmail piece (just a matter of installing it and then running the config.pl script. squirrelmail comes with centos.

the samba piece for the homedirectories just needs samba installed and the security set for 'domain' and pointing the password server to be the ip of the AD domain controller.

no all you need to do is add the windows users as users to the linux box, that allows passwordless, authenticated access to the home directories on the linux box from all windows clients that authenticate against the domain.

set the home directory attribute in AD to \\linuxbox\home\username assign the drive letter of your choice.

I usually have a freenas box (old pc with freenas installed), google it, it is free. i leave freenas wide open for a public fileshare, that way the home directories do not ever need to be shared. (freenas can do ANYTHING as far as protocols go!)

at this point you have IMAP, POP, SMTP, and webmail
home directories on all windows workstations authenticated via AD
an awesome public fileshare with SMB, DFS, FTP, SSH, unison, RSYNC, etc
oh, and yes you now have webmail which makes mysql and other services transparent and remotely configurable without the need for command line interface.

want to make this accessible to linux desktops?

add support for UNIX clients to AD (schema extension comes with AD)

that will let you join linuxboxes to AD and log on to linux with your domain credentials.

the schema extension lets you set UID GUID, home directory and your favorite login shell.

with some luck i did not make too many mistakes typing this

hope that helps

Last edited by Uli Wehner; 03-04-2009 at 10:04 PM.
 
  


Reply



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
Web email server from private email server guy_ripper Linux - Server 2 01-17-2008 06:58 AM
email system using linux server and ms exchange server tenzan Linux - General 1 12-08-2006 10:47 PM
Migrating Windows Email Server to Linux Server fredidehen Linux - Newbie 3 09-05-2006 09:18 PM
Migrating from Lotus Domino Email Server 6.5 to Linux email Server sailu_mvn Linux - Software 0 08-22-2006 11:04 PM
Linux email server and some HTTP server questions Steven6282 Linux - General 7 02-19-2003 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration