LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-07-2007, 01:18 PM   #1
Cancel
LQ Newbie
 
Registered: Mar 2005
Location: B.C. Canada
Distribution: Fedora 6, Ubuntu 6.10, Arch, PCLOS
Posts: 4

Rep: Reputation: 0
Noob needs help with email server setup....


Hello all!

I have searched the forum and read all the pages in the Networking section for a solution to my problem. I have a feeling I am not looking in the right direction.

I have three domains set up with email accounts through 1and1.com and wish to continue using them. What I want to do is use my file server as my email storage as well. Is there a way I can use the server to log into my 1and1.com accounts, retrieve the mail and store it. Then from any computer log into my server to retrieve the email with say, imap? The tutorials I have read all say to use my domain name at the server side, but I still want to use 1and1.

Through all the reading I have done, I have some ideas I would like to do. Accessing my email using a web browser is something I would like to do. I already have a basic web server to test sites before I they go live, so that is certainly an option.

Any help in pointing me in the right direction, or show me where I can find a tutorial to guide me would be greatly appreciated.
 
Old 04-07-2007, 02:17 PM   #2
bfc
LQ Newbie
 
Registered: May 2006
Distribution: Fedora FC6
Posts: 17

Rep: Reputation: 0
Here's what I do, kinda redundant, but learned a lot doing it.

All on my server:

Fetchmail collects mail from gmail.com
procmail sorts the retrieved mail and places them in the proper folders
postfix sends mail through gmail.com

Then I use Dovecot as an imap server and squirrelmail as a webmail server. This allows me to access my mail from either a web browser or an imap enabled mail client.

What you're trying to do can be done, it me a lot of time and effort, but in some twisted way at least I found it fun!!
 
Old 04-08-2007, 12:56 AM   #3
Cancel
LQ Newbie
 
Registered: Mar 2005
Location: B.C. Canada
Distribution: Fedora 6, Ubuntu 6.10, Arch, PCLOS
Posts: 4

Original Poster
Rep: Reputation: 0
Thank-you, this is exactly what I had in mind. At least now I know it can be done. I don't mind the time or effort, and I agree with you, in some strange way it is fun.

Now when you say procmail sorts then puts in proper folders, what exactly does that mean?

And if I use postfix to send mail, will there be a copy of that sent email on the server, or just the email client?

Again, thanks for your help....
 
Old 04-08-2007, 04:17 AM   #4
bfc
LQ Newbie
 
Registered: May 2006
Distribution: Fedora FC6
Posts: 17

Rep: Reputation: 0
Procmail is used to sort the incoming mail, that "fetchmail" collects, according to rules you define. It filters the mail for you. For example, here is a snippet from my procmailrc:

Code:
# MailDir format
MAILDIR=$HOME/Maildir
DEFAULT=./

# fedora-list filter
:0:
*^TOfedora-list@redhat.com
.fedora-list/

:0:
*^TOnetworkmanager
.networkmanager/
The first few lines define my default mail directory. The next few lines, tell procmail to put any mail that has "fedora-list@redhat.com in the To: field, into a directory called fedora-list. The last few lines tell procmail to put any mail that has "networkmanager" in the To: filed, into a directory called networkmanager.
If you didn't want your email sorted, the only statements you would need in your procmail config file, would be:

Code:
# MailDir format
MAILDIR=$HOME/Maildir
DEFAULT=./

#
:0:
$DEFAULT
Which tells procmail to sort all incoming mail into your default mail directory.

As for postfix, it would reside on your mail server.

Last edited by bfc; 04-08-2007 at 04:20 AM.
 
Old 04-09-2007, 05:18 PM   #5
Cancel
LQ Newbie
 
Registered: Mar 2005
Location: B.C. Canada
Distribution: Fedora 6, Ubuntu 6.10, Arch, PCLOS
Posts: 4

Original Poster
Rep: Reputation: 0
Ahhhh, got it! I will try this out and see how it goes. Thanks for your help!
 
Old 05-18-2007, 09:09 AM   #6
Illbay
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by bfc
Here's what I do, kinda redundant, but learned a lot doing it.

All on my server:

Fetchmail collects mail from gmail.com
procmail sorts the retrieved mail and places them in the proper folders
postfix sends mail through gmail.com

Then I use Dovecot as an imap server and squirrelmail as a webmail server. This allows me to access my mail from either a web browser or an imap enabled mail client.
Hi, bfc.

Your setup appears to be exactly what I need.

I used to host my email on my own server, but eventually the ISP (a local cable provider) appears to have gotten wise, and began to "throttle" the amount of traffic. My connection would go down intermittently, sometimes for long periods of time.

I finally moved to offsite hosting, but I really miss the control I used to have.

For one thing, thanks to SpamAssassin, I essentially got NO spam come through. Sendmail would use the RBLs to bounce most of the bad stuff based on origin, and Spamassassin would take care of the rest.

It was quite easy to use procmail to do all the sorting into folders, and I, too, used Dovecot and Squirrelmail exactly as you do.

I do have one question about your arrangement. Instead of a gmail account, I use my own domain which I've had for almost ten years now. I would like to continue doing that. How can I obtain my IMAP email from my "local server" (i.e. the one where all the mail eventually ends up after fetchmail goes to my hosting site and gets it, and it's all sorted) with mobile clients such as my smartphone?

I guess I can set up a machine name like "mail.domain.com" and point to that, but I thought I'd get your take on it since you seem to have thought all this out.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
email server setup thick_guy_9 Slackware 6 02-17-2005 09:08 AM
Email Server Setup RHrulz Linux - Networking 2 11-19-2004 02:06 PM
email server setup help Pranesh Linux - Software 43 11-09-2004 08:49 AM
Setup email server syzuhdi Linux - Newbie 5 10-04-2004 08:08 PM
Help with email server setup..?? dalk Linux - Newbie 0 09-20-2001 10:45 AM


All times are GMT -5. The time now is 08:31 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
Open Source Consulting | Domain Registration