[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fetchmail w/ changing user names



On Wed, Feb 28, 2001 at 12:35:00PM -0600, hanasaki wrote:
> I am running fetchmail to get mail from a remote host and pass it to
> exim on my local mailserver....
> 
> Q: how can fetchmail get mailfrom user1@remotedomain.com and send it to
> user2@localdomain.com?
> 
> It seems that the standard:
> 	fetchmail -u user1 -p AUTO -k 
> seems to only deliver to user1@localdomain.com

using fetchmail as user2, you can have many mboxes scattered
around the web, and have fetchmail nab them all. (then maybe use
procmail to break them apart into conceptually discrete
'folders'...)

	# ~/.fetchmailrc

	# suck down remoteAccountName@mail.serverName.net email
	defaults
		user remoteAccountName is myLocalNameHere
		password likeHellYouSay
		server mail.servername.net

	# get distant@mail.someisp.net mail
	poll mail.someisp.net protocol pop3
		user distant is myLocalNameHere
		password ohNoYouDont
		fetchall

and make sure you `chmod 600` your ~/.fetchmailrc file! it's
gonna have passwords in there...

-- 
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
		-- Isaac Asimov, 'The Genetic Code'

will@serensoft.com
http://groups.yahoo.com/group/newbieDoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!



Reply to: