LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2004, 04:47 PM   #1
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
Mail via local network?


I have a local network, going out to internet via a router (WLAN and wired), then a proxy (Squid) and finally ISDN dialup. So far so good, but I cannot figure how to reach my POP mail? I use Kmail, and I have tried to tell Kinternet to use the gw ISDN connection. But I cannot really see where to configure this? (I have found P3Scan on the net, but I cannot see how my mail client shall find it.)
 
Old 11-10-2004, 04:54 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
can you ping any machines from inside of the lan?
eg. does
Code:
ping www.google.com
work?
 
Old 11-10-2004, 04:59 PM   #3
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
No, I get unknown host.
 
Old 11-10-2004, 06:23 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ok, so your computers have no access to the internet.

To get your mail working, eiher
  1. Fix the connection.
    or
  2. Use fetchmail to deliver the mail from pop server of your isp to your server and configure the clients (in your lan) to access that server instead of the one from isp.

For 1:
-If you have enough ip adresses, all you have to do, is to setup forwarding to your server and that server to work as a default gateway for clients.
-If you don't have, you need to masquerade the connection. Try to search for (this forum or the tutorials and wiki section, http://www.tldp.org/, or by googling) documention about "NAT" or "masquerading" or "routing". Or try to find a friend who has set up one already.

For 2:

0. Install a MTA for local delivery (this one is probably already there).
1. Install fetchmail
2. install some of the pop servers available (eg. qpopper is trivial to setup).
(this is not required if you just want to read the mail in the server)

Last edited by ToniT; 11-10-2004 at 06:26 PM.
 
Old 11-11-2004, 11:55 AM   #5
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
With alt.1: Do you mean forwarding as an option in the setup of my ISP? I have only ISDN dialup, so would that work?

Alt.2: Where does the pop-server come into the equation? Is that to use a pop-client to manage my mail? (As I understand it from the EXCHANGE SERVER HOWTO.)
 
Old 11-11-2004, 03:38 PM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
For alt.1:
ISDN dialup should work fine. What you need is:
-One machine (let's call it a server) that
*has a connection to the internet (eg. having that dialup ISDN modem working).
*you have root access to (you have to be able to run iptables to enable masquerading).
-LAN where machines can access that server (eg. ping it, ssh to it, etc.)

Far alt.2:
Requirements are the same.

Do you mean The Exchange Server Replacement HOWTO or something else?

That documentation seems to describe building of somewhat heavy duty system.
What I was looking for was something more lightweight: just MTA with local delivery, fetchmail and qpopper.

I don't know exact commands for setting those up in RH, but in debian that would be:
In the server end:
Code:
apt-get install exim4
## select "Local delivery only" when asked, and your user account where to deliver root mail.
## (that step is done automaticly in the installation phase (unless explicitly skipped))
apt-get install qpopper fetchmail
To /etc/fetchmailrc:
Code:
set postmaster "postmaster"
set daemon 900
poll pop.server.of.your.isp with proto POP3
        user 'popaccount' there with password 'poppwd' is 'recirqie' here options fetchall
(that makes the system to retrieve mail (every 15 minutes (=900 seconds)) from server pop.server.of.your.isp and send delivery failures to account "postmaster")

And finally
Code:
/etc/init.d/fetchmail start
In the client end:
-Instead of setting your pop server to be pop.server.of.your.isp
set it to name of your server, and the username and passwd to be recirqie
and your shell password to your server instead of the ones into the pop server in your ISP.
 
Old 11-20-2004, 04:45 PM   #7
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
I've tried alt. 1 with masquerading using YaST. (For the moment I'm battling with WLAN as well, so the client is WinXP untill I get the Linux WLAN going.) Now I don't get any error messages, but I don't get any mail either. Are there any logs in the gateway where I can see what has (or has not as the case may be) been set up, and gone/not through?

(I'd like to keep it simple, so I would prefer this to a MTA.)
 
Old 11-20-2004, 05:57 PM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
You probably want to test something that is easier to verify, like being able to ping to outside world
or to get http protocol working. If those work, then mail should work too. If those doesn't work, then mail can't work.
 
Old 11-20-2004, 06:00 PM   #9
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Ah, to see some statistics about the firewall, you can use command
Code:
iptables -v -L
iptables -t nat -v -L
 
Old 11-21-2004, 05:45 AM   #10
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Hmmm.... I'm no expert, but there doesn't seem to be much in the way of drops. And http, YOU (ftp?) and ping all work.
 
Old 11-21-2004, 07:14 AM   #11
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
They work from the client machine too?
ok. try (from the client) command
Code:
telnet your.isps.pop.server 110
(with correct your isps pop server.)
If it is working correctly, you should get a line starting with "+OK".
 
Old 11-21-2004, 01:52 PM   #12
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Yes, I got the response:
+OK Hello there
 
Old 11-21-2004, 05:55 PM   #13
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Even by using the winxp client? Great. Your network is correctly configured.

Why don't you get any mail? Are you sure your inbox is not empty or fetched to an other location?
 
Old 11-22-2004, 05:33 AM   #14
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
I rebooted the XP, and lo and behold, mail came thundering in (a veritable avalanche)! When I was a small boy we could buy "surprise packages" from the local breadvan. Win give me much of the same feeling, only the surprises are not allways pleasing.

Thanks for the help received.
 
Old 12-02-2004, 12:40 AM   #15
mini_mike
LQ Newbie
 
Registered: Aug 2004
Location: Manila, Philippines
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
I have the same problem. My set up is POP3 email clients (WinXP & RH9) --> eth1 --> SQUID Proxy eth0 --> DSL Modem --> ISP. How do I configure the email clients and/or SQUID so that I can access the POP3 and SMTP servers of our ISP? http browsing through Web Browsers don't have any problem. But email clients won't connect. I tried telnet your.isps.pop.server 110 from the workstation behind SQUID but I get:

Could not open connection to the host, on port 110: Connect Failed

What do I need to do from the client and/or SQUID server side?
 
  


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
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
can send and recieve local mail, but not mail from internet Caine101022 Linux - Software 2 09-09-2005 01:35 PM
local mail on a 2 machine network tireseas Linux - Networking 4 01-25-2005 07:57 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
Setting up Mail server for Local Network Deep13 Linux - Software 2 10-30-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:40 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