LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 02-22-2007, 03:27 PM   #1
babysnake
Member
 
Registered: May 2006
Posts: 37

Rep: Reputation: 15
Question Incoming email server on a LAN - howto


hi

i want to setup a simple email server on my home LAN

i want it to ....

periodically download mail from a number of POP3 accounts (all of the form account_name@myISP.com)and then serve these mails up to LAN clients using IMAP

i don't need spam or AV scanning as that takes place at the gateway and SMTP can all occur from the LAN clients directly - so it's incoming mail only

there a 4 user accounts on the server, but multiple POP3 accounts associated with each

users would need to be able to set there own IMAP passwords but the connection between LAN clients and server does not need to be encrypted

i'm thinking i need fetchmail and dovecot to do the collecting/serving - anything else ??

can anyone help me out here or point me to a comprehensive (noob proof!) howto - i've googled and searched but most of the stuff seems too much for my needs

thanks

neill
 
Old 02-22-2007, 03:41 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
yeah fetchmail and dovecot should do you just fine. one point here is that the two services will know *nothing* about each other. they do not interact in any way whatsoever. so don't go looking for docs to cover a fetchamil and dovecot installation, as between the two services, all there is a a number of emails sitting on a drive as text files. so just worry about fetchmail to start with, should be fairly simple, just repetetive for a number of accounts. get the emails happily downloading and once that's done, move on.
 
Old 02-23-2007, 11:28 AM   #3
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
OK thanks i'll get on with that

couple of quick things

is it 'OK' from a security standpoint to run these on the same server as all all the LAN data (served up to XP clients with samba) or should i have a dedicated server in a DMZ ?


does fetchmail send passwords in clear text to the POP servers, on encrypted ?

thanks again

neill
 
Old 02-23-2007, 01:25 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
it's not great to have a public and private facing service on one host, but there are limits people have to work within, i wouldn't necessarily worry too much with those services, as long as they up toe most recent versions, not old versions with known flaws and such.

fetchmail can handle most authentication mechanisms, but afaik doesn't try multiple methods in order of preference etc... if you want it to use ssl encryption, you tell it to and if it doesn't work, it won't fall back etc.
 
Old 02-25-2007, 03:33 AM   #5
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
email server

OK i'm half way there now

using getmail (which i found v user friendly to setup) i can suck all the mails from my POP3 accounts and stick them in various maildirs like this

/home/me/maildir-account1
/home/me/maildir-account2

and so on

what i need to do is serve these up to the LAN using some IMAP server - it doesn't really matter which as ease of use is the prime concern

ideally each maildir on the server would be in effect a separate IMAP account from the point of view of the MUA on the LAN client, with its associated uname and pword - how can i do that?

or do i need to approach this in a different way altogether ??

thanks

neill
 
Old 02-25-2007, 06:25 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
i would *think* that you'd really only want a single maildir strcuture, with each accounts emails being placed into a subfolder. that's what would make sense to me, as you only have one maildir to check, yet have all mail, clearly sorted basd on origin. i couldn't tell you how to do this with getmail, never touched it, but i'm sure it can do it, and will leave you with a totally standardised maildir that any pop3 / imap maildir server, like dovecot, can handle without blinking.
 
Old 02-26-2007, 01:22 PM   #7
babysnake
Member
 
Registered: May 2006
Posts: 37

Original Poster
Rep: Reputation: 15
OK thanks again i'll get onto it
 
  


Reply

Tags
email, imap, server


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto setup vpn server within the lan gv_rajasekhar Linux - Networking 1 08-31-2006 01:35 AM
Howto deny incoming connection to port 80? sys7em Linux - Security 5 10-31-2004 01:19 PM
DISCUSSION: HOWTO Setup a Secure Relaying Email Server DavidPhillips LinuxAnswers Discussion 20 07-30-2004 11:46 AM
incoming email not getting to mailbox bwarn Linux - Software 1 12-04-2003 11:32 PM
How do I delete all incoming email? 360 Linux - Networking 7 07-26-2003 05:01 AM


All times are GMT -5. The time now is 05:58 AM.

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