Hey Skippi.
Fetchmail is what you want. Right off the top of my head, I can't see much
in the way of why you're having problems, but I'm going to "submit" my
fetchmailrc here as a "template."
---------------------------------------------------------------
[root@r2d2 log]# cat /etc/fetchmailrc
# Configuration created Sun Apr 29 13:18:35 2001 by T. Holmes
set postmaster "postmaster"
set nobouncemail
set no spambounce
set properties ""
set logfile "/var/log/fetchmail.log"
set syslog
set daemon 120
poll mail.ic.net via 152.160.8.96
with proto POP3
user 'POPUSER' there with password 'passwd' is LOCALUSER here options fetchall
warnings 3600
antispam 571 550 501 554
user 'POPUSER2' there with password 'passwd' is LOCALUSER2 here options
fetchall warnings 3600
antispam 571 550 501 554
user 'POPUSER3' there with password 'passwd' is LOCALUSER3 here options
fetchall warnings 3600
antispam 571 550 501 554
user 'POPUSER4' there with password 'passwd' is LOCALUSER4 here options
fetchal warnings 3600
antispam 571 550 501 554
poll mail.comcast.net via 24.153.64.3
with proto POP3
user 'POPUSER1' there with password 'passwd' is LOCALUSER here options
fetchall warnings 3600
antispam 571 550 501 554
---------------------------------------------------------------
If you set this up under /etc/fetchmailrc, you have fetchmail started at boot
from your /etc/init.d/ directory. The line:
set daemon 120
tells the daemon to run ever # of seconds.
So all you need is the name and IP for the mail servers, which as my output
shows:
[root@yoda] /root# nslookup -q=mx 204eastsouth.com
Server: ns02.taylor01.mi.comcast.net
Address: 68.42.244.6
Non-authoritative answer:
204eastsouth.com preference = 10, mail exchanger = mail.204eastsouth.com
Authoritative answers can be found from:
204eastsouth.com nameserver = NS.HOST4U.NET
204eastsouth.com nameserver = NS2.HOST4U.NET
mail.204eastsouth.com internet address = 64.33.79.169
NS.HOST4U.NET internet address = 209.150.128.30
NS2.HOST4U.NET internet address = 209.150.129.3
So... you're looking at mail.204.eastsouth.com at address 64.33.79.169. Change
your line that to read:
poll mail.204eastsouth.com via 64.33.79.169
with proto POP3
then give a whirl. To the best of my knowledge, and from what I can see,
that should do the trick.
Checking my log, I get ouput like this:
---------------------------------------------------------------
Feb 6 08:39:01 r2d2 fetchmail[1281]: 5.7.4 querying mail.ic.net (protocol POP3) at
Wed Feb 6 08:39:01 2002
Feb 6 08:39:05 r2d2 fetchmail[1281]: 5.7.4 querying mail.ic.net (protocol POP3) at
Wed Feb 6 08:39:05 2002
Feb 6 08:39:08 r2d2 fetchmail[1281]: 5.7.4 querying mail.ic.net (protocol POP3) at
Wed Feb 6 08:39:08 2002
Feb 6 08:39:11 r2d2 fetchmail[1281]: 5.7.4 querying mail.ic.net (protocol POP3) at
Wed Feb 6 08:39:11 2002
Feb 6 08:39:15 r2d2 fetchmail[1281]: 5.7.4 querying mail.comcast.net (protocol POP3)
at Wed Feb 6 08:39:15 2002
---------------------------------------------------------------
Even if you're DNS for the box isn't being recognized, telling it that it
should find mail.204eastsouth.com at 64.33.79.169 should bypass that.
Also keep in mind, you should set your daemon according to your bandwidth. If
you're on a cable or DSL connection, something like once every two minutes should
not pose a problem for you.
Hope that helps.
tdh
--
--------------------------------------------------------------------
T. Holmes | UNIXTECHS.org | [EMAIL PROTECTED] | UIN: 17021091
--------------------------------------------------------------------
|
| Howdy all. Here is the deal. I am currently doing email in Linux using
| Spruce & that is working just fine. I want to migrate to Pygmy. Here is
| the rub. Pygmy needs an external program to fetch mail. So I have been
| trying to set up fetchmail, but it's not syncronizeing with the servers
| where my accounts are at. It's connecting, it's seeing mail is there, but
| can not pull it in. I've been to the fetchmail homepage & check the FAQ &
| How-To posted there, but they are not helping -- or if the answer is there
| I'm not finding it.
|
| I am using Mandrake 7.2. Internet connection works, email works with other
| programs. I am trying to pick up mail from 2 different servers. The
| timeout was originally 300 seconds, I bumped it down to 30 seconds just to
| speed things up but still got the same errors at 300 seconds, which made me
| guess that a longer timeout setting was not the solution.
|
| here is my fetchmail config file, with my passwords replaced with the word
| "password":
| ----------------------------------------------------------------
| # Configuration created Mon Feb 4 18:51:41 2002 by fetchmailconf
| set postmaster "skippi"
| set nobouncemail
| set properties ""
| poll 204eastsouth.com via 204eastsouth.com
| with proto POP3 timeout 30 and options no dns
| user 'skippi' there with password 'password' is skippi here options
| fetchall warnings 3600
| antispam 571 550 501 554
|
| poll lamar.colostate.edu timeout 30 and options no dns
| user 'skippi' there with password 'password' is skippi here options
| fetchall warnings 3600
| antispam 571 550 501 554
| ------------------------------------------------------------------
|
| and here is the output of my attempt to run fetchmail:
| -----------------------------------------------------------------
| SNIP
| ------------------------------------------------------------------
|
| Any suggestions, clues or ideas?
|
| Can anyone suggest another program which Pygmy can use to retrieve mail?
|
| Thanks much for any help.
| Skippi
|
|
|
| --
| -----------------------------------------
| Skippi
| On The Fly Photography
| http://204EastSouth.com
| Meditation -- Yoga -- Linux -- Muffins
| The Secrets of Life
| -----BEGIN GEEK CODE BLOCK-----
| Version: 3.12
| GAT d-(?) s: a C++ L++(+++) P E- W++ !N o? K- w--- o@ M+ PS+ PE++ Y+
| PGP- t++@ 5+++ X++ R+ tv-- b++ DI++++ D+ G e+ h+ r- y++
| ------END GEEK CODE BLOCK------
| Want to buy your Pack or Services from MandrakeSoft?
| Go to http://www.mandrakestore.com
----------------------------- Uptime -------------------------------
8:32AM up 5:26, 2 users, load averages: 0.00, 0.00, 0.00
--------------------------------------------------------------------
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com