LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 01-14-2005, 01:55 PM   #1
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 155
Thanked: 0
Downloading remote mail to the local router with fetchmail ?? How?


[Log in to get rid of this advertisement]
Here's my issue: I have a mailbox (pop3 for receiving and smtp for sending mail) on a remote serrver ..lets's say : hostname.net ... I have a local router-firewall and I want to download all my mail with "fetchmail" ... and then access it with outlook express ( for example) from my local server .... And here begins the trouble ... when I do "fetchmail -v " ...complains about this:

Code:
fetchmail: 6.2.5 querying hostname.net (protocol POP3) at Fri 14 Jan 2005 08:
54:50 PM EET: poll started
fetchmail: POP3< +OK <9997.1105728578@webhost.com>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR authorization first
fetchmail: authorization first
fetchmail: Repoll immediately on sasho@hostname.net@hostname.net
fetchmail: POP3< +OK <9999.1105728579@webhost.com>
fetchmail: POP3> USER sasho@hostname.net
fetchmail: POP3< +OK
fetchmail: POP3> PASS *
fetchmail: POP3< +OK
fetchmail: POP3> STAT
fetchmail: POP3< +OK 2 6417
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
2 messages for sasho@hostname.net at hostname.net (6417 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 3531
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message sasho@hostname.net@hostname.net:1 of 2 (3531 octets)
fetchmail: SMTP connect to localhost failed
fetchmail: POP3> QUIT
fetchmail: POP3< This message is in MIME format.
fetchmail: SMTP transaction error while fetching from hostname.net
fetchmail: 6.2.5 querying hostname.net (protocol POP3) at Fri 14 Jan 2005 08:54:55 PM EET: poll completed
fetchmail: Query status=10 (SMTP)
fetchmail: normal termination, status 10
I've checked and status 10 means that it cannot connect to the smtp and cannot do the transaction .... what should I do to retrieve the mail (to my linux box) and the read it with outlook express

Last edited by sys7em; 01-14-2005 at 01:56 PM..
sys7em is offline     Reply With Quote
Old 01-14-2005, 03:39 PM   #2
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 155
Thanked: 0

Original Poster
here's my .fetchmailrc file:

Code:
poll hostname.net proto pop3 user "sasho@hostname.net" pass "pass"
Anyone plz ......
sys7em is offline     Reply With Quote
Old 08-04-2005, 11:14 AM   #3
SeckmetLitiz
LQ Newbie
 
Registered: Jul 2005
Location: Bloemfontein South-Africa
Distribution: Fedora Core 3
Posts: 8
Thanked: 0
Downloading remote mail to the local sendmail server with fetchmail - How?

Hi all

When I try to collect our local domain's mail from our ISP I also get this errors

fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from POP3.domain.co.za
fetchmail: Query status=10 (SMTP)

Does anyone know if this mean the error is generated at our Linux box or at the ISP’s mail server if the error message is practically the same as in this post of sys7em.

Kind Regards
SeckmetLitiz is offline     Reply With Quote
Old 08-04-2005, 02:10 PM   #4
SeckmetLitiz
LQ Newbie
 
Registered: Jul 2005
Location: Bloemfontein South-Africa
Distribution: Fedora Core 3
Posts: 8
Thanked: 0
I did found a similar question posted by linuxhippy and he resolved the error,
when he ensured that sendmail is running before he run fetchmail.

I did suspect that if it is a problem on our local Linux box (and not at the ISP),
that it could be that the SMTP service is not running on the box,
but I did ensure that sendmail was running before I ran fetchmail earlier today.
So starting sendmail is not our solution but it could still be that I need to change
configuration settings of the SMTP service running with sendmail.
Or I need to change configuration settings for sendmail.

Mail on our domain is no down for 2 weeks so if anyone out there has any ideas to
what I need to do, I’ll appreciate all suggestions. Even if you can only tell me to stop
searching for fetchmail solutions and that I should now start searching for info on
sendmail configuration settings, it will help me to focus time at the right issue.

My Linux knowledge is limited to what I read since 25 July 2005. On 23 July our data link
went down. All Internet connections in our country must be supplied by the a single
telephone company, they told us that they could not repair the link to our old
ISP (who was big on Linux) because the radio equipment that they used for our
connection is now to old and the telephone exchange in our area of the city do not
support ASDL or ISDN lines. Our only option was to change to their satellite connection,
which was cheaper but was caped and did not support a reverse link. This meant we
had to changed to a new ISP and that the new ISP could not forward our mail to our
sendmail server as in the passed. O yes and the satellite connection disconnect every
24 hours and change its WAN IP address.

So far I established that we needed fetchmail to get the mail from the drop box at the
new ISP to our Linux server and that sendmail could then continue to distribute the mail
to our mailboxes. I got fetchmail installed on the server but are stuck with this SMTP
error for nearly 3 days. I cannot remember seeing such an error in any of the docs I read
to get fetchmail installed. Because I am so new to Linux it could be there is a document
that I missed so if anyone know of a HOWTO; FAQ; manual or book with a possible
solution please inform me.
SeckmetLitiz is offline     Reply With Quote
Old 08-05-2005, 09:32 AM   #5
SeckmetLitiz
LQ Newbie
 
Registered: Jul 2005
Location: Bloemfontein South-Africa
Distribution: Fedora Core 3
Posts: 8
Thanked: 0
Got this error resolved.

sendmail was configured to a different port (not 25)

So to everyone else who gets this error in the future here is what I learned about it.

It is not a problem with fetchmail or the configuration of fetchmail but with the SMTP server running on the local box from where you run fetchmail. When fetchmail is connected and ready to download the mail from say your ISP’s mail server it first check to ensure that there is a local service running to which it can pass the mail, before it download and delete the mail from the ISP’s mail server.

This mean you must go and search for the solution at whatever mail delivery agent you are using and not fetchmail.

Kind Regards
SeckmetLitiz is offline     Reply With Quote
Old 08-30-2005, 10:52 AM   #6
ndb
LQ Newbie
 
Registered: Aug 2005
Location: Germany
Distribution: Debian Sid / Unstable
Posts: 1
Thanked: 0
same problem

Hello,

I had the same problem.
I searched a log time, every conf of postfix & fetchmail was ok.
The Box just didn't remember that it is "localhost"
-> ping localhost -> localhost = unknown host

i edit /etc/hosts with "127.0.0.1 localhost"
and everything was ok again

I just can't imagine how it can forget this


Good Luck @ Everybody
its hard to find somthing about this problem
this is my part to change it.
ndb is offline     Reply With Quote
Old 08-30-2005, 11:24 AM   #7
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 155
Thanked: 0

Original Poster
Well

I solved my problem either...

The thing was that I didn't have sendmail installed...
sys7em is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Fetchmail, downloading only email I don't already have miknight Linux - Software 1 06-06-2004 05:28 AM
Fetching mail from remote POP and sending it to local SMTP leshka_uk Linux - Software 1 02-27-2004 08:38 AM
Downloading remote POP3 Mail to local mailbox Saffsd Linux - Newbie 7 01-26-2004 11:36 PM
local mail downloading onto a server seriv Linux - Software 1 11-27-2003 02:26 PM
exim/fetchmail no mail from POP3 server --->> local user ! help required! realos Linux - Networking 0 04-03-2003 05:43 PM


All times are GMT -5. The time now is 10:41 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration