Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks
David
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3.
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchm,ail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You can configure fetchmail to grab email from more than one server - I'm doing that now at home. I have a workstation VM that runs fetchmail - one to pull mail from my mailserver and the other from Road Runner - one config file, 2 different remote email accounts - 1 local user account...
On Fri, 18 Dec 2009, Davy Leon wrote:
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchm,ail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Scot P. Floess 27 Lake Royale Louisburg, NC 27549
252-478-8087 (Home) 919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
[Top post moved to bottom]
On Fri, Dec 18, 2009 at 10:39 AM, Davy Leon davy@scu.escambray.com.cu wrote:
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3.
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchm,ail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
You could probably make different fetchmailrc files for each account you have, and then use the "-f" option to read each separate file. Then launch multiple fetchmail processes for each account. That would allow you to fetch multiple accounts at once.
As for gaining additional speed, it sounds like you may be using the wrong solution to accomplish something that you have not yet explained. High speed is typically not the main goal of email in general.
You can definitely use the -f option to fetchmail. But the neat thing is, you can supply multiple accounts - and multiple local users. For me I supply 2 different pop servers and one local user - works great.
On Fri, 18 Dec 2009, Brian Mathis wrote:
[Top post moved to bottom]
On Fri, Dec 18, 2009 at 10:39 AM, Davy Leon davy@scu.escambray.com.cu wrote:
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3.
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchm,ail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
You could probably make different fetchmailrc files for each account you have, and then use the "-f" option to read each separate file. Then launch multiple fetchmail processes for each account. That would allow you to fetch multiple accounts at once.
As for gaining additional speed, it sounds like you may be using the wrong solution to accomplish something that you have not yet explained. High speed is typically not the main goal of email in general. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Scot P. Floess 27 Lake Royale Louisburg, NC 27549
252-478-8087 (Home) 919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
[Top post again moved to the bottom]
On Fri, Dec 18, 2009 at 10:55 AM, Scot P. Floess sfloess@nc.rr.com wrote:
On Fri, 18 Dec 2009, Brian Mathis wrote:
[Top post moved to bottom]
On Fri, Dec 18, 2009 at 10:39 AM, Davy Leon davy@scu.escambray.com.cu wrote:
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is which way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3.
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchmail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
You could probably make different fetchmailrc files for each account you have, and then use the "-f" option to read each separate file. Then launch multiple fetchmail processes for each account. That would allow you to fetch multiple accounts at once.
As for gaining additional speed, it sounds like you may be using the wrong solution to accomplish something that you have not yet explained. High speed is typically not the main goal of email in general.
You can definitely use the -f option to fetchmail. But the neat thing is, you can supply multiple accounts - and multiple local users. For me I supply 2 different pop servers and one local user - works great.
Scot P. Floess
Scott,
You may notice that in the OPs 1st reply that the requirement is to retrieve multiple accounts *at the same time* to increase speed. AFAIK, if you use 1 file with fetchmail it will retrieve messages sequentially from each account.
On Fri, Dec 18, 2009 at 11:05:17AM -0500, Brian Mathis wrote:
You may notice that in the OPs 1st reply that the requirement is to retrieve multiple accounts *at the same time* to increase speed. AFAIK, if you use 1 file with fetchmail it will retrieve messages sequentially from each account.
You can always run multiple copies of fetchmail in the background if you want parallel fetching
#!/bin/sh fetchmail -f configfile1 & fetchmail -f configfile2 & fetchmail -f configfile3
On Fri, 18 Dec 2009, Stephen Harris wrote:
You can always run multiple copies of fetchmail in the background if you want parallel fetching
or run just one tenth of those RC files (when well numbered) present each time a script is invoked, if you are not in a hurry to retrieve email from side accounts, and want to be kind to the remote pop hosts
-- Russ herrold
#!/bin/sh # # ~/bin/get-stray-email.sh # $Id: get-stray-fetchmail.sh,v 1.3 2009/10/23 13:48:47 herrold Exp herrold $ # License: GPLv3+ # bug reports to: info@owlriver.com # # use fetchmail with custom rc files, and pull # upgrade to use a 0-9 rotor to spread load # export PATH='/usr/java/latest/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:~/bin/:/home/herrold/bin:~/bin/' # # the config files live in a protected directory export FETCHRC=".fetchmail" cd [ ! -d $FETCHRC/ ] && { mkdir $FETCHRC/ chmod 700 $FETCHRC } # # defaults, and options parsing # need to more into a while loop, and add a scan exit QUIET="--silent " DEBUG="" [ "x$1" = "x-d" ] && { export DEBUG="y " shift 1 } [ "x$1" = "x-v" ] && { export QUIET="" export VERBOSE="--verbose " shift 1 } [ "x${QUIET}" = "x" ] && { export QUIET="" export VERBOSE="--verbose " } # # option $1 support being refactored; out for the moment # Remembering Jimi ... [ "xsix" = "x9" ] && { # # SUFFIX works when we cd into $FETCHRC and have the file naming set up # right SUFFIX=".fetchmailrc-gmail" [ "x$1" != "x" ] && { export SUFFIX=`echo ".fetchmailrc-gmail$1"` # make sure we have one [ ! -e ~/$FETCHRC/$SUFFIX ] && export SUFFIX="" # # actually we need to stop scanning options here shift 1 } } # # main body # New model is to run a rotor [ ! -e $FETCHRC/.fetch-rotor ] && touch $FETCHRC/.fetch-rotor LASTRUN=` ( echo -n "0" ; cat $FETCHRC/.fetch-rotor | \ perl -p -e "tr/[0-9]//cd" ) ` [ "0$LASTRUN" -lt 1 ] && echo "00" > $FETCHRC/.fetch-rotor LASTRUN=` ( ( cat $FETCHRC/.fetch-rotor | \ perl -p -e "tr/[0-9]//cd" ; echo " + 0" ) | bc ) ` [ "x${DEBUG}" != "x" ] && echo "Rotor is: $LASTRUN" 1>&2 # # main loop for i in ` ls -1 $FETCHRC/.fetchmailrc-*[0-9] | grep "${LASTRUN}$" `; do [ "x${VERBOSE}" != "x" ] && { echo "i: $i" 1>&2 } [ -e ${i} ] && fetchmail -f ${i} -a ${QUIET} ${VERBOSE} || { echo "Error: non-zero return code on: $i " 1>&2 grep -v "^#" $i | grep -v "[ ]" 1>&2 grep "user" $i 1>&2 } sleep 3 # sleep 30 done # LASTRUN=` echo "${LASTRUN} + 1" | bc | rev | cut -c 1 | rev` # echo "new LASTRUN: $LASTRUN" echo "$LASTRUN" > $FETCHRC/.fetch-rotor # # exit 0 # # # This is a sample ~/.fetchmail/. cat - << END > /dev/null # # gmail pop works # sample fetchmail -f config file poll pop.gmail.com with proto pop3: port 995 timeout 60 user "GMAILUSERID@gmail.com" there with password "GMAILPASSWORD" is LOCALUSERID here fetchall expunge 50 options ssl # END #
D'oh... Sorry about that... I was quickly reading through the post. My foot so easily fits into my mouth I sometimes forget its there :)
On Fri, 18 Dec 2009, Brian Mathis wrote:
[Top post again moved to the bottom]
On Fri, Dec 18, 2009 at 10:55 AM, Scot P. Floess sfloess@nc.rr.com wrote:
On Fri, 18 Dec 2009, Brian Mathis wrote:
[Top post moved to bottom]
On Fri, Dec 18, 2009 at 10:39 AM, Davy Leon davy@scu.escambray.com.cu wrote:
----- Original Message ----- From: "Brian Mathis" brian.mathis@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Friday, December 18, 2009 10:27 AM Subject: Re: [CentOS] Fetchmail question
On Fri, Dec 18, 2009 at 10:29 AM, Davy Leon davy@scu.escambray.com.cu wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is which way is faster for fetchmail... using POP3 or IMAP?
Thanks David
Not sure I could say which is faster, but POP3 is more simple and is intended for what you are doing. IMAP is meant to have all messages stored on the server and thus supports folders and other more advanced features.
Based on what you are trying to accomplish, I would use POP3.
Actually I'm using POP3, but just looking for improvements in speed. Plus, fetchmail doesn't allow fetch more than one account at a time, and it's kind slow in the secure handshaking. There is another package should I "explore" using it to improve speed?
Thanks for your answer
David
You could probably make different fetchmailrc files for each account you have, and then use the "-f" option to read each separate file. Then launch multiple fetchmail processes for each account. That would allow you to fetch multiple accounts at once.
As for gaining additional speed, it sounds like you may be using the wrong solution to accomplish something that you have not yet explained. High speed is typically not the main goal of email in general.
You can definitely use the -f option to fetchmail. But the neat thing is, you can supply multiple accounts - and multiple local users. For me I supply 2 different pop servers and one local user - works great.
Scot P. Floess
Scott,
You may notice that in the OPs 1st reply that the requirement is to retrieve multiple accounts *at the same time* to increase speed. AFAIK, if you use 1 file with fetchmail it will retrieve messages sequentially from each account. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Scot P. Floess 27 Lake Royale Louisburg, NC 27549
252-478-8087 (Home) 919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
On Fri, Dec 18, 2009 at 10:55:54AM -0500, Scot P. Floess wrote:
You can definitely use the -f option to fetchmail. But the neat thing is, you can supply multiple accounts - and multiple local users. For me I supply 2 different pop servers and one local user - works great.
Yup, this is my (redacted) fetchmailrc file:
defaults proto pop3 set invisible
poll server1 via mail.server1.net user remote_user1 is localuser1 here fetchall password hahahahaha
poll server2 via pop.server2.com user remote_user2 is localuser2 here fetchall password hahahahaha ssl
poll server3 via mail.server3.net user remote_user3 is localuser3 here fetchall password hahahahahaha
This polls from 3 different servers and stores the results in 3 different mailboxes on my local machine.
% fetchmail fetchmail: No mail for remote_user1 at server1 fetchmail: No mail for remote_user2 at server2 fetchmail: No mail for remote_user3 at server3
Davy Leon wrote:
Hi folks
This question is about fetchmail running on my Centos 5.3 box. I need to fetch my email from different accounts living on remote servers and drop it on my local mailbox. The question is wich way is faster for fetchmail... using POP3 or IMAP?
Thanks
David
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I know I'm avoiding the direct question, but I use getmail to retrieve mail from a pop3 account and run it through procmail to distribute it to local imap folders. I'm not sure how well it works for multiple accounts, as I only use it for one account. It's been a while since I've set it up, so I don't remember too many details. Perhaps check it out if you feel you need an alternative to fetchmail, and if you need any help, I can go back and see how it's set up.
-Brian