LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2003, 08:54 PM   #1
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Rep: Reputation: 0
setting up mail server...losing the plot


I am currently trying to setup a linux mail server for my home network of 3 or 4 computers (windows and linux)
What i want is to download mail from my ISP's POP server onto my mail server and be able to read it from any of the other pc's (while keeping it on the mail server).
I have Fetchmail set up and working ok - mail is delivered to the mail server in /var/spool/mail/ , however that is as far as it gets. Originally i tried using Sendmail (which i couldnt get to work) but i have now got Qmail installed and running - successfully as far as i can tell.
However i still cannot get my mail from the mail server to any of the other pc's.

Is this the way i should be doing it - Fetchmail to collect the mail from my ISP and then Qmail to send it out on my local network?

If so then what is Procmail for? should i be using that somewhere?

Do i need Fetchmail and/or qmail running on the local host where i want the server to deliver mail to?

Do i need DNS set up to do any of the above? (at the moment i dont)


Sorry if this is a bit generic...i just need to know if i'm on the right track


Thanks in advance
 
Old 11-30-2003, 10:33 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Well if your mail is making it to /var then check to see if your can telnet to port 110 from a client server. This will show whether you have access to pop3; assuming you are not using imap or something.
 
Old 11-30-2003, 10:50 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Yep, sounds like you don't have a pop or imap server running. Your smtp server is working just fine but for the clients to be able to download mail onto their local machine you need to run a pop/imap server. If you choose pop, the port is 110. For imap, it's 143.

-twantrd
 
Old 12-01-2003, 12:57 AM   #4
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
ok, i tried to telnet to port 110 on the server and i got:

Trying 192.168.1.3...
telnet: connect to address 192.168.1.3: Connection refused

so what do i need to run on the client machine - fetchmail?
 
Old 12-01-2003, 03:14 AM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Well, first off...do you have a pop server running? If you don't, then probably that's the reason why you got that error. As for your clients, they need a pop client to retrieve the mail off your server. Some pop clients are eudora, thunderbird, outlook, etc...

-twantrd
 
Old 12-01-2003, 02:33 PM   #6
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
I've got fetchmail and qmail running on my server, i also tried running fetchmail on the client to poll my server for mail but i got
fetchmail: Query status=2 (SOCKET)
 
Old 12-01-2003, 05:21 PM   #7
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Try doing "telnet 192.168.1.3 143" and see if it gets a response. I have never used fetchmail and so I wouldn't know how to configure it. Anyhow, I thought fetchmail retrieves mail from a pop server and distributes the mail to different users on your LAN. Therefore, I *don't* think that fetchmail can be used as pop server itself.

You stated that you used fetchmail to retreive mail from your ISP's POP server. Ok so now all the mail is stored correctly. Now for your clients to download their mail off your server, you need to setup a pop server so that their client can access it and retreive the mail. Try installing a pop daemon and then see if that solves your problem, I think it will.

After you install the pop daemon, then try "telnet 192.168.1.3 110" and see if it gets a response. The port 143 is used only for imap.

-twantrd

Last edited by twantrd; 12-01-2003 at 05:22 PM.
 
Old 12-02-2003, 02:05 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
I'd personally bypass the pop deal, as lately (storage being cheap I'd assume) it seems like IMAP is the way to go, especially if in the near future you feel like adding a web front end to that to read your email (squirrelmail style). And you said you've got qmail working (if so, you shouldn't be placing the incoming mail in /var/mail/spool as that's mbox style, use instead ~/maildir) and install courier-imap (works great with Qmail as it's built by the same programmer IIRC). For the whole package/suite you might just look at courier as the entire mail solution, I don't know if it has the abilities of fetchmail though, but beyond that, it's a great all in 1 solution that can very likely be integrated with fetchmail.

Cool
 
  


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
Setting up a Mail Server dr_angus Linux - Software 1 03-09-2005 09:57 AM
setting up mail server fayax1 Linux - General 1 11-02-2004 05:27 PM
Setting up mail server gslater Linux - Newbie 2 05-16-2004 09:42 AM
Setting a mail server. hubergeek Linux - Networking 0 04-26-2002 12:38 PM
Setting up a mail server linuxguruwannabe Linux - Networking 13 08-07-2000 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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