LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-14-2008, 05:12 AM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Correct Fetchmail with IDLE and multiple servers config


Hi all,

Simple question - what is the correct configuration to run fetchmail on 3 IMAP servers, utilising the IDLE command?

I can run in daemon mode, polling each one, but with no IDLE command.
Adding the idle command in daemon mode, freezes fetchmail on the first server.
I cannot run individual fetchmail instances for each server, as fetchmail will not run more than once.

Is there a way to make this work?
I would also like to ensure if the connection temporarily falls over, that fetchmail will reconnect.

Thanks,
Sam
 
Old 08-18-2011, 07:39 AM   #2
jeixav
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Single user, multiple IMAP IDLE accounts (again)
 
Old 06-18-2012, 05:41 AM   #3
Winmax
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
Smile

Even this is pretty old, i wasn't able to find a good solution anywhere. After a few hours i found a working way for me, which i will paste here, becouse this thread is the first thing found by google

Code:
root@myServer:~# cat /etc/init.d/_fetchmailStart 
#!/bin/bash

case "$1" in
'start')
	export FETCHMAILHOME=/home/max/.fetchmail/GMX01
        fetchmail -L /var/log/fetchmailMaxGmx.log -f ${FETCHMAILHOME}/fetchmailrc --pidfile ${FETCHMAILHOME}/fetchmail.pid -d 60
	export FETCHMAILHOME=/home/max/.fetchmail/GMX02
        fetchmail -L /var/log/fetchmailMaxGmx.log -f ${FETCHMAILHOME}/fetchmailrc --pidfile ${FETCHMAILHOME}/fetchmail.pid -d 60

echo "started"
;;
'stop')
	pkill -f "fetchmail"
	;;
*)
	echo "Usage: $0 { start | stop }"
	;;
esac
exit 0

root@myServer:~# cat /home/max/.fetchmail/GMX01/fetchmailrc 
set postmaster root
set bouncemail

poll imap.gmx.net protocol IMAP user "myMailAdress@gmx.de" there with password "mySuperSecretPassword" is max here keep ssl idle

Last edited by Winmax; 06-20-2012 at 02:28 AM. Reason: design
 
Old 09-28-2020, 08:51 PM   #4
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Quote:
Originally Posted by jeixav View Post
The link now available only at https://web.archive.org/web/20130925...ch/008421.html
 
  


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
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 03:43 PM
Multiple Blade servers booting from multiple disk drives simultaneously NGC_cheryl Linux - Enterprise 0 11-26-2007 08:38 AM
LXer: Retrieving Emails From Remote Servers With fetchmail (Debian Etch) LXer Syndicated Linux News 0 06-01-2007 02:46 PM
Multiple Idle Users Boss Hoss SUSE / openSUSE 1 02-19-2006 05:06 PM
fetchmail config dARkHunTEr Linux - Software 14 10-19-2003 03:18 PM

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

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