LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2003, 01:34 PM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Mail Server


Hi all,

OK, this is my situation.

I'm a basic Linuxer at this stage, and I want an easy-to-setup-and-run Mail server.

One of my PCs is connected all the time to a cable connection. This runs redhat 8 and will have the mail server.

My main other PC is connected to a 56k.

What I want is the other PC to be able to log-in to the redhat PC and review/download its messages. (I also want the linux PC to be able to do the same, but I presume that is easy) Both the PCs use the same mail account, and should have the same messages.

I've heard QPopper is a good basic POP server, but i'm not sure POP is completely what I want. Using that would mean that messages downloaded on one PC, cannot be downloaded on another.......?

I think what i want is something more like an HTTP server (or IMAP?) like hotmail.

I hope I've tried to make my needs clear.

Cheers for your time.
 
Old 04-24-2003, 01:44 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Yes, it sounds like you would like to set up an IMAP server on the cable modem box and have the 56k one connecting to that to look at mail remotely. The mail will still physicall be sitting on the cable modem box but you won't know much better except for a slight delay (it is negligible).

You'd need something like fetchmail or fetchpop to get the messages from your isp and then have the messages passed to procmail which then filters and dumps them into a linux mail box/spool file. This is what I've jsut done and I can use pine from my machines to check out my mail saved on my main cable connected machine. It wasn't the easiest thing in the world to do but hey.

There may be some easier solutions but that's all I really know bout. Check out www.ii.com, under the computing section, there are a number of documents related to pine, filtering and procmail and I think some in relation to IMAP as well.

HTH

Alex

P.S. remember, www.google.co.uk/linux is your friend!!!!!!
 
Old 04-24-2003, 01:48 PM   #3
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Thanks m8, i'll have a look at those links/apps now!
 
Old 04-24-2003, 02:21 PM   #4
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
OK, i've setup and run fetchmail and procmail (I think), i'm just unsure where fetchmail puts the messages, and where procmail picks them up from.

Any ideas?
 
Old 04-24-2003, 04:49 PM   #5
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Basically, fetchmail doesn't put them anywhere, it pipes them directly into Procmail and then procmail dumps them where its been told to.

Alex
 
Old 04-25-2003, 02:12 AM   #6
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
OK, I think fetchmail is not using Procmail. I need procmail to be setup as my MDA yes?

So I need to do the .forward thing?

How do I know when procmail is running OK?

Cheers

Last edited by Nerd2; 04-25-2003 at 02:26 AM.
 
Old 04-25-2003, 11:02 AM   #7
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
No you don't need a .forward thing. That's only if you have an MTA between fetchmail and procmail (such as sendmail). You will need to write a .procmailrc file to configure Procmail and you will need a .fetchmailrc to set up fetchmail. For the fetchmail thing, if you have X, just use fetchmailconf (type it in an xterm). This will make it much easier to set up. You can tell it which program to send the mail it fetches to.

Procmail doesn't sit there and run for your task. It is called by fetcmail when a new message arrives and exits once its dealt with the mail. Fetchmail on the other hand you will most probably want to set as a daemon so that it will poll your pop account at regular intervals.

If you need any more help just say

HTH

Alex
 
Old 04-25-2003, 08:05 PM   #8
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Thanks for the help,

I've been trying fetchmailconf, but whatever I do when running it I get:

Code:
Traceback (most recent call last):
  File "/usr/local/bin/fetchmailconf", line 9, in ?
    from Tkinter import *
ImportError: No module named Tkinter
I've tried reinstalling, Python, Tk and fetchmail to no avail, anyone any ideas?

Oh yeh, i'm running it under KDE in RH8.0.

Cheers
 
Old 04-26-2003, 08:33 AM   #9
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Secondly, i've now got them dumping messages to /var/spool/mail/USERNAME, in a flatfile format. I can read these in a text editor, but importing them into evolution, Kmail or pine fails. (Kmail wipes the file, pine reads it as all one message and doesn't parse it.

Cheers again.
 
Old 04-26-2003, 06:58 PM   #10
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Hmmm, I had the same problem with Pine when its going into the /var/spool/mail file as well. I couldn't figure out why it was doing this but I have a feeling its got something to do with the file being locked (does pine say that the INBOX file is read only?)

My solution (which is actually what I wanted in the first place) was to put my spool/INBOX into pine's ~/mail/ directory. This solved the problem for me. Try looking on http://www.ii.com/internet/messaging/pine/
and
http://www.ii.com/internet/messaging/pine/#ii
and
http://www.ii.com/internet/messaging/pine/pc/
for more stuff on pine. Somewhere here maybe the answers to why the inbox file is being locked. That and try washington university's website for pine which has a lot of info on the program and general unix mail problems.

Alex
 
  


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
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 01:21 PM
How to have limited mail on a linux server that support unlimited e-mail account mmh Linux - General 3 03-15-2006 07:52 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 04:41 PM
Mail Server Delimiter for alternate mail server venugopalmk Linux - Networking 2 04-29-2003 05:55 AM


All times are GMT -5. The time now is 06:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration