LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-12-2006, 03:09 PM   #1
Falafel
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Fedora
Posts: 43

Rep: Reputation: 15
can't get fetchmail to work


Hello,

I use fetchmail to get mail from my ISP's server to my own. I have set up a .fetchmailrc file but when i run fetchmail it doesn't work. I use qmail on a fedora core 3 server.

My fetchmailrc-file looks like this:

poll mail.XXXXXX.se
proto imap
via imap.gmx.net
aka mailhop.org
localdomains XXXXX.se XXXXX.com
qvirtual XXXXXXX.com-
user "XXXXXX"
pass "XXXXXX"
is *
nokeep
fetchall
ssl


And i get this error when i run fetchmail:

fetchmail: timeout after 300 seconds waiting for server XXXX.se.
fetchmail: socket error while fetching from XXXX.se
fetchmail: Query status=2 (SOCKET)



What have I done wrong? I hope someone can help me.

Thanks
 
Old 06-12-2006, 03:39 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,461
Blog Entries: 1

Rep: Reputation: 66
That is a very strange syntax, at least for me. Mine is quite different. take a look:

Code:
[root@gold ~]# cat /etc/fetchmailrc
#
set postmaster "postmaster"
set bouncemail
set no spambounce
set daemon 120
set logfile "/var/log/fetchmail.log"

# User 1
poll mail.isp.com with proto IMAP user 'userA@isp.com' there with password 'xxx' is 'user1' here options fetchall and wants mda "/usr/bin/procmail -d %T";

# User 2
poll mail.isp2.com with proto IMAP user 'userB@isp2.com' there with password 'xxx' is 'user2' here options fetchall  and wants mda "/usr/bin/procmail -d %T" ;
As rule of thumb, start as simple you can. After that, add all complexity you want, one by time.

I hope this help you,
 
Old 06-12-2006, 03:50 PM   #3
Falafel
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: 15
thank you for your reply! I will try to write the commands as you do. sounds better to start
off simple! I have one question though: if i want more options than just fetchall (like ssl) how do i get that into
the command? do I simply write ... options fetchall ssl etc?

Thanks again!
 
Old 06-12-2006, 03:52 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,457

Rep: Reputation: Disabled
Have you tried running the fetchmail configurator - fetchmailconf ?
 
Old 06-12-2006, 03:59 PM   #5
Falafel
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: 15
hey!

no I haven't tried the configurator, but maybe I shoult. So far I've used "webmin" to make the fetchmail entries.




I just tried changing the protocol to pop3 and now my commandline works! That's strange because it has always
worked with IMAP before... maybe there's something wrong with the ISP?

What is the advantages of using IMAP before pop3 with fetchmail?


Thanks again for all the answers!

Best,
 
  


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
fetchmail -a jayakrishnan Linux - Networking 1 11-11-2005 04:20 AM
Fetchmail qub333 Linux - Software 4 10-27-2004 11:09 PM
how to use fetchmail ???? iamthewind Linux - Software 1 10-29-2003 10:14 AM
fetchmail plisken Linux - Software 2 04-29-2003 03:56 PM
fetchmail lilapause Linux - Networking 2 12-26-2001 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12: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
Open Source Consulting | Domain Registration